1 - 11 1 - 11
MELSEC-Q
1 OVERVIEW
(b) Data processing instructions such as table processing instructions, etc.,
enable high speed processing of large amounts of data.
X0
K2R0D0FINSP
Insertion
source
R0
FIF0 table
R1
R2
R3
3
10
20
30
R4
Insertion
designation
Insertion position
R0
FIF0 table
R1
R2
R3
4
10
15
20
30R4
D0
15
Instruction for data insertion at table
(4) Easy shared use of sub-routine programs
(a) A common pointer can be used to call the same sub-routine program from
all sequence programs being executed.
Program A
Subroutine program
R0K4X20MOV
SM400
Always
ON
R0K4X0MOV
RET
M0
M0
P1000
P1000 call
Program B
P1000 call
M10
P1000CALLP
0
M0
P1000CALLP
0
Common pointer
(b) The use of sub-routine call instructions with arguments simplifies the
creation of sub-routine programs which are called several times.
Sub-routine program
FD2FD1MOV
SM400
FD2FD0MOV
RET
M0
M0
P0
P0 call
Argument designation
P0 call
M10
100
M0
R0K4X0
0
W0P0CALLP
R10K4X10W10P0CALLP
Always
ON
Argument from FD2
Argument to FD1
Argument to FD0
Argument from FD2
Argument to FD1
Argument to FD0
Argument designation
Subroutine program
designation
source data
Destination data
REMARK
: For details on the argument I/O condition, see Section 10.3.1.