Mitsubishi MELSEC-A Series Programming Manual page 193

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

6. BASIC INSTRUCTIONS
Program Examples
P0
P1
P0
P1
CHG
The following programs are used with the A3CPU and other types of CPUs to output
pulses in accordance with the input condition of the PLS instruction while alternately
running the main and subprograms.
(1) For A3CPU
It is necessary to compare the operation result of a scan with that of the
previous scan to allow correct output of the PLS instruction. M9050 must
therefore be turned ON when the CHG instruction is executed to save the
operation result of the previous scan, which has been stored in the operation
result storage memory, in the save area.
Since the CHG instruction for the A3CPU is executed only when input conditions
are turned ON, programs must be written in the forms shown below.
Main sequence program
Always on
M9036
M0
M0
M0
M9051
M9057
M0
M9057
M9051
M0
M9051
(2) For A3N, A73 and A3V CPUs
Since the CHG instruction for the A3NCPU is executed only when input
conditions are turned ON, programs must be written in the forms shown below.
M0
M0
M0
M9051
M9057
M9051
M9057
M0
M0
M9051
CJ
Main sequence program
M9050
(
)
M0
(
)
CJ
P1
CHG
CHG
CJ
P0
FEND
M0
(
)
CJ
P1
CHG
CHG
P0
FEND
6 − 81
Sub sequence program
Always on
M9036
M1
M1
M1
M9051
M9056
P0
P1
M1
M9051
M9056
M1
M9051
M1
M1
M1
M9051
M9056
P0
M9051
M9056
P1
M1
M1
M9051
Sub sequence program
MELSEC-A
M9050
(
)
M1
(
)
CJ
P1
CHG
CHG
CJ
P0
FEND
M1
(
)
CJ
P1
CHG
CHG
CJ
P0
FEND

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents