6. BASIC INSTRUCTIONS
6
−
69
MELSEC-A
(4) In the microcomputer program area, multiple microcomputer programs can be
created.
(5) For the details of microcomputer program, see Section 8.
Execution
The execution conditions of SUB and SUBP instructions are as shown below.
Conditions
Operation Error
In the following case, operation error occurs and the error flag turns on.
•
An area of more than the microcomputer program capacity has been specified
at
n.
POINTS
(1) The processing time of a microcomputer program called by one SUB
instruction must be 5 msec or less. If it exceeds 5 msec, operation
combination between the microcomputer program processing and the
internal processing of the PC becomes out of control and the PC cannot
run correctly.
(2) If a microcomputer program which needs more than 5 msec for processing
is to be executed, divide it into several blocks which are called
consecutively. This method can shorten the processing time of a
microcomputer program called by one SUB instruction.
H
SUB
0930
X010
X011
H
SUB
0500
500H
Microcomputer
program
930H
Microcomputer
program
0
Head of
microcomputer
program
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
SUB
SUBP
Microcomputer program
execution command
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: ......