5 Categories & Use of Application Instructions Device name Device type Input of application instruction: Some application instructions are only composed of the instruction part (mnemonic), e.g. EI, DI, WDT…. Most application instructions are composed of the instruction part and many operands. The application instructions for DVP-PLC are represented as API 00 ~ API 246. Every application instruction has its own mnemonic. For example, the mnemonic of API 12 is MOV. If you are using the ladder diagram editing software (WPLSoft) to input API 12 into the program, you only have to enter “MOV”.
If you are using the handheld programming panel (HPP) to input API 12 into the program, you will have to enter the API No. “12”. Different application instructions designate different operands. Take MOV instruction for example: X0 MOV K10 D10 Instruction mnemonic Operands MOV instruction is to move the operand designated in S to the operand designated in D . Length of operand (16-bit instruction or 32-bit instruction) Depending on the contents in the operand, the length of an operand can be 16-bit or 32-bit. Therefore, a 16-bit instruction is for processing 16-bit operands, and 32-bit instruction is for processing 32-bit operands.
The 32-bit instruction is indicated by adding a “D” before the 16-bit instruction. 16-bit MOV instruction X0 When X0 = On, K10 will be sent to D10. 32-bit DMOV instruction X1 When X1 = On, the content in (D11, D10) will be sent to (D21, D20). DVP-PLC Application Manual 5-7 S Source operand: If there are more than 1 source operands, they will be represented as S , S , …. 1 2 D Destination operand: If there are more than 1 destination operands, they will be represented as D , D , …. 1 2 If the operand can only be constant K/H or a register, it will be represented as m, m , m , n, n , n , …. 1 2 1 2 MOV K10 D10 DMOV D10 D20