Wiki source code of 01 Instruction lists

Last modified by Wecon on 2025/09/03 21:03

Hide last authors
Wecon 1.1 1 = **Basic Instructions** =
2
3 (% class="table-bordered" %)
4 |=**Instruction**|=**Description**|=LX3V(1S)|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
5 |=LD|Operation contact type NO (normally open)|¡|¡|¡|¡
6 |=LDI|Operation contact type NC (normally closed)|¡|¡|¡|¡
7 |=OUT|Final logical operation type coil drive|¡|¡|¡|¡
8 |=AND|Serial connection of NO(normally open)|¡|¡|¡|¡
9 |=ANI|Serial logical, operation contact type NC(normally closed) contacts|¡|¡|¡|¡
10 |=OR|Parallel, connection of NO (normally open) contacts|¡|¡|¡|¡
11 |=ORI|Parallel, connection of NC (normally closed) contacts|¡|¡|¡|¡
12 |=LDP|Initial logical, operation -Rising edge pulse|¡|¡|¡|¡
13 |=LDF|Initial logical, operation falling/trailing edge pulse|¡|¡|¡|¡
14 |=ANDP|Serial connection of Rising edge pulse|¡|¡|¡|¡
15 |=ANDF|Serial connection of falling/ trailing edge pulse|¡|¡|¡|¡
16 |=ORP|Parallel, connection of NO Rising edge pulse|¡|¡|¡|¡
17 |=ORF|Parallel connection of Falling/trailing edge pulse|¡|¡|¡|¡
18 |=ORB|Serial connection of multiple parallel circuits|¡|¡|¡|¡
19 |=ANB|Serial connection of multiple parallel circuits|¡|¡|¡|¡
20 |=MPS|Stores the current result of the internal PLC operations|¡|¡|¡|¡
21 |=MRD|Reads the current result of the internal PLC operations|¡|¡|¡|¡
22 |=MPP|Pops (recalls and removes) the currently stored result|¡|¡|¡|¡
23 |=MC|Denotes the start of a master control block|¡|¡|¡|¡
24 |=MCR|Denotes the end of a master control block|¡|¡|¡|¡
25 |=INV|Invert the current result of the internal PLC operations|¡|¡|¡|¡
26 |=PLS|Rising edge pulse|¡|¡|¡|¡
27 |=PLF|Falling / trailing edge pulse|¡|¡|¡|¡
28 |=SET|Sets a bit device permanently ON|¡|¡|¡|¡
29 |=RST|Resets a bit device permanently OFF|¡|¡|¡|¡
30
31 = **Step ladder** =
32
33 (% class="table-bordered" %)
34 |=**Instruction**|=**Description**|=LX3V(1S)|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
35 |=STL|STL programming start instruction|¡|¡|¡|¡
36 |=RET|STL programming end instruction|¡|¡|¡|¡
37
38 = **Program Flow** =
39
40 (% class="table-bordered" %)
41 |=(% style="width: 129px;" %)**Instruction**|=(% style="width: 306px;" %)**Description**|=LX3V(1S)|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
42 |=(% style="width: 129px;" %)CJ|(% style="width:306px" %)Conditional jump|¡|¡|¡|¡
43 |=(% style="width: 129px;" %)CALL|(% style="width:306px" %)Call Subroutine|¡|¡|¡|¡
44 |=(% style="width: 129px;" %)EI|(% style="width:306px" %)Enable Interrupt|¡|¡|¡|¡
45 |=(% style="width: 129px;" %)DI|(% style="width:306px" %)Disable Interrupt|¡|¡|¡|¡
46 |=(% style="width: 129px;" %)WDT|(% style="width:306px" %)Watchdog Timer|¡|¡|¡|¡
47 |=(% style="width: 129px;" %)FOR|(% style="width:306px" %)Start of a For/Next Loop|¡|¡|¡|¡
48 |=(% style="width: 129px;" %)NEXT|(% style="width:306px" %)End a For/Next Loop|¡|¡|¡|¡
49
50 = **Move and Compare** =
51
52 (% class="table-bordered" %)
53 |=(% style="width: 146px;" %)**Instruction**|=**Description**|LX3V(1S)|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
54 |=(% style="width: 146px;" %)CMP|Compare |¡|¡|¡|¡
55 |=(% style="width: 146px;" %)ZCP|Zone compare|¡|¡|¡|¡
56 |=(% style="width: 146px;" %)MOV|Move |¡|¡|¡|¡
57 |=(% style="width: 146px;" %)SMOV|Shift move|-|¡|¡|¡
58 |=(% style="width: 146px;" %)CML|Compliment |-|¡|¡|¡
59 |=(% style="width: 146px;" %)BMOV|Block move|¡|¡|¡|¡
60 |=(% style="width: 146px;" %)FMOV|Fill move|-|¡|¡|¡
61 |=(% style="width: 146px;" %)XCH|Exchange |-|¡|¡|¡
62 |=(% style="width: 146px;" %)BCD|Binary coded decimal|¡|¡|¡|¡
63 |=(% style="width: 146px;" %)BIN|Binary |¡|¡|¡|¡
64
65 = **Arithmetic and Logical Operations** =
66
67 (% class="table-bordered" %)
68 |=(% style="width: 162px;" %)**Instruction**|=(% style="width: 206px;" %)**Description**|=(((
69 **LX3V**
70
71 **(1S)**
72 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
73 |=(% style="width: 162px;" %)ADD|(% style="width:206px" %)Addition |¡|¡|¡|¡
74 |=(% style="width: 162px;" %)SUB|(% style="width:206px" %)Subtraction |¡|¡|¡|¡
75 |=(% style="width: 162px;" %)MUL|(% style="width:206px" %)Multiplication |¡|¡|¡|¡
76 |=(% style="width: 162px;" %)DIV|(% style="width:206px" %)Division |¡|¡|¡|¡
77 |=(% style="width: 162px;" %)INC|(% style="width:206px" %)Increment|¡|¡|¡|¡
78 |=(% style="width: 162px;" %)DEC|(% style="width:206px" %)Decrement|¡|¡|¡|¡
79 |=(% style="width: 162px;" %)WAND|(% style="width:206px" %)Word AND|¡|¡|¡|¡
80 |=(% style="width: 162px;" %)WOR|(% style="width:206px" %)Word OR|¡|¡|¡|¡
81 |=(% style="width: 162px;" %)WXOR|(% style="width:206px" %)Word exclusive OR|¡|¡|¡|¡
82 |=(% style="width: 162px;" %)NEG|(% style="width:206px" %)Negation |-|¡|¡|¡
83
84 = **Rotation and Shift** =
85
86 (% class="table-bordered" %)
87 |=(% style="width: 134px;" %)**Instruction**|=(% style="width: 280px;" %)**Description**|=(((
88 **LX3V**
89
90 **(1S)**
91 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
92 |=(% style="width: 134px;" %)ROR|(% style="width:280px" %)Rotation right|¡|¡|¡|¡
93 |=(% style="width: 134px;" %)ROL|(% style="width:280px" %)Rotation left|¡|¡|¡|¡
94 |=(% style="width: 134px;" %)RCR|(% style="width:280px" %)16-bit rotation right with carry|-|¡|¡|¡
95 |=(% style="width: 134px;" %)RCL|(% style="width:280px" %)16-bit rotation left with carry|-|¡|¡|¡
96 |=(% style="width: 134px;" %)SFTR|(% style="width:280px" %)(bit) shift right|¡|¡|¡|¡
97 |=(% style="width: 134px;" %)SFTL|(% style="width:280px" %)(bit) shift left|¡|¡|¡|¡
98 |=(% style="width: 134px;" %)WSFR|(% style="width:280px" %)word shift right|-|¡|¡|¡
99 |=(% style="width: 134px;" %)WSFL|(% style="width:280px" %)word shift left|-|¡|¡|¡
100 |=(% style="width: 134px;" %)SFWR|(% style="width:280px" %)shift register write|¡|¡|¡|¡
101 |=(% style="width: 134px;" %)SFRD|(% style="width:280px" %)shift register read|¡|¡|¡|¡
102
103 = **Data Operation** =
104
105 (% class="table-bordered" %)
106 |=(% style="width: 135px;" %)**Instruction**|=(% style="width: 266px;" %)**Description**|=(((
107 **LX3V**
108
109 **(1S)**
110 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
111 |=(% style="width: 135px;" %)ZRST|(% style="width:266px" %)Zone reset|¡|¡|¡|¡
112 |=(% style="width: 135px;" %)DECO|(% style="width:266px" %)Decode |¡|¡|¡|¡
113 |=(% style="width: 135px;" %)ENCO|(% style="width:266px" %)Encode |¡|¡|¡|¡
114 |=(% style="width: 135px;" %)SUM|(% style="width:266px" %)The sum of active bits|-|¡|¡|¡
115 |=(% style="width: 135px;" %)BON|(% style="width:266px" %)Check specified bit status|-|¡|¡|¡
116 |=(% style="width: 135px;" %)MEAN|(% style="width:266px" %)Mean |-|¡|¡|¡
117 |=(% style="width: 135px;" %)ANS|(% style="width:266px" %)(timed) annunciator set|-|¡|¡|¡
118 |=(% style="width: 135px;" %)ANR|(% style="width:266px" %)Annunciator reset|-|¡|¡|¡
119 |=(% style="width: 135px;" %)SQR|(% style="width:266px" %)Square root|-|¡|¡|¡
120 |=(% style="width: 135px;" %)FLT|(% style="width:266px" %)Float |-|¡|¡|¡
121 |=(% style="width: 135px;" %)SWAP|(% style="width:266px" %)High and low bit conversion|-|¡|¡|¡
122
123 = **High-speed Processing** =
124
125 (% class="table-bordered" %)
126 |=(% style="width: 137px;" %)**Instruction**|=**Description**|=(((
127 **LX3V**
128
129 **(1S)**
130 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
131 |=(% style="width: 137px;" %)REF|Refresh|¡|¡|¡|¡
132 |=(% style="width: 137px;" %)REFF|Refresh and filter adjust|-|¡|¡|¡
133 |=(% style="width: 137px;" %)MTR|Input matrix|¡|¡|¡|¡
134 |=(% style="width: 137px;" %)DHSCR|High speed counter set|¡|¡|¡|¡
135 |=(% style="width: 137px;" %)DHSCS|High speed counter reset|¡|¡|¡|¡
136 |=(% style="width: 137px;" %)DHSZ|High speed counter zone compare|-|¡|¡|¡
137 |=(% style="width: 137px;" %)SPD|Speed detect|¡|¡|¡|¡
138 |=(% style="width: 137px;" %)PLSY|16-bit pulse Y output|¡|¡|¡|¡
139 |=(% style="width: 137px;" %)PWM|Pulse width modulation|¡|¡|¡|¡
140 |=(% style="width: 137px;" %)PLSR|Ramp pulse output|¡|¡|¡|¡
141
142 = **ECAM** =
143
144 (% class="table-bordered" %)
145 |=**Instruction**|=**Description**|=(((
146 **LX3V**
147
148 **(1S)**
149 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
150 |=DECAM|ECAM configuration|-|-|-|¡
151 |=DEGEAR|Electronic gear configuration|-|-|-|¡
152 |=ECAMTBX|Create E-CAM datasheet|-|-|-|¡
153
154 = **External I/O Devices** =
155
156 (% class="table-bordered" %)
157 |=**Instruction**|=**Description**|=(((
158 **LX3V**
159
160 **(1S)**
161 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
162 |=TKY|Ten key input|-|¡|¡|¡
163 |=HKY|Hexadecimal input|-|¡|¡|¡
164 |=DSW|Digital switch (thumbwheel input)|¡|¡|¡|¡
165 |=SEGD|Seven segment decoder|-|¡|¡|¡
166 |=SEGL|Seven segment with latch|¡|¡|¡|¡
167 |=ARWS|Arrow switch|-|¡|¡|¡
168 |=ASC|ASCII code|-|¡|¡|¡
169 |=PR|“print” to a display|-|¡|¡|¡
170 |=FROM|Read from a special function block|¡|¡|¡|¡
171 |=TO|Write to a special function block|¡|¡|¡|¡
172 |=GRY|Converts binary integer to GRAY code|-|¡|¡|¡
173 |=GBIN|Converts GRAY CODE to binary|-|¡|¡|¡
174
175 = **External Devices** =
176
177 (% class="table-bordered" %)
178 |=**Instruction**|=**Description**|=(((
179 **LX3V**
180
181 **(1S)**
182 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
183 |=RS|RS communications|¡|¡|¡|¡
184 |=RS2|RS2 communications|¡|¡|¡|¡
185 |=CPAVL|Serial port settings|¡|¡|¡|¡
186 |=CPAVL|Ethernet port settings|¡|¡|¡|¡
187 |=PRUN|Octal bit transmission|¡|¡|¡|¡
188 |=ASCI|hexadecimal to ASCII|¡|¡|¡|¡
189 |=HEX|ASCII to hexadecimal|¡|¡|¡|¡
190 |=CCD|check code|¡|¡|¡|¡
191 |=PID|PID control loop|¡|¡|¡|¡
192
193 = **Floating Point** =
194
195 (% class="table-bordered" %)
196 |=**Instruction**|=**Description**|=(((
197 **LX3V**
198
199 **(1S)**
200 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
201 |=DECMP|Binary floating point data compare|-|¡|¡|¡
202 |=DEZCP|Binary floating point zone compare|-|¡|¡|¡
203 |=DEBCD|Binary to BCD floating point data conversion|-|¡|¡|¡
204 |=DEBIN|BCD to Binary floating point data conversion|-|¡|¡|¡
205 |=DEADD|Binary floating point addition|-|¡|¡|¡
206 |=DESUB|Binary floating point subtraction|-|¡|¡|¡
207 |=DEMUL|Binary floating point multiplication|-|¡|¡|¡
208 |=DEDIV|Binary floating point division|-|¡|¡|¡
209 |=DESQR|Binary floating point square root|-|¡|¡|¡
210 |=INT|16-bit binary floating point to integer|-|¡|¡|¡
211 |=DSIN|Sin operation|-|¡|¡|¡
212 |=DCOS|Cosine operation|-|¡|¡|¡
213 |=DTAN|Tangent operation|-|¡|¡|¡
214 |=DASIN|Calculate radian value, according to the corresponding value of SIN|-|-|¡|¡
215 |=DSINH|Binary floating point operation of Hyperbolic Sine function SINH|-|-|¡|¡
216 |=DACOS|Calculate radian value, according to the corresponding value of COS|-|-|¡|¡
217 |=DCOSH|Binary floating point operation of Hyperbolic Cosine function COSH|-|-|¡|¡
218 |=DATAN|Calculate radian value, according to the corresponding value of TAN|-|-|¡|¡
219 |=DTANH|Binary floating point operation of Hyperbolic Tangent function TANH|-|-|¡|¡
220 |=DEXP|Perform exponent operation of binary floating-point number to base e (2.71828)|-|-|¡|¡
221 |=DLOG10|Perform common logarithm operation of binary floating-point number to base 10|-|-|¡|¡
222 |=DLOGE|Perform natural logarithm operation of binary floating-point number to base e (2.71828)|-|-|¡|¡
223
224 = **Positioning** =
225
226 (% class="table-bordered" %)
227 |=**Instruction**|=**Description**|=(((
228 **LX3V**
229
230 **(1S)**
231 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
232 |=DABS|Absolute current value read|¡|¡|¡|¡
233 |=ZRN|Setting of zero return speed|¡|¡|¡|¡
234 |=PLSV|Variable speed pulse output|¡|¡|¡|¡
235 |=DRVI|Relative position control|¡|¡|¡|¡
236 |=DRVA|Absolute position control|¡|¡|¡|¡
237
238 **4.14 Real Time Clock Control**
239
240 (% class="table-bordered" %)
241 |=**Instruction**|=**Description**|=(((
242 **LX3V**
243
244 **(1S)**
245 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
246 |=TCMP|time compare|¡|¡|¡|¡
247 |=TZCP|time zone compare|¡|¡|¡|¡
248 |=TADD|time addition|¡|¡|¡|¡
249 |=TSUB|time subtraction|¡|¡|¡|¡
250 |=TRD|read RTC data|¡|¡|¡|¡
251 |=TWR|set RTC data|¡|¡|¡|¡
252 |=HOUR|16-bit chronograph|¡|¡|¡|¡
253
254 = **Handy Instructions** =
255
256 (% class="table-bordered" %)
257 |=**Instruction**|=**Description**|=(((
258 **LX3V(1S)**
259 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
260 |=IST|initial state|¡|¡|¡|¡
261 |=SER|Search |-|¡|¡|¡
262 |=ABSD|Absolute drum|¡|¡|¡|¡
263 |=INCD|Incremental drum|¡|¡|¡|¡
264 |=TTMR|Teaching timer|-|¡|¡|¡
265 |=STMR|Special timer - definable|-|¡|¡|¡
266 |=ALT|Alternate state|¡|¡|¡|¡
267 |=RAMP|Ramp - variable value|¡|¡|¡|¡
268 |=ROTC|Rotary table control|-|¡|¡|¡
269 |=SORT|Sort data|-|¡|¡|¡
270
271 = **Circular interpolation** =
272
273 (% class="table-bordered" %)
274 |=**Instruction**|=**Decryption**|=**LX3V**|=**LX3VP**|=**LX3VE**|=**LX3VM**
275 |=G90G01|Absolute position line interpolation|-|-|-|¡
276 |=G91G01|Relative position line interpolation|-|-|-|¡
277 |=G90G02|Absolute position of the clockwise circular interpolation|-|-|-|¡
278 |=G91G02|Relative position clockwise circular interpolation|-|-|-|¡
279 |=G90G03|Absolute position anticlockwise circular interpolation|-|-|-|¡
280 |=G91G03|Relative position anticlockwise circular interpolation|-|-|-|¡
281
282 = **Inline Comparisons** =
283
284 (% class="table-bordered" %)
285 |=(% style="width: 107px;" %)**Instruction**|=(% style="width: 345px;" %)**Description**|=(((
286 **LX3V**
287
288 **(1S)**
289 )))|=**LX3V (2N)**|=**LX3VP**|=**LX3VE**
290 |=(% style="width: 107px;" %)LD=|(% style="width:345px" %)Comparison of 16-bit data (==)|¡|¡|¡|¡
291 |=(% style="width: 107px;" %)LD>|(% style="width:345px" %)Comparison of 16-bit data (>|¡|¡|¡|¡
292 |=(% style="width: 107px;" %)LD<|(% style="width:345px" %)Comparison of 16-bit data (<|¡|¡|¡|¡
293 |=(% style="width: 107px;" %)LD<>|(% style="width:345px" %)Comparison of 16-bit data (<>|¡|¡|¡|¡
294 |=(% style="width: 107px;" %)LD<=|(% style="width:345px" %)Comparison of 16-bit data (<=)|¡|¡|¡|¡
295 |=(% style="width: 107px;" %)LD>=|(% style="width:345px" %)Comparison of 16-bit data (>=)|¡|¡|¡|¡
296 |=(% style="width: 107px;" %)AND=|(% style="width:345px" %)Comparison of 16-bit data (==)|¡|¡|¡|¡
297 |=(% style="width: 107px;" %)AND>|(% style="width:345px" %)Comparison of 16-bit data (>|¡|¡|¡|¡
298 |=(% style="width: 107px;" %)AND<|(% style="width:345px" %)Comparison of 16-bit data (<|¡|¡|¡|¡
299 |=(% style="width: 107px;" %)AND<>|(% style="width:345px" %)Comparison of 16-bit data (<>|¡|¡|¡|¡
300 |=(% style="width: 107px;" %)AND<=|(% style="width:345px" %)Comparison of 16-bit data (<=)|¡|¡|¡|¡
301 |=(% style="width: 107px;" %)AND>=|(% style="width:345px" %)Comparison of 16-bit data (>=)|¡|¡|¡|¡
302 |=(% style="width: 107px;" %)OR=|(% style="width:345px" %)Comparison of 16-bit data (==)|¡|¡|¡|¡
303 |=(% style="width: 107px;" %)ORD=|(% style="width:345px" %)Comparison of 32-bit data (==)|¡|¡|¡|¡
304 |=(% style="width: 107px;" %)OR>|(% style="width:345px" %)Comparison of 16-bit data (>|¡|¡|¡|¡
305 |=(% style="width: 107px;" %)OR<|(% style="width:345px" %)Comparison of 16-bit data (<|¡|¡|¡|¡
306 |=(% style="width: 107px;" %)OR<>|(% style="width:345px" %)Comparison of 16-bit data (<>|¡|¡|¡|¡
307 |=(% style="width: 107px;" %)OR<=|(% style="width:345px" %)Comparison of 16-bit data (<=)|¡|¡|¡|¡
308 |=(% style="width: 107px;" %)OR>=|(% style="width:345px" %)Comparison of 16-bit data (>=)|¡|¡|¡|¡