Process interfacing via an automation system (PLC, PC)
10.4 Control with FB79
SIMATIC MV420 / SIMATIC MV440
282 Operating Instructions, 04/2013, A5E02371045-06
Parameter
Parameter Declaration Data type Address
(instance DB)
Default Description
LADDR_
STEUER
INPUT WORD 0.0 W#16#0000 Address of the control byte of the reader.
The address must be in the process image of
the CPU you are using.
LADDR_
STATUS
INPUT WORD 2.0 W#16#0000 Address of the status byte of the reader.
The address must be in the process image of
the CPU you are using.
LADDR_
SEND
INPUT WORD 4.0 W#16#0000 Start address of the "Send" user data
interface of the reader.
LADDR_
RECV
INPUT WORD 6.0 W#16#0000 Start address of the "Receive" user data
interface of the reader.
COMMAND INPUT WORD 8.0 W#16#0000 Job number:
The permitted values are described following
this table.
PARAM1 INPUT BYTE 10.0 B#16#00 Number of the program to be selected
(relevant only for jobs W#16#0001 and
W#16#0002).
RESET INPUT BOOL 11.0 FALSE Reset pending error and FB initialization.
RECV INPUT ANY 12.0 Receive area for the result string. Only data
block areas and the BYTE data type are
permitted.
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 OUTPUT BOOL 22.0 FALSE ACTIVE = TRUE: Processing of the last job
has not yet completed.
DONE OUTPUT BOOL 22.1 FALSE DONE = TRUE: Job was completed without
errors.
With read jobs (COMMAND = W#16#0081 to
008F), this simply means that the transfer
between the reader and FB (CPU) was error-
free. To find out whether the DMC evaluation
was successful, you will need to evaluate bits
READ (bit 3), MATCH (bit 4) and N_OK (bit 5)
in the status byte of the reader.
ERROR OUTPUT BOOL 22.2 FALSE ERROR = TRUE: An error has occurred.
ERRCODE OUTPUT DWORD 24.0 DW#16#
00000000
Error information:
• DW#16#0000 0000: No error
• DW#16#0000 wxyz: Warning
• DW#16#0001 wxyz: Internal FB error
• DW#16#0002 wxyz: Error of the reader
(see information table at the end of this
section)