
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
(instance DB)
Default
Description
LADDR_
STEUER
INPUT
WORD
0.0
W#16#0000
Address of the control byte of the optical
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 optical read-
er.
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 optical reader.
LADDR_
RECV
INPUT
WORD
6.0
W#16#0000
Start address of the "Receive" user data inter-
face of the optical 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 (rele-
vant 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 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
OUTPUT
BOOL
22.0
FALSE
ACTIVE = TRUE:
Editing 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 ...
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
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: Optical reader error
(see table below for error information)
Содержание SIMATIC MV500
Страница 10: ...Preface SIMATIC MV500 10 Operating Instructions 03 2021 C79000 G8976 C494 05 ...
Страница 16: ......
Страница 28: ......
Страница 32: ......
Страница 92: ......
Страница 114: ......
Страница 148: ......
Страница 244: ......
Страница 254: ......
Страница 260: ......
Страница 292: ......
Страница 294: ...Service Support SIMATIC MV500 294 Operating Instructions 03 2021 C79000 G8976 C494 05 ...