Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-131
CJ,SCJ,JMP
1
2
3
4
4
6
7
8
6.5 Program Branch Instructions
6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The pointer number designated does not come prior to the END instruction.
(Error code: 4210)
A pointer number which is not in use as a label in the same program has been
designated. (Error code: 4210)
A common pointer has been designated. (Error code: 4210)
Program Example
(1) The following program jumps to P3 when X9 goes ON.
[Ladder Mode] [List Mode]
(2) The following program jumps to P3 from the next scan after XC goes ON.
[Ladder Mode] [List Mode]
Caution
(1) When using the Universal model QCPU with the SCJ instruction, inserting "AND SM400" (or
the NOP instruction) in immediately before the SCJ instruction is required.
[Program example1]
[Ladder Mode] [List Mode]
[Program example2]
[Ladder Mode] [List Mode]
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
0
1
2
LD
AND
SCJ
M0
SM400
P0
Step
Instruction
Device
0
1
2
3
LD
OUT
AND
SCJ
M0
Y0
SM400
P0