06 Instructions
Last modified by Devin Chen on 2024/10/15 14:46
Basic program instructions
Instruction type | Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
Basic instructions | LD | Operation contact type NO (normally open) | ¡ | ¡ | ¡ | ¡ |
LDI | Operation contact type NC (normally closed) | ¡ | ¡ | ¡ | ¡ | |
OUT | Final logical operation type coil drive | ¡ | ¡ | ¡ | ¡ | |
AND | Serial connection of NO(normally open) | ¡ | ¡ | ¡ | ¡ | |
ANI | Serial logical, operation contact type NC(normally closed) contacts | ¡ | ¡ | ¡ | ¡ | |
OR | Parallel, connection of NO (normally open) contacts | ¡ | ¡ | ¡ | ¡ | |
ORI | Parallel, connection of NC (normally closed) contacts | ¡ | ¡ | ¡ | ¡ | |
LDP | Initial logical, operation -Rising edge pulse | ¡ | ¡ | ¡ | ¡ | |
LDF | Initial logical, operation falling/trailing edge pulse | ¡ | ¡ | ¡ | ¡ | |
ANDP | Serial connection of Rising edge pulse | ¡ | ¡ | ¡ | ¡ | |
ANDF | Serial connection of falling/ trailing edge pulse | ¡ | ¡ | ¡ | ¡ | |
ORP | Parallel, connection of NO Rising edge pulse | ¡ | ¡ | ¡ | ¡ | |
ORF | Parallel connection of Falling/trailing edge pulse | ¡ | ¡ | ¡ | ¡ | |
ORB | Serial connection of multiple parallel circuits | ¡ | ¡ | ¡ | ¡ | |
ANB | Serial connection of multiple parallel circuits | ¡ | ¡ | ¡ | ¡ | |
MPS | Stores the current result of the internal PLC operations | ¡ | ¡ | ¡ | ¡ | |
MRD | Reads the current result of the internal PLC operations | ¡ | ¡ | ¡ | ¡ | |
MPP | Pops (recalls and removes) the currently stored result | ¡ | ¡ | ¡ | ¡ | |
MC | Denotes the start of a master control block | ¡ | ¡ | ¡ | ¡ | |
MCR | Denotes the end of a master control block | ¡ | ¡ | ¡ | ¡ | |
INV | Invert the current result of the internal PLC operations | ¡ | ¡ | ¡ | ¡ | |
PLS | Rising edge pulse | ¡ | ¡ | ¡ | ¡ | |
PLF | Falling / trailing edge pulse | ¡ | ¡ | ¡ | ¡ | |
SET | Sets a bit device permanently ON | ¡ | ¡ | ¡ | ¡ | |
RST | Resets a bit device permanently OFF | ¡ | ¡ | ¡ | ¡ |
Step ladder instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Step ladder instructions | STL | STL programming start instruction | ¡ | ¡ | ¡ | ¡ |
RET | STL programming end instruction | ¡ | ¡ | ¡ | ¡ |
Program Flow instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Program flow instructions | CJ | Conditional jump | ¡ | ¡ | ¡ | ¡ |
CALL | Call Subroutine | ¡ | ¡ | ¡ | ¡ | |
EI | Enable Interrupt | ¡ | ¡ | ¡ | ¡ | |
DI | Disable Interrupt | ¡ | ¡ | ¡ | ¡ | |
WDT | Watchdog Timer | ¡ | ¡ | ¡ | ¡ | |
FOR | Start of a For/Next Loop | ¡ | ¡ | ¡ | ¡ | |
NEXT | End a For/Next Loop | ¡ | ¡ | ¡ | ¡ |
Move and Compare instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Move and Compare instructions | CMP | Compare | ¡ | ¡ | ¡ | ¡ |
ZCP | Zone compare | ¡ | ¡ | ¡ | ¡ | |
MOV | Move | ¡ | ¡ | ¡ | ¡ | |
SMOV | Shift move | - | ¡ | ¡ | ¡ | |
CML | Compliment | - | ¡ | ¡ | ¡ | |
BMOV | Block move | ¡ | ¡ | ¡ | ¡ | |
FMOV | Fill move | - | ¡ | ¡ | ¡ | |
XCH | Exchange | - | ¡ | ¡ | ¡ | |
BCD | Binary coded decimal | ¡ | ¡ | ¡ | ¡ | |
BIN | Binary | ¡ | ¡ | ¡ | ¡ |
Arithmetic and Logical Operations instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Arithmetic and Logical Operations instructions | ADD | Addition | ¡ | ¡ | ¡ | ¡ |
SUB | Subtraction | ¡ | ¡ | ¡ | ¡ | |
MUL | Multiplication | ¡ | ¡ | ¡ | ¡ | |
DIV | Division | ¡ | ¡ | ¡ | ¡ | |
INC | Increment | ¡ | ¡ | ¡ | ¡ | |
DEC | Decrement | ¡ | ¡ | ¡ | ¡ | |
WAND | Word AND | ¡ | ¡ | ¡ | ¡ | |
WOR | Word OR | ¡ | ¡ | ¡ | ¡ | |
WXOR | Word exclusive OR | ¡ | ¡ | ¡ | ¡ | |
NEG | Negation | - | ¡ | ¡ | ¡ |
Rotation and Shift instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Rotation and Shift instructions | ROR | Rotation right | ¡ | ¡ | ¡ | ¡ |
ROL | Rotation left | ¡ | ¡ | ¡ | ¡ | |
RCR | 16-bit rotation right with carry | - | ¡ | ¡ | ¡ | |
RCL | 16-bit rotation left with carry | - | ¡ | ¡ | ¡ | |
SFTR | (bit) shift right | ¡ | ¡ | ¡ | ¡ | |
SFTL | (bit) shift left | ¡ | ¡ | ¡ | ¡ | |
WSFR | word shift right | - | ¡ | ¡ | ¡ | |
WSFL | word shift left | - | ¡ | ¡ | ¡ | |
SFWR | shift register write | ¡ | ¡ | ¡ | ¡ | |
SFRD | shift register read | ¡ | ¡ | ¡ | ¡ |
Data operation instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Data operation instructions | ZRST | Zone reset | ¡ | ¡ | ¡ | ¡ |
DECO | Decode | ¡ | ¡ | ¡ | ¡ | |
ENCO | Encode | ¡ | ¡ | ¡ | ¡ | |
SUM | The sum of active bits | - | ¡ | ¡ | ¡ | |
BON | Check specified bit status | - | ¡ | ¡ | ¡ | |
MEAN | Mean | - | ¡ | ¡ | ¡ | |
ANS | (timed) annunciator set | - | ¡ | ¡ | ¡ | |
ANR | Annunciator reset | - | ¡ | ¡ | ¡ | |
SQR | Square root | - | ¡ | ¡ | ¡ | |
FLT | Float | - | ¡ | ¡ | ¡ | |
SWAP | High and low bit conversion | - | ¡ | ¡ | ¡ |
High-speed Processing Instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
High-speed Processing Instruction | REF | Refresh | ¡ | ¡ | ¡ | ¡ |
REFF | Refresh and filter adjust | - | ¡ | ¡ | ¡ | |
MTR | Input matrix | ¡ | ¡ | ¡ | ¡ | |
DHSCR | High speed counter set | ¡ | ¡ | ¡ | ¡ | |
DHSCS | High speed counter reset | ¡ | ¡ | ¡ | ¡ | |
DHSZ | High speed counter zone compare | - | ¡ | ¡ | ¡ | |
SPD | Speed detect | ¡ | ¡ | ¡ | ¡ | |
PLSY | 16-bit pulse Y output | ¡ | ¡ | ¡ | ¡ | |
PWM | Pulse width modulation | ¡ | ¡ | ¡ | ¡ | |
PLSR | Ramp pulse output | ¡ | ¡ | ¡ | ¡ | |
PLSR2 | Multi-speed pulse output | - | - | ¡ | - |
ECAM instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
ECAM instruction | DECAM | ECAM configuration | - | - | - | ¡ |
DEGEAR | Electronic gear configuration | - | - | - | ¡ | |
ECAMTBX | Create E-CAM datasheet | - | - | - | ¡ |
External I/O Devices instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
External I/O device instruction | TKY | Ten key input | - | ¡ | ¡ | ¡ |
HKY | Hexadecimal input | - | ¡ | ¡ | ¡ | |
DSW | Digital switch (thumbwheel input) | ¡ | ¡ | ¡ | ¡ | |
SEGD | Seven segment decoder | - | ¡ | ¡ | ¡ | |
SEGL | Seven segment with latch | ¡ | ¡ | ¡ | ¡ | |
ARWS | Arrow switch | - | ¡ | ¡ | ¡ | |
ASC | ASCII code | - | ¡ | ¡ | ¡ | |
PR | “print” to a display | - | ¡ | ¡ | ¡ | |
FROM | Read from a special function block | ¡ | ¡ | ¡ | ¡ | |
TO | Write to a special function block | ¡ | ¡ | ¡ | ¡ | |
GRY | Converts binary integer to GRAY code | - | ¡ | ¡ | ¡ | |
GBIN | Converts GRAY CODE to binary | - | ¡ | ¡ | ¡ |
External Devices instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
External devices instruction | RS | RS communications | ¡ | ¡ | ¡ | ¡ |
RS2 | RS2 communications | ¡ | ¡ | ¡ | ¡ | |
CPAVL | Serial port settings | ¡ | ¡ | ¡ | ¡ | |
CPAVL | Ethernet port settings | ¡ | ¡ | ¡ | ¡ | |
PRUN | Octal bit transmission | ¡ | ¡ | ¡ | ¡ | |
ASCI | hexadecimal to ASCII | ¡ | ¡ | ¡ | ¡ | |
HEX | ASCII to hexadecimal | ¡ | ¡ | ¡ | ¡ | |
CCD | check code | ¡ | ¡ | ¡ | ¡ | |
PID | PID control loop | ¡ | ¡ | ¡ | ¡ |
Floating Point instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Floating point instruction | DECMP | Binary floating point data compare | - | ¡ | ¡ | ¡ |
DEZCP | Binary floating point zone compare | - | ¡ | ¡ | ¡ | |
DEBCD | Binary to BCD floating point data conversion | - | ¡ | ¡ | ¡ | |
DEBIN | BCD to Binary floating point data conversion | - | ¡ | ¡ | ¡ | |
DEADD | Binary floating point addition | - | ¡ | ¡ | ¡ | |
DESUB | Binary floating point subtraction | - | ¡ | ¡ | ¡ | |
DEMUL | Binary floating point multiplication | - | ¡ | ¡ | ¡ | |
DEDIV | Binary floating point division | - | ¡ | ¡ | ¡ | |
DESQR | Binary floating point square root | - | ¡ | ¡ | ¡ | |
INT | 16-bit binary floating point to integer | - | ¡ | ¡ | ¡ | |
DSIN | Sin operation | - | ¡ | ¡ | ¡ | |
DCOS | Cosine operation | - | ¡ | ¡ | ¡ | |
DTAN | Tangent operation | - | ¡ | ¡ | ¡ | |
DASIN | Calculate radian value, according to the corresponding value of SIN | - | - | ¡ | ¡ | |
DSINH | Binary floating point operation of Hyperbolic Sine function SINH | - | - | ¡ | ¡ | |
DACOS | Calculate radian value, according to the corresponding value of COS | - | - | ¡ | ¡ | |
DCOSH | Binary floating point operation of Hyperbolic Cosine function COSH | - | - | ¡ | ¡ | |
DATAN | Calculate radian value, according to the corresponding value of TAN | - | - | ¡ | ¡ | |
DTANH | Binary floating point operation of Hyperbolic Tangent function TANH | - | - | ¡ | ¡ | |
DEXP | Perform exponent operation of binary floating-point number to base e (2.71828) | - | - | ¡ | ¡ | |
DLOG10 | Perform common logarithm operation of binary floating-point number to base 10 | - | - | ¡ | ¡ | |
DLOGE | Perform natural logarithm operation of binary floating-point number to base e (2.71828) | - | - | ¡ | ¡ |
Positioning Instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Positioning instruction | DABS | Absolute current value read | ¡ | ¡ | ¡ | ¡ |
ZRN | Setting of zero return speed | ¡ | ¡ | ¡ | ¡ | |
PLSV | Variable speed pulse output | ¡ | ¡ | ¡ | ¡ | |
DRVI | Relative position control | ¡ | ¡ | ¡ | ¡ | |
DRVA | Absolute position control | ¡ | ¡ | ¡ | ¡ |
4.14 Real Time Clock Control
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Real time clock control | TCMP | time compare | ¡ | ¡ | ¡ | ¡ |
TZCP | time zone compare | ¡ | ¡ | ¡ | ¡ | |
TADD | time addition | ¡ | ¡ | ¡ | ¡ | |
TSUB | time subtraction | ¡ | ¡ | ¡ | ¡ | |
TRD | read RTC data | ¡ | ¡ | ¡ | ¡ | |
TWR | set RTC data | ¡ | ¡ | ¡ | ¡ | |
HOUR | 16-bit chronograph | ¡ | ¡ | ¡ | ¡ |
Handy Instructions
Instruction type | Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
Handy instruction | IST | initial state | ¡ | ¡ | ¡ | ¡ |
SER | Search | - | ¡ | ¡ | ¡ | |
ABSD | Absolute drum | ¡ | ¡ | ¡ | ¡ | |
INCD | Incremental drum | ¡ | ¡ | ¡ | ¡ | |
TTMR | Teaching timer | - | ¡ | ¡ | ¡ | |
STMR | Special timer - definable | - | ¡ | ¡ | ¡ | |
ALT | Alternate state | ¡ | ¡ | ¡ | ¡ | |
RAMP | Ramp - variable value | ¡ | ¡ | ¡ | ¡ | |
ROTC | Rotary table control | - | ¡ | ¡ | ¡ | |
SORT | Sort data | - | ¡ | ¡ | ¡ |
Circular interpolation instructions
Instruction type | Instruction | Decryption | LX3V | LX3VP | LX3VE | LX3VM |
Circular interpolation instruction | G90G01 | Absolute position line interpolation | - | - | - | ¡ |
G91G01 | Relative position line interpolation | - | - | - | ¡ | |
G90G02 | Absolute position of the clockwise circular interpolation | - | - | - | ¡ | |
G91G02 | Relative position clockwise circular interpolation | - | - | - | ¡ | |
G90G03 | Absolute position anticlockwise circular interpolation | - | - | - | ¡ | |
G91G03 | Relative position anticlockwise circular interpolation | - | - | - | ¡ |
Inline Comparisons Instructions
Instruction type | Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
Inline comparisons instruction | LD= | Comparison of 16-bit data (==) | ¡ | ¡ | ¡ | ¡ |
LD> | Comparison of 16-bit data (> | ¡ | ¡ | ¡ | ¡ | |
LD< | Comparison of 16-bit data (< | ¡ | ¡ | ¡ | ¡ | |
LD<> | Comparison of 16-bit data (<> | ¡ | ¡ | ¡ | ¡ | |
LD<= | Comparison of 16-bit data (<=) | ¡ | ¡ | ¡ | ¡ | |
LD>= | Comparison of 16-bit data (>=) | ¡ | ¡ | ¡ | ¡ | |
AND= | Comparison of 16-bit data (==) | ¡ | ¡ | ¡ | ¡ | |
AND> | Comparison of 16-bit data (> | ¡ | ¡ | ¡ | ¡ | |
AND< | Comparison of 16-bit data (< | ¡ | ¡ | ¡ | ¡ | |
AND<> | Comparison of 16-bit data (<> | ¡ | ¡ | ¡ | ¡ | |
AND<= | Comparison of 16-bit data (<=) | ¡ | ¡ | ¡ | ¡ | |
AND>= | Comparison of 16-bit data (>=) | ¡ | ¡ | ¡ | ¡ | |
OR= | Comparison of 16-bit data (==) | ¡ | ¡ | ¡ | ¡ | |
ORD= | Comparison of 32-bit data (==) | ¡ | ¡ | ¡ | ¡ | |
OR> | Comparison of 16-bit data (> | ¡ | ¡ | ¡ | ¡ | |
OR< | Comparison of 16-bit data (< | ¡ | ¡ | ¡ | ¡ | |
OR<> | Comparison of 16-bit data (<> | ¡ | ¡ | ¡ | ¡ | |
OR<= | Comparison of 16-bit data (<=) | ¡ | ¡ | ¡ | ¡ | |
OR>= | Comparison of 16-bit data (>=) | ¡ | ¡ | ¡ | ¡ |