3. Instructions
Sample program
The following program example is used to demonstrate the operation of the time monitoring function
and logic diagnosis function. In this example, the diagnostic output (CIO 200.00) does not go ON
because CIO 100.00 and CIO 100.03 remain OFF in the logic diagnosis execution condition.
Execution
condition
300.00
300.01
Logic diagnosis block
Logic diagnosis execution condition
100.00
100.01
100.02
100.03
The diagnostic output (CIO 200.00)
remains OFF because these input
conditions are OFF.
Time Monitoring Function
If the diagnostic output (CIO 200.00) does not go ON within 10 seconds after CIO 300.00 and
CIO 300.01 are both ON, a non-fatal error will be generated and the following processing will be
performed.
1. The Carry Flag is turned ON.
2. When the rightmost 3 digits of C specify an FAL number of 00A hex (10), the corresponding
Executed FAL Number Flag (A360.10) will be turned ON, the corresponding error code (410A) is
written in A400, and the FAL Error Flag (A402.15) is turned ON.
Logic Diagnosis Function (C=000A)
Since the leftmost digit of C is 0 (bit address output mode) the PLC memory address of CIO 100.00 is
output to D303 and D302. (CIO 100.00 is on a higher instruction line than CIO 100.03.)
Bit Address Found Flag
1: Bit address found
R:
Since the leftmost digit of C is 8 (bit address and message output mode) the address of CIO 100.00 (100.00)
is output to D302 through D304 in ASCII.
990
&100
T
D300
R
400.00
200.00
Diagnostic output
FAL number = 10
Diagnostic output mode = 0 (bit address output)
Input type
0: Normally open
Not used.
Not used.
Contains internal I/O memory address.
Error-processing
block (optional)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers