Chapter 5 Applied Instructions Additional remark: 05PM=AH05PM-5A; 10PM=AH10PM-5A; 15PM=AH15PM-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. 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, AH10PM-5A, AH15PM-5A, and AH20MC-5A are supported, and “–” in the table above indicates that AH05PM, AH10PM-5A AH15PM-5A, and AH20MC-5A are not supported.
Users can check whether the instruction 5-9 Instruction code Model Step Pulse Page Type AP I 16-bit Function 20MC 10PM/ 15PM 32-bit instruction 05P M 16-bit 32-bit number Other instructions 258 BRET – – Returning to a busbar 1 – 5-125 259 MMOV – Converting a 16-bit value into a 32-bit value 6 – 5-126 260 RMOV – Converting a 32-bit value into a 16-bit value 6 – 5-127 API Instruction code Operand Function 12 D MOV P S, D Transferring a value Device Xn.n Yn.n 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 )