Mitsubishi Electric MELSEC iQ-R Series User Manual page 250

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Execution timing
Select whether to change the device/label value before or after the execution of the instruction of the specified step when
registering the device test with execution conditions.
Program
M0
(100)
Setting of execution
timing
Before execution of the
instruction in step (101)
After execution of the instruction
in step (101)
When the device test with execution conditions is registered with the step of the specific instruction specified, depending on
the setting of the execution timing, the device/label may not be changed even if the specified step is executed.
When the step of the following instructions is specified and the execution timing is set to "Before executing instruction", the
device/label value is not changed by the device test with execution conditions even when execution conditions of the
instruction are satisfied and the specified step is passed.
Classification
Stop
Jump
Loop
Ending a program
Calling a subroutine program
Return
*1 When the execution timing is set to "After executing instruction", the device/label is changed when the execution condition of the
instruction is not satisfied.
■FOR instruction, NEXT instruction, FOR to NEXT instruction loop
When the device test with execution conditions is registered with the step for the FOR instruction, the NEXT instruction, or the
FOR to NEXT instruction loop specified, the timing to change the device/label differs from that when other instructions are
specified.
Instruction for specified
step
FOR
NEXT
FOR to NEXT instruction loop
■END instruction
When the step for the END instruction is specified, the execution timing cannot be set to "After executing instruction".
19 TEST FUNCTION
248
19.2 Device Test with Execution Conditions
(1)
+
K100
D0
Operation of CPU module
M0
(100)
(2)
10
D0
M0
(100)
D0
10
Specification detail of execution timing
Set to "Before executing instruction"
Executed only once before starting the loop processing
Executed only once after starting the loop processing
(Specified devices are changed after the execution of the
program that is between the FOR and NEXT instructions.)
Executed only once before execution of the instruction at
specified step in the FOR to NEXT instruction loop
(1) The device test with execution conditions that sets 20 in D0 in step (100) is
registered.
+
K100
D0
20
120
+
K100
D0
(3)
110
20
Instruction name
*1
STOP
*1
*1
*1
CJ
, SCJ
, GOEND
*1
BREAK(P)
FEND
*1
*1
CALL(P)
, FCALL(P)
RET, IRET
Set to "After executing instruction"
Executed only once after starting the loop processing
(Specified devices are changed before the execution of the
program that is between the FOR and NEXT instructions.)
Executed only once after ending the loop processing
Executed only once after execution of the instruction at
specified step in the FOR to NEXT instruction loop
(2) A value in D0 is changed to 20.
(3) A value in D0 is changed to 20.
, JMP
*1
*1
, ECALL(P)
, EFCALL(P)
, XCALL
*1

Advertisement

Table of Contents
loading

Table of Contents