Chapter 4 Instruction Structure counter that are supported in the operands, you have to use the timer pointer register, the 16-bit counter pointer register, and the 32-bit counter pointer register. Refer to Sections 4.4–4.7 for more information or Section 7.2.4 in the ISPSoft manual. 7. The symbols representing the MOV instruction in ISPSoft are: MOV, MOVP, DMOV, and DMOVP are the Instruction codes for this instruction En : Enable S : The data source (the applicable format of the operand is a word/double word.) D : The data destination (the applicable format of the operand is a word/double word.) Applied instructions composition Some applied instructions are composed of instruction codes.
For example, the EI, DI, and WDT instructions; however, most applied instructions consist of instruction codes and several operands. Every applied instruction has its own API number and instruction code. For example, the instruction code API 0300 is the MOV (transfer data) instruction. You can enter an applied instruction in three ways. 4_ Enter the instruction directly: you can enter the instruction in ISPSoft. For the MOV instruction, enter the instruction name and the operands to designate “MOV D0 Enter the instruction by dragging: you can drag the MOV instruction from APIs in ISPSoft to the ladder diagram editor. Enter the instruction from the toolbar:
you can click API/FB Selection on the toolbar in ISPSoft, and then click API . Finally, click the MOV instruction in Data Transfer . The length of the operand (6-bit, 32-bit, or floating-point number instructions): 16-bit or 32-bit instructions Operand values in instructions are divided into 16-bit values and the 32-bit values. In order to process data of difference lengths, the instructions are divided into 16-bit and 32-bit instructions. To differentiate a 32-bit instruction from the 16-bit form, a D is added in front of the 16-bit instruction code (16-bit MOV and 32-bit DMOV).
4-3 S Source operand If there is more than one source operand, the source operands are represented by subscript (for example S1, S2). D Destination operand If there is more than one destination operand, the destination operands are represented by subscript (for example, D1, D2). If the operand only can be a constant K/H or a register value, it is represented by m, m1, m2, n, n1, or n2.