Chapter 5 Instruction Specifications

5-11

6. Control instructions

R7F4
R7F3
R7F2
R7F1
R7F0
Process
time
(µ s)
Classification
Item number
Ladder symbol
Instruction
symbol
Instruction
name Process descriptions I/O types used
DER ERR SD V C MICRO-EH
Steps
Remarks
1END Normal
scan end
Indicates the end of a
normal scan.
None zzzzz 714 1
Control
2 CEND(s) Scan
conditional
end
Re-executes normal scan
from the beginning of the
normal scan when s=1,
while the next instruction is
executed when s=0.
s: X, Y, R, M zzzzz
3 JMP n Unconditio-
nal jump
Jumps to LBL n of the
same No. n.
n: Constant(0-
255)
z1] zzz
5
707
32
2
2
*5
*6
4 CJMP n (s) Conditional
jump
When s=1, jumps to the
LBL n of the same No.;
when s=0, executes the next
instruction.
n: Constant(0-
255)
s: X, Y, R, M
z1] zzz 3
32
3*5
*6
5 LBL n Label Indicates the jump
destination of JMP or
CJMP of the same No.
n: Constant(0-
255)
zzzzz 0.5 1
6 FOR n (s) FOR When s=0, jumps to the
location after the NEXT n
of the same No.; when s is
not 0, executes the next
instruction.
n: Constant(0-49)
s: WY, WR, WM
z1] zzz 33 3
7 NEXT n NEXT Subtracts 1 from the s value
of the FOR n of the same
No. and jumps to FOR n.
n: Constant(0-49) z1] zzz 38 2
8CAL n Call
subroutine
Executes the SB n
subroutine of the same No.
n.
n: Constant(0-99) z1] zzz 24 2
9SB n Start
subroutine
Indicates the start of No. n
subroutine.
n: Constant(0-99) z1] zzz 0.5 1
10 RTS RETURN
SUBROUTIN
Returns from subroutine. None zzzzz 25 1
11 INT n Start
interrupt
scan
Indicates the start of No. n
interrupt scan.
n: Constant(0-2,
16-19, 20-27)
zzzzz 0.5 1
12 RTI RETURN
INTERRUPT
Returns from interrupt
scan.
None zzzzz 0.5 1

7. Transfer instructions

R7F4
R7F3
R7F2
R7F1
R7F0
Process
time
(µ s)
Classification
Item number
Ladder symbol
Instruction
symbol
Instruction
name Process descriptions I/O types used
DER ERR SD V C MICRO-EH
Steps
Remarks
1 TRNS 0 Data sending and receiving
(optional)
d: WY10
s: WR, WM
t: R, M
zzzz 80 3
Transfer inst.
2RECV 0
General
purpose
port
communica
-tion
command
Data receiving and sending
(optional)
d: WX0
s: WR, WM
t: R, M
zzzz 80 3

8. FUN instructions

R7F4
R7F3
R7F2
R7F1
R7F0
Process
time
(µ s)
Classification
Item number
Ladder symbol
Instruction
symbol
Instruction
name Process descriptions I/O types used
DER ERR SD V C MICRO-EH
Steps
Remarks
1 FUN 5 (s) General
purpose
port
switching
Port type switching from
dedicated port to general
purpose port
s: WR,WM zzzz 114 3
2 FUN 80 (s)
(ALREF (s))
I/O refresh
(all points)
Refreshes all external I/O
ranges.
s: WR,WM zzzz 432 3
FUN instructions
3 FUN 81 (s)
(IOREF (s))
I/O refresh
(I/O /link
designation
)
Refreshes only the input
range, output range or link
range.
s: WR,WM zzzz 244 3