Download  Print this page

Mitsubishi Electric Artisan MELSEC-Q Series Manual Page 135

General-purpose programmable controllers, large/small.
Hide thumbs

Advertisement

7.1 Replace instructions with different QCPU instruction format (excluding AnACPU/AnUCPU dedicated instructions)
(2) ACPU to QCPU instruction replacement
Replacing ACPU program with QCPU program using "Change PLC type" converts ACPU instructions into
QCPU instructions. Therefore, even if the accumulators A0 and A1 are not explicitly specified in the ACPU
program, the devices SD718 and SD719 will automatically take over the accumulators' functionalities in the
QCPU program.
However, if A0 and A1 are explicitly described in the ACPU program, the devices SD718 and SD719 will
directly replace the accumulators.
The program converted through "Change PLC type" will execute normally and modifications are not necessary.
(3) Changing to QCPU instruction format
The automatically converted programs will execute without problems. However, modifying the instructions into
QCPU format will significantly simplify the program and reduce the number of steps.
(4) List of instructions that use accumulators (A0 and A1)
Function
Format of instructions
Right rotation of
16-bit data
Left rotation of
16-bit data
Right rotation of
32-bit data
Left rotation of
32-bit data
16-bit data
search
32-bit data
search
16-bit data
checks
32-bit data
checks
*1 Rotation result is stored in A0.
*2 Rotation result is stored in A0 and A1.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
QCPU/QnACPU
• D: Rotation data
ROR
D
n
• D: Rotation data
RCR
D
n
• Use SM700 for carry flag
ROL
D
n
• D: Rotation data
• D: Rotation data
RCL
D
n
• Use SM700 for carry flag
• D: Rotation data
DROR
D
n
• D: Rotation data
DRCR
D
n
• Use SM700 for carry flag
• D: Rotation data
DROL
D
n
• D: Rotation data
DRCL
D
n
• Use SM700 for carry flag
• Search result is stored
SER
S1
S2
D
n
in D, D +1 device
• Search result is stored
DSER
S1
S2
D
n
in D, D +1device
• Check result is stored
SUM
S
D
in D device
• Check result is stored
DSUM
S
D
in D device
Remarks
Format of instructions
ROR
n
RCR
n
ROL
n
RCL
n
DROR
DRCR
DROL
DRCL
SER
DSER
SUM
S
DSUM
132
AnUCPU/AnACPU/AnNCPU
Remarks
• Rotation data is set
in A0.*
1
• Rotation data is set
in A0.*
1
• Use M9012 for carry flag.
• Rotation data is set
in A0.*
1
• Rotation data is set
in A0.*
1
• Use M9012 for carry flag.
• Rotation data is set
n
in A0, A1.*
2
• Rotation data is set
in A0, A1.*
n
2
• Use M9012 for carry flag.
• Rotation data is set
n
in A0, A1.*
2
• Rotation data is set
in A0, A1.*
n
2
• Use M9012 for carry flag.
• Search result is stored
S1
S2
n
in A0, A1.
• Search result is stored
S1
S2
n
in A0, A1.
• Check result is stored
in A0.
• Check result is stored
S
in A0.

Advertisement

Table of Contents

   Related Manuals for Mitsubishi Electric Artisan MELSEC-Q Series

Comments to this Manuals

Symbols: 0
Latest comments: