Mitsubishi MELSEC-A Series Programming Manual page 228

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

Advertisement

7. APPLICATION INSTRUCTIONS
Program Examples
Before execution
(n = 1)
Progress
(n = 2)
(n = 3)
After execution
Before execution
To carry flag
(n = 1)
Progress
To carry flag
(n = 2)
To carry flag
(n = 3)
After execution
ROL
Program which rotates the contents of A0 three bits to the left when XC turns on.
X00C
P
0
ROL
Carry flag
(M9012)
To B0
To B0
To B0
* Before execution, carry flag is either 1 or 0.
RCL
Program which rotates the contents of A0 three bits to the left when XC turns on.
X00C
P
0
RCL
* Before execution, carry flag is either 1 or 0.
• Coding
K
0
3
1
4
• Coding
K
0
3
1
4
7 − 26
MELSEC-A
LD
X0
ROLP
K3
END
Contents of B15
before execution
Contents of B15
when n = 1
Contents of B15
when n = 2
LD
X00C
RCLP
K3
END
Carry flag
(M9012)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents