Function
Right rotation of
16-bit data
AnUCPU/AnACPU/AnNCPU
QCPU/QnACPU
• D: Rotation data
• Rotation data is set
in A0.*
1
• D: Rotation data
• Use SM700 for carry flag
• Rotation data is set
in A0.*
1
• Use M9012 for carry flag.
Left rotation of
16-bit data
• D: Rotation data
• Rotation data is set
in A0.*
1
• D: Rotation data
• Use SM700 for carry flag
• Rotation data is set
in A0.*
1
• Use M9012 for carry flag.
Right rotation of
32-bit data
• D: Rotation data
• Rotation data is set
in A0, A1.*
2
• D: Rotation data
• Use SM700 for carry flag
• Rotation data is set
in A0, A1.*
2
• Use M9012 for carry flag.
Left rotation of
32-bit data
16-bit data
search
• D: Rotation data
• Rotation data is set
in A0, A1.*
2
• Search result is stored
in D, D +1 device
• Search result is stored
in A0, A1.
32-bit data
search
• Search result is stored
in D, D +1device
• Search result is stored
in A0, A1.
16-bit data
checks
• Check result is stored
in D device
• Check result is stored
in A0.
32-bit data
checks
• Check result is stored
in D device
• Check result is stored
in A0.
• D: Rotation data
• Use SM700 for carry flag
• Rotation data is set
in A0, A1.*
2
• Use M9012 for carry flag.
Format of instructions
Remarks
Format of instructions
Remarks
n
D
ROR
n
D
RCR
n
D
ROL
n
D
RCL
n
D
DROR
n
D
DRCR
n
D
DROL
n
D
DRCL
D
S
SUM
D
S
DSUM
n
D
S2
S1
SER
n
D
S2
S1
DSER
n
ROR
n
RCR
n
ROL
n
RCL
n
DROR
n
DRCR
n
DROL
n
DRCL
S
SUM
S
DSUM
n
S2
S1
SER
n
S2
S1
DSER
*1 Rotation result is stored in A0.
*2 Rotation result is stored in A0 and A1.
Execute rotation of and store the result in the specified device.
MOVP
* (Transfer the rotation data to A0)
0
X0
Instruction
execution
condition
M9012
Carry flag
D0
Rotation
execution
device
A0
END
16
K3
MOVP
* (Transfer the rotation result)
A0
D0
Rotation
execution
device
M0
Check Carry
ON/OFF
* (Execute the rotation)
RORP
MOVP
(Transfer the rotation data)
0
X0
Instruction
execution
condition
SM700
Carry flag
(ACPU M9012)
D0
Rotation
execution
device
SD718
ACPU [A0]
converted
to special D
END
51
MOVP
(Transfer the rotation result)
SD718
ACPU [A0]
converted
to special D
D0
Rotation
execution
device
RORP
SD718
ACPU [A0]
converted
to special D
K3
M0
Check Carry
ON/OFF
(Execute the rotation)
0
X0
Instruction
execution
condition
SM700
Carry flag
(ACPU M9012)
END
39
RORP
D0
Rotation
execution
device
K3
M0
Check Carry
ON/OFF
ACPU program
Replacement QCPU program
Equivalent QCPU program in instruction format
(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)
(5) Program replacement example
(1) Right rotation of 16-bit data instruction
(
ROR
)
132
7.1 Replace instructions with different QCPU instruction format (excluding AnACPU/AnUCPU dedicated instructions)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com