Starting up the device - Configuration
Leuze electronic
BCL 604i
100
10.16.2Procedure
Hardware, connections
The following connections must have been established:
• Voltage supply (PWR)
• PROFIBUS In
• PROFIBUS termination
Required modules
Include the following modules in your project:
• Module 10 – Activations
• Module 23 – Decoding result 12 bytes
Parameter settings
No parameters need to be set separately. The standard parameter set provides all required functions.
Flow diagrams
Table 10.63:
Successful reading
Table 10.64:
Unsuccessful reading
10.17 Sample configuration: Direct activation via the switching input
10.17.1Task
• Reading of a 12-digit bar code in 2/5 Interleaved format
• Direct activation of the device via a photoelectric sensor
Code sample
Code 2/5 Interleaved 12 digits with check digit
PLC
Photoelectric sensor
BCL
Description
Time Photoelectric sensor from 0 ->
1
The photoelectric sensor is interrupted.
M 10 bit 0.0 0 -> 1
Activation bit 0.0 is set to 1. This activates the reading gate.
M 23 bit 0.1 from 0 -> 1
M 23 bit 0.2 = 0
M 23 byte 1 = data length
M 23 byte 2 to 16: result
The bar codes that have been read are processed and transmit
-
ted by module 23:
Reading concluded bit 0.1 = 1 and bar code not decoded bit 0.2
= 0.
The data length is entered in byte 1, in this case 15 decimal.
The decoding result is transmitted in the following 15 bytes.
Internal processing
Internal data processing.
M 10 bit 0.0 1 -> 0
Activation bit 0.0 is reset to 0.
PLC
Photoelectric sensor
BCL
Description
Time Photoelectric sensor from 0 ->
1
The photoelectric sensor is interrupted.
M 10 bit 0.0 0 -> 1
Activation bit 0.0 is reset to 1.
Photoelectric sensor from 1 ->
0
The reading gate elapses without read result.
M 10 bit 0.0 0 -> 1
Activation bit 0.0 is reset to 0.
M 23 bit 0.1 from 0 -> 1
M 23 bit 0.2 from 0 -> 1
M 23 byte 1 = data length
M 23 byte 2 = result
The module decoding state signals:
Reading concluded bit 0.1 = 1 and bar code not decoded bit 0.2
= 1.
The data length is entered in byte 1.
The result hex 3F (? = no read) is transmitted.
Internal processing
Internal processing of the data and signaling of the non-reading.