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
K2
R0
D0
FINSP
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
30
R4
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
R0
K4X20
MOV
SM400
Always
ON
R0
K4X0
MOV
RET
M0
M0
P1000
P1000 call
Program B
P1000 call
M10
P1000
CALLP
0
M0
P1000
CALLP
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
FD2
FD1
MOV
SM400
FD2
FD0
MOV
RET
M0
M0
P0
P0 call
Argument designation
P0 call
M10
100
M0
R0
K4X0
0
W0
P0
CALLP
R10
K4X10
W10
P0
CALLP
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.
Содержание QCPU (Q Mode)
Страница 111: ...5 19 5 19 MELSEC Q 5 ASSIGNMENT OF I O NUMBERS MEMO ...
Страница 450: ...App 59 App 59 MELSEC Q APPENDICES MEMO ...