4 Tips and Tricks
Tips and Tricks
4
This chapter additionally provides a number of tips and tricks to optimize your
SIMATIC MV applications.
Outputting binary results of the read operation
The binary results of the read operation can be included in the format text output:
In the "Total read result" program step, prefix all other formatting instructions with
"%b". Save the settings in the program.
Figure 4-1
A byte (byte 2) where the "IN_OP", "TRD", "RDY", "READ", "MATCH", "N_OK" bits
are encoded according to the status byte is stored in the result string. This binary
value can have a value to which no printable character corresponds, e.g. 0hex.
The assignment is shown in the following table:
Table 4-1
Bit position
7
6
5
4
3
2
1
0
You can evaluate these bits or use them to control functions as required for your
automation task.
MV Basics
Entry ID: 109757269,
V1.0,
Reserved
Current state of trigger input
N_OK
MATCH
READ
RDY
TRD
IN_OP
04/2018
Assignment
36