6. BASIC INSTRUCTIONS
6
−
68
MELSEC-A
6.5.4 Microcomputer program call
(SUB, SUBP)
The SUB instruction of the AnA, A2AS, AnU, QCPU-A (A Mode) and A2USH board
becomes the 16-bit constant setting instruction in the extension application
instructions. For details, refer to the AnSHCPU/AnACPU/AnUCPU Programming
Manual (Dedicated Instructions).
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
n
O O O O O O O O O O O O
O
Functions
(1) Calls the microcomputer program created by user and allows the run of
microcomputer
program.
(2) When the run of microcomputer program is completed, runs the sequence
program again, starting at the next step to the SUB or SUBP instruction.
(3) The SUB and SUBP instructions can be used for the sequence program and
subsequence program.
AnS
AnN
AnSH
An A1FX
A3H
A3M
A3V AnA
AnU, A2AS
A2USH-S1
A2USH board
QCPU-A
(A Mode)
A0J2H
A2C
A52G
A73
A3N
board
Applicable
CPU
O O O O O X
X
O O O O
Remark
n
Head address of micro-
computer program
Setting data
Microcomputer program execution commands
n
SUB
n
SUBP
Parameter
Set value of
timer/counter
SUB(P)
END
Microcomputer
program
RET
Sequence program
area
Microcomputer
program area
Main (sub)
program area
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......