Process interfacing via an automation system (PLC, PC)
9.3 Control with Ident profile
SIMATIC MV500
Operating Instructions, 06/2018, C79000-G8976-C494-01
111
9.3.2.1
Status display of the optical reader
Note
Startup of the optical reader with Ident profile
You need to perform the following steps after the power "ON" when starting up the optical
reader while using the Ident profile (with or without a communication module):
1.
Set a startup flag in OB100 of the controller.
2.
Repeat the initialization ("init_run" or "INIT" command) until the initialization receives a
positive acknowledgment.
3.
To generate an error in the automation system, also monitor the maximum wait time for
positive acknowledgment of the initialization and expected status bit values (only
necessary if there is initialization without program selection).
The status bits "IN_OP" (in operation) and "RDY" (ready) of the optical reader indicate
whether the device has a group error, is in processing mode or is in STOP mode:
Table 9- 7
States of the optical reader
RDY (ready)
IN_OP (in operation)
Description
X
0
Group error
1
1
Processing mode
0
1
Stop or adjustment mode
Depending on the state of the optical reader, different MV commands are permissible (see
section "Preconditions for the commands (Page 124)") or an acknowledgment of an error
(see section "Group error (Page 125)") is required before the next MV command can be
issued.
When there is a group error, this error must be acknowledged before further operation is
possible. The acknowledgment mechanism is explained in the section ""PHYSICAL WRITE"
commands / MV command interface (Page 112)".
The status display is only valid after successful initialization. The "INIT" bit must be set for
this.
Table 9- 8
Output parameters of the Ident profile
Bit
Description
UIN0
Corresponds to "IN_OP" bit of the optical reader
UIN1
Corresponds to "RDY" bit of the optical reader
UIN2
These two bits are interpreted as an 'unsigned' value (bit 2 is the less significant
bit) that represents the number of available decoded codes. If the value = 3,
three or more decoded codes are available.
UIN3