04/99 Program Example
Getting Started with C7-621-AS-i 57
Network 4 : Operating mode display
A DB1.DBX4.0 // Belt ON
= DB1.DBX6.0 // Green lamp on casing
= M 21.0 // Message flag
FC2 : Eject conditions
Network 1 : Count
A DB1.DBX1.0 // Position switch
A DB1.DBX4.0 // Belt ON
A DB1.DBX0.1 // Inductive Bero
FP M30.0 // Rising edge
CV C1 // Count forward
L C1 // Transfer count to DB46.DBW2
T DB46.DBW2
AN C1 // Count = 0
A DB1.DBX4.0 // Belt ON
L C#0 // Write preset count
S C1 // Initialize counter
L DB46.DW2 // If the value in DB46.DW2 is greater than
L DB46.DW0 // the maximum value set, the counter
>I
R C1 // is reset
Network 2 : Parcel sequence
A DB1.DBX4.0 // Belt_ON
A DB1.DBX0.0 // Opto_Bero: parcel
FN M30.1 // Edge formation
L S5T#10S // Parcel interval at least 10 seconds
SE T5 // Pulse extension
A T5 // Parcel interval too small
A DB1.DBX0.0 // Opto_Bero: parcel
FP M30.2 // Edge formation
S M21.1 // Fault in parcel sequence
Network 3 : Display: parcel detected
A DB1.DBX4.0 // Belt ON
A DB1.DBX0.0 // Opto_Bero
= DB1.DBX6.2 // Lamp: parcel detected
= M 21.3 // Message flag
Network 4 : Stop-monitoring
A DB1.DBX4.0 // Belt ON
A DB1.DBX1.0 // Parcel at end of belt
L S5T#5S // Monitoring time 5 seconds
SD T3 // ON delay
AT3
S M21.2 // Fault in parcel stop