175
4
4 Instructions 4.5.2 Data Transfer
Example 1:
M2
ǒCML D0 D10Ǔ
0 1 0
1
1
0 1 0
1 0 11 0 1 0 0
1 0 1
0
0
1 0 1
0 1 00
1
1 0 1
D0
D10
Ladder chart
Instruction list
LD M2
CML D0 D10
Example 2:
The preceding two programs can be executed by the CML instruction as follows:
Example 3:
M2
〔CML D0 K1M0〕
0 1 0
1
1
0 1 0
1 0 11 0 1 0 0
0 1 0
1
D0
K1M0
M0M1
M2M3
M2
〔CML D0 K1M0〕
0 1 0
1
1
0 1 0
1 0 11 0 1 0 0
0 1 0
1
D0
K1M0
M0M1
M2M3
ZPUSH: Index register batch storage
◆
Overview
The ZPUSH instruction copies the current values of index registers V0–V7 and Z0–Z7 to elements for
temporary storage.
Use the ZPOP instruction to recover the temporarily stored values.
ZPUSH
D
Index register
batch storage
Applicable model:
H3U
D
Destination
address
Start number of elements that temporarily store the
current values of index registers V0–V7 and Z0–Z7
D: Number of batch storing times
D+1 to D+16 x Number of batch storing times: Position of
batch data storage
16-bit instruction (3
steps)
ZPUSH: Continuous
execution
ZPUSHP: Pulse
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.