Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual page 165

Table of Contents

Advertisement

The following table lists the instructions that do not change device values.
No.
Classification
1
Stop
2
3
Jump
4
5
Repeat (Loop)
6
7
8
Subroutine program call
9
10
11
End
12
Jump
13
Return from subroutine program
14
Return from interrupt program
• FOR/NEXT instructions
When the executional conditioned device test setting is registered specifying the step for the FOR or
NEXT instruction, timing of device value change is different from the timing when steps for other
instructions are specified. The following table lists the device value change timing based on the execution
timing.
Instruction of the
specified step
Executed once before the start of loop
FOR
processing.
• CPU modules other than the High-speed
Universal model QCPU and Universal
model Process CPU:
Executed in every loop processing. (Device
values are changed after the execution of
the program between the FOR and NEXT
NEXT
instructions.)
• High-speed Universal model QCPU and
Universal model Process CPU:
Executed once after the start of loop
processing. (Device values are changed
after the execution of the program between
the FOR and NEXT instructions.)
• END instruction
When the executional conditioned device test setting is registered specifying the step for the END
instruction, the execution timing is restricted to "Before executing instruction" only. If "After executing
instruction" is set, the CPU module sends a registration error to the programming tool.
(d) Number of settings that can be registered simultaneously in one scan
Eight executional conditioned device test settings can be registered into the CPU module simultaneously in
one scan. When nine or more executional conditioned device test settings are to be registered simultaneously,
they will be registered over multiple scans.
Instruction
STOP
CJ
SCJ
GOEND
BREAK(P)
CALL(P)
FCALL(P)
ECALL(P)
EFCALL(P)
XCALL
FEND
JMP
RET
IRET
Before executing instruction
Operation
• When the execution condition for an instruction is
satisfied.
A device value will not be changed even when the
specified step is executed.
• When execution condition for an instruction is not
satisfied.
A device value will be changed after the specified step is
executed.
A device value will not be changed even when the specified
step is executed.
Execution timing
After executing instruction
Executed once after the start of loop processing.
(Device values are changed before the execution of
the program between the FOR and NEXT
instructions.)
Executed once after the start of loop processing.
CHAPTER 3 FUNCTIONS
163
3

Advertisement

Table of Contents
loading

Table of Contents