A-69
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-30 Other Instructions
FAILURE
POINT
DETECTION
FPD 269 Output Required
A-1-30 Other Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
SET CARRY STC
@STC
040 Sets the Carry Flag (CY). Output Required
CLEAR
CARRY
CLC
@CLC
041 Turns OFF the Carry Flag (CY). Output Required
SELECT EM
BANK
EMBC
@EMBC
281 Changes the current EM bank. Output Required
EXTEND
MAXIMUM
CYCLE TIME
WDT
@WDT
094 Extends the maximum cycle time, but only for the cycle in which
this instruction is executed.
Output Required
SAVE CON-
DITION
FLAGS
CCS
@CCS
282 Saves the status of the condition flags. Output Required
LOAD CON-
DITION
FLAGS
CCL
@CCL
283 Reads the status of the condition flags that was saved. Output Required
CONVERT
ADDRESS
FROM CV
FRMCV
@FRMCV
284 Converts a CV-series PLC memory address to its equivalent
CS/CJ-series PLC memory address.
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
C: Control word
T: Monitoring time
R: 1st register
word
FPD(269)
C
T
R
Diagnostic output B
T
R
Next instruction block
Diagnoses a failure in an instruction block by monitoring the
time between execution of FPD(269) and execution of a
diagnostic output and finding which input is preventing an
output from being turned ON.
Time monitoring function:
Starts timing when execution condition A goes
ON. Generates a non-fatal error if output B
isn't turned ON within the monitoring time.
Error-processing
block (optional)
Logic diagnosis block*
Logic diagnosis function
Determines which input in C
prevents output B from going ON.
Logic diagnosis
execution condition C
Execution
condition A
STC(040)
CLC(041)
N: EM bank
number
EMBC(281)
N
T: Timer setting
WDT(094)
T
CCS(282)
CCL(283)
FRMCV(284)
S
D
S: Word contain-
ing CV-series
memory address
D: Destination
Index Register