C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
Additional remark: 05PM=AH05PM-5A; 15PM=AH15PM-5A; 10PM=AH10PM-5A;
20MC=AH20MC-5A
5.2
Structure of an Applied Instruction
An applied instruction is composed of an instruction name and operands.
Instruction name:
An instruction name represents a function.
Operand:
An operand is the object of an operation.
An instruction name occupie one step. The number of steps an operand occupies can be two
or three, depending on the instruction used is a 16-bit instruciton or a 32-bit instruction.
K/16#/F used by a 32-bit instruction occupies three steps, and the other operands occupy two
steps.
Descriptions of the applied instructions
1. A PLC instruction is assigned an instruction code and an API number. The API number in
the table below is 012, and the instruction code in the table below is MOV. MOV is used to
transfer data.
API Instruction
code
Operand
Function
012
D MOV P
S, D
Transferring a value
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (6 steps)
2. The devices used by an instruction are shown in a device table. S, D, n, and m are used as
operands according to their functions. If more than one operand is used, and these
operands have the same function, they will be suffixed with numbers, e.g.
S
1
and
S
2
.
3. If an instruction is used as a pulse instruction, “P” will be added to the back of its instruction
code. If an instruction is used as a 32-bit instruction, “D” will be added to the front of its
instruction code. For example, “***” in “D***P” is an instruction code.
4. A 32-bit floating-point number is notated by “F”.
5. The devices marked with “
●
” in the table above can be modified by V devices and Z devices,
and the devices marked with “
○
” in the table above can not be modified by V devices and Z
devices. For example, the D device specified by the operand
S
can be modified by a V
device or a Z device.
6. A V device can only be used by a 16-bit instruction, and a Z device can only be used by a
32-bit instruction.
7. “
” in the table above indicates that AH05PM-5A/AH15PM-5A/AH10PM-5A and
AH20MC-5A are supported, and “–” in the table above indicates that AH05PM/10PM-5A
and AH20MC-5A are not supported. Users can check whether the instruction can be used
as a pulse instruction, a 16-bit instruction, and a 32-bit instruction according to the
information in the table.
Typing an applied instruction
Some applied instructions are composed of instruction names, e.g. BRET and SRET, but
most applied instructions are composed of instruction names and operands.
The applied instructions that a module can use are assigned the instruction numbers API
00~API 260. Besides, every applied instruction is assigned a mnemonic. For example, the
mnemonic of API 12 is MOV. If users want to type an instruction by means of PMSoft, they
can type the mnemonic assigned to the instruction. Every applied instruction specifies
operands. Take the instruction MOV for instance.
5 - 9
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...