DVP - ES2/SA2/SS2/SA2/SX2/SE Operation Manual - Programming

3.5 Application Programming Instructions

1.PLC instructions are provided with a unique mnemonic name to make it easy to remember instructions. In the example below the API number given to the instruction is 12, the mnemonic name is MOV and the function description is Move.

API

Mnemonic

Operands

Function

Controllers

12

D

MOV

 

P

 

 

 

 

 

Move

 

 

 

 

 

 

SA2

 

 

 

 

 

 

 

 

 

 

 

 

 

ES2/EX2 SS2 SE

SX2

 

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

MOV, MOVP: 5 steps

 

S

 

 

 

 

*

*

*

 

*

*

*

*

*

*

*

*

DMOV, DMOVP: 9 steps

 

D

 

 

 

 

 

 

 

 

*

*

*

*

*

*

*

*

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

16-bit

 

 

32-bit

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2 ES2/EX2 SS2 SA2

SX2

 

 

 

 

 

 

SE

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.The area of ‘Operands’ lists the devices (operands) required for the instruction. Identification letters are used to associate each operand with its function, e.g. D-destination, S-source, n, m-number of devices. Additional numeric suffixes will be attached if there are more than one operand with the same function, e.g. S1, S2.

3.When using WPLSoft for programming user program, it is not necessary to remember the API number of an instruction since WPLSoft offers drop down list to select an instruction.

4.Applicable controllers are identified by the boxes at the right of the table. For individual instruction properties of Pulse, 16-bit or 32-bit, please refer to the box down the table.

5.Pulse operation requires a ‘P’ to be added directly after the mnemonic while 32 bit operation requires a ‘D’ to be added before the mnemonic, i.e. if an instruction was being used with both pulse and 32 bit operation it appears as “D***P” where *** is the basic mnemonic.

Instruction Composition

The application instructions are specified by API numbers 0~--- and each has its mnemonic. When designing the user program with ladder editing program (WPLSoft), users only need to key in the mnemonic, e.g. MOV, and the instruction will be inserted. Instructions consist of either just the instruction or the instruction followed by operands for parameter settings. Take MOV instruction for example:

X0

MOV K10 D10

Instruction Operand

Mnemonic

:

Indicates the name and the function of the instruction

Operand

:

The parameter setting for the instruction

3 - 14

Page 130
Image 130
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Application Programming Instructions, Api, Mnemonic Operands Function Controllers