Mitsubishi Q00JCPU User Manual page 370

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

6
FUNCTIONS
No.
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 RET
14
Return from interrupt program
Instruction of the
specified step
FOR
NEXT
6
- 70
6.11 Monitor Function
6.11.4 Executional conditioned device test
Note that there may be a case where a device value will not be changed depending
on the execution timing even though the specified step is executed.
The following instructions should be noted when registering executional conditioned
device test setting.
• Instructions that do not change device values
A device value will not be changed by executing the Executional conditioned
device test when the execution timing has been set to "After executing
instruction", specifying the step for instructions that do not execute the next step,
such as branch instructions.
* 1 : If the execution condition of an instruction is not satisfied, a device value will be changed based on
the registration data.
Table6.24 lists the instructions that do not change device values.
Table6.24 Instructions that do not change device values
Classification
• 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. Table6.25 shows
the device value change timing based on the execution timing of the executional
conditioned device test setting.
Table6.25 Device value change timing when step for FOR or NEXT instruction is specified
Before executing instruction
Executed once before the start of loop processing.
Executed every loop processing. (Executed after
the operation 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
returns a registration error to the programming tool.
Instruction
STOP
CJ
<When the execution condition for an instruction is satisfied>
SCJ
A device value will not be changed even when the specified
GOEND
step is executed.
BREAK(P)
CALL(P)
<When execution condition for an instruction is not satisfied>
FCALL(P)
A device value will be changed after the specified step is
ECALL(P)
executed.
EFCALL(P)
XCALL
FEND
JMP
A device value will not be changed even when the specified
step is executed.
IRET
Execution timing setting
*1
Operation
After executing instruction
Executed once after the start of loop
processing. (Executed before the operation
of the program between the FOR and NEXT
instructions.)
Executed once after the start of loop
processing.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents