Technical data
SINAUT TD7 software package for the CPU
2.5 Data point typicals
Software
System Manual, 07/2009, C79000-G8976-C222-07
255
Range of
values:
Memory bytes
Data bytes
MB0 ... MBn
DBm.DBB0 ... n
This command input byte is specially designed for entering commands using
software, i.e. by the user program or at an operator panel (OP). When input
is detected, the command is reset at the input byte and transmitted if no
error is detected during the 1-out-of-8 and 1-out-of-n check. The central
enable memory bit is ignored here because it is only intended for command
input over hardware (see CommandInputByte_HW).
If a 1-out-of-8 or 1-out-of-n error is detected, the entered command is no
longer processed. A new command is first read in when no software
command has been acquired on the PLC for one OB1 cycle; in other words,
not only for this block but also for all other command input blocks with
software input. The FB enters the detected 1- out-of-8- or 1-out-of-n error in
the diagnostic buffer (event ID B171 or B172). Appropriate error bits are also
set in the central data block "BasicData" where they can be queried by the
software. For more detailed information, refer to the description of FC Safe.
In principle it is possible to enter a new command to
CommandInputByte_SW in every OB1 cycle. However, only one command
per OB1 cycle is allowed and this applies to all command input blocks with
software input (1-out-of-n check). An ’empty cycle’ between two consecutive
software commands is therefore not necessary.
Note
The command inputs CommandInputByte_HW and CommandInputByte_SW can also be
used at the same time; in other words, if you want to enter the same command over the
hardware and software. If a command entry occurs at the same time over both input bytes,
this is only accepted when coincidentally exactly the same command is entered over the
hardware as well as the software input (the hardware entry is then processed). In all other
cases the entry is rejected and an error message is entered in the diagnostics buffer (event
ID B170). The error status is also indicated by the InputError output of FC Safe and
appropriate error bits are set in the central data block "BasicData" where they can be queried
by the software (see FC Safe).
Note
This is an in/out parameter (declaration IN_OUT). It is difficult to specify local bit memory
with this parameter type and this should not be used.
2.5.9 ST7 command typical FB Cmd01B_R
Function
Receive 1 byte commands (1-out-of-8 ST1 format).










