01 Instruction lists
Last modified by Wecon on 2025/09/03 21:03
Basic Instructions
| Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| STL | STL programming start instruction | ¡ | ¡ | ¡ | ¡ |
| RET | STL programming end instruction | ¡ | ¡ | ¡ | ¡ |
Program Flow
| Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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 | ¡ | ¡ | ¡ | ¡ |
ECAM
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| DECAM | ECAM configuration | - | - | - | ¡ |
| DEGEAR | Electronic gear configuration | - | - | - | ¡ |
| ECAMTBX | Create E-CAM datasheet | - | - | - | ¡ |
External I/O Devices
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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 | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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 | Description | LX3V(1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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
| Instruction | Decryption | LX3V | LX3VP | LX3VE | LX3VM |
|---|---|---|---|---|---|
| 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
| Instruction | Description | LX3V (1S) | LX3V (2N) | LX3VP | LX3VE |
|---|---|---|---|---|---|
| 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 (>=) | ¡ | ¡ | ¡ | ¡ |