App. - 47
Appendix 4.29 Displaying number of faults and fault numbers using fault detection program
The following program sequentially displays the number of turned-on bit devices
(such as X, M, and F) among many bit devices being used continuously, together
with their device numbers.
[Application example]
When M or F is used as an output device of a fault detection program, use the
following program to obtain a certain fault number from the faults.
[Sequence program flow]
Fault detection ladder
X2
1) Searching for faulty
(ON) devices
2) Displaying the number
of faulty devices
X0
Displaying the first
fault number
X1
Displaying the number of
remaining faulty devices
including currently
displayed number and
the next fault number
Displaying the
last fault number
End
NO YES
Device F is used in
the program example.
Displays the number of
faulty devices on display A.
Displays the fault
number on display C.
Displays the next fault number on display C.
Display B Display A
(Y50 to Y5F) (Y40 to Y4F)
Display C
(Y60 to Y6F)
Condition of program
The total number
of faulty circuits
is set to 50.
(Operating procedure)
ON OFF
ON OFF
ON OFF
Displays the number of remaining
faulty devices on display A.