Delta Electronics VFD037CH23A-21 [500/638] Description of the application commands

Превью страниц Страница 500 / 638
Delta Electronics VFD037CH23A-21 [500/638] Description of the application commands
Chapter 16 PLC Function CH2000 Series
16-47
Mnemonic Function
P
Indicator
Operand
P0~P255
Indicator P allows API 00 CJ command and API 01 CALL command to skip from 0.
Though it is not necessary to start from number 0, same number can not be used
twice or serious error would occur.
Command code: Operation:
LD X0
Load contact A of X0
CJ P10
Skip command CJ to
P10
:
P10
Indicator P10
Example
Ladder diagram:
X0
Y1
CJ P10
X1
P10
LD X1 Load contact A of X1
OUT Y1 Drive Y1 coil
16.6.3 Description of the Application Commands
Mnemonic Codes STEPS
API
16-bit 32-bit
P
Command
Function
16bit 32bit
01 CALL -
CALL subroutine 3 -
02 SRET - - The end of subroutine 1 -
Loop control
06 FEND - - The end of main program 1 -
10 CMP
DCMP
Compare
7 13
11 ZCP
DZCP
Zone compare 9 17
12 MOV
DMOV
Data Move 5 9
Transmission
Comparison
15 BMOV
DCMP
Block move 7
20 ADD
Perform the addition of BIN
data
7
13
21 SUB
DADD
Perform the subtraction of
BIN data
7
13
22 MUL
DSUB
Perform the multiplication
of BIN data
7
13
23 DIV
DMUL
Perform the division of BIN
data
7
13
24 INC
DDIV
Perform the addition of 1 3
5
Four
Fundamental
Operations of
Arithmetic
25 DEC
DINC
Perform the subtraction of
1
3
5
30 ROR
DDEC
Rotate to the right 5
Rotation and
Displacement
31 ROL
DROR
Rotate to the left 5
40 ZRST
Zero Reset 5 -
Data
Processing
49 FLT DFLT
Floating Point 5 9
Communication
150 MODRW
MODBUS R/W 7
Floating Point
110 – DECMP
Floating Point Compare – 13

Содержание

1610