Appendix 4.5 Sequence Programs, Statements, Notes - Mitsubishi Q2ACPU User Manual

Qna series melsec
Table of Contents

Advertisement

APPENDICES
Appendix 4.5
Sequence Programs, Statements, Notes
After conversion by A
If a subsequence program is included, the main/subsequence program must be modified.
There are two types of modification, as indicated below:
QnA conversion, sequence programs are stored in the set file.
(a) When executing the main sequence program and subsequence program
alternately, modify the parameters and programs as follows.
Modification of parameters
Set file names of the main sequence program and subsequence program in
program setting in "Auxiliary setting" in the parameter mode. Select scan
execution for the main sequence program and stand-by execution for the
subsequence program.
Modification of the sequence program
• The CHG instruction that switches between main sequence and
subsequence programs is converted to OUT SM1255 after A
conversion. Modify this OUT SM1255 to the PSCAN instruction which
converts another sequence program to an scan execution type program.
• Next, add the GOEND instruction that executes a jump to the END
instruction to the following step.
• Next, add the PSTOP instruction, which converts another sequence
program to a stand-by execution type program, to the first step of the
sequence program.
This enables execution of the subsequence program from the main
sequence program, and disables execution of the main sequence program
when the subsequence program is executed.
• Main sequence program
• Subsequence program
App - 122
QnA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q3acpuQ4acpuQ2acpus1

Table of Contents