Process interfacing via an automation system (PLC, PC)
9.4 Control with FB 79
SIMATIC MV500
Operating Instructions, 03/2021, C79000-G8976-C494-05
187
9.4.5.2 Parameter overview
Table 9- 44 Overview of FB 79 parameters
Parameter Declaration Data type Address
Default Description
STEUER
Address of the control byte of the optical
reader.
The address must be in the process image of
STATUS
Address of the status byte of the optical read-
er.
The address must be in the process image of
Start address of the "Send" user data interface
of the optical reader.
Start address of the "Receive" user data inter-
face of the optical reader.
The permitted values are described following
Number of the program to be selected (rele-
vant only for jobs "W#16#0001" and
Reset pending error and FB initialization.
Receive area for the result string. Only data
block areas and the "BYTE" data type are per-
mitted.
You must interconnect this parameter and the
data block must be at least as large as the
maximum DMC string that can be expected.
ACTIVE = TRUE:
Editing of the last job has not yet completed.
Job was completed without errors.
With read jobs ("COMMAND = W#16#0081 ...
008F"), this simply means that the transfer
between the optical reader and FB (CPU) was
error-free.
To find out whether the DMC processing was
successful, you will need to process bits
"READ" (bit 3), "MATCH" (bit 4) and "N_OK"
(bit 5) in the status byte of the optical reader.
ERROR = TRUE:
An error has occurred.
00000000
• DW#16#0000 0000: No error
• DW#16#0000 wxyz: Warning
• DW#16#0001 wxyz: Internal FB error
• DW#16#0002 wxyz: Optical reader error
(see table below for error information)