Changes for page 06 Basic instructions
Last modified by Iris on 2025/10/20 11:22
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 9 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4086,10 +4086,6 @@ 4086 4086 4087 4087 4088 4088 4089 - 4090 - 4091 - 4092 - 4093 4093 **Error code** 4094 4094 4095 4095 |=**Error code**|=**Content** ... ... @@ -6104,9 +6104,9 @@ 6104 6104 6105 6105 Example 1 6106 6106 6107 -= **External IO instructions** = 6103 +== **External IO instructions** == 6108 6108 6109 -== **ARWS/Arrow Switch** == 6105 +=== [[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps2.png]]**ARWS/Arrow Switch** === 6110 6110 6111 6111 **ARWS** 6112 6112 ... ... @@ -6143,31 +6143,29 @@ 6143 6143 6144 6144 16-bit operation (ARWS). The 16-bit BIN value from 0 to 9999 is stored in D+1. For the sake of convenience, the following description is displayed in BCD conversion. 6145 6145 6146 -When the instruction input is ON, the ARWS instruction will operate as shown below [[image:1758526599000-920.png]]6142 +When the instruction input is ON, the ARWS instruction will operate as shown below 6147 6147 6144 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps3.png]][[image:1758526599000-920.png]] 6145 + 6148 6148 Display and operation part of the content 6149 6149 6150 -[[image:17585 52469974-996.png]]6148 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps4.png]][[image:1758526656501-227.png]] 6151 6151 6150 +1. The digit specification of n displayed by the 7-segment digital tube with BCD code 6152 6152 6153 -(1) The digit specification of n displayed by the 7-segment digital tube with BCD code 6154 - 6155 6155 A 4-digit (10^^3^^ digit) is used as an example in the following operation description, . 6156 6156 6157 - (2)The action of the digit selection switch (S+2, S+3)6154 +The action of the digit selection switch (S+2, S+3) 6158 6158 6159 - 1)The action when input S+2 with reduced digits is ON.Each time the switch is pressed, the number of digits specification is changed according to 10^^3^^ →10^^2^^ →10^^1^^ →10^^0^^ →10^^3.^^ 6156 +1. The action when input S+2 with reduced digits is ON.Each time the switch is pressed, the number of digits specification is changed according to 10^^3^^ →10^^2^^ →10^^1^^ →10^^0^^ →10^^3.^^ 6157 +1. The action when the input S+3 with increased digits is ON. Each time the switch is pressed, the number of digits specification is changed according to 10^^3 ^^→ 10^^0 ^^→ 10^^1 ^^→ 10^^2 ^^→ 10^^3^^. 6160 6160 6161 - 2)The action when the input S+3 with increased digits is ON. Each time the switch is pressed, the number of digits specification is changed according to 10^^3 ^^→ 10^^0 ^^→ 10^^1 ^^→ 10^^2 ^^→ 10^^3^^. 6159 +1. The action of the LED for displaying the selected digits (D2+4 to D2+7). The specified number of digits can be displayed by LED by strobe signal D2+4 to D2+7. 6160 +1. The operation of the data change switch in units of digits (S, S+1). The data is changed for the number of digits specified by the "digit selection switch" above. 6162 6162 6163 -(3) The action of the LED for displaying the selected digits (D2+4 to D2+7). The specified number of digits can be displayed by LED by strobe signal D2+4 to D2+7. 6162 +1. Increase the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→1→2→...→8→9→0→1. 6163 +1. Reduce the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→9→8→7...1→0→9. 6164 6164 6165 -(4) The operation of the data change switch in units of digits (S, S+1). The data is changed for the number of digits specified by the "digit selection switch" above. 6166 - 6167 - 1) Increase the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→1→2→...→8→9→0→1. 6168 - 6169 - 2) Reduce the action when the input is ON. Each time the switch is pressed, the content of D1 changes according to 0→9→8→7...1→0→9. 6170 - 6171 6171 These contents can be displayed in the 7-segment digital tube display. 6172 6172 6173 6173 As shown above, through a series of operations, you can write the target value into D1 while viewing the 7-segment display. ... ... @@ -6176,7 +6176,7 @@ 6176 6176 6177 6177 * The setting of parameter n 6178 6178 6179 -Please refer to the parameter setting of SEGL (FNC 74) instruction. The setting range is 0 to 3. 6173 +Please refer to the parameter setting of SEGL (FNC 74) instruction. The setting range is 0 to 3. 6180 6180 6181 6181 * The output format of the programmable controller, please use a transistor output type programmable controller. 6182 6182 * About scan time (operation cycle) and display timing ... ... @@ -6201,904 +6201,14 @@ 6201 6201 6202 6202 **Example** 6203 6203 6204 -[[image: 1758552725118-406.png]]6198 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps5.jpg]] 6205 6205 6206 - 6207 6207 The corresponding hardware wiring is shown in the figure below, and the PLC should be transistor output type: 6208 6208 6209 -[[image: 1758552774857-894.png]]6202 +[[image:file:///C:\Users\Administrator\AppData\Local\Temp\ksohtml3320\wps6.jpg]] 6210 6210 6211 - 6212 6212 (1) The digital tube in the figure shows the value of D0. Press X10 to X13 to modify the value. The value of D0 can only be between 0 and 9999. 6213 6213 6214 6214 (2) When X20 is ON, the cursor position is thousands. Each time the back key (X12) is pressed, the specified position is switched in the order of "thousands → hundred → ten → pieces → thousand"; if the forward key (X13) is pressed, the switching sequence is reversed; the cursor position is determined by the strobe pulse signal (YO04 to YOO7) LED indication of connection. 6215 6215 6216 6216 (3) For the cursor position, each time you press the increment key (X11), the content of the position changes by 0 → 1→ 2→……8→9→0→1, and when you press the decrement key (X10), press 0 →9→8→7→…… 1→0→9 changes, the modified value takes effect immediately. 6217 - 6218 -= [[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps1.png]]**DSW/Numeric key input** = 6219 - 6220 -**DSW** 6221 - 6222 -This instruction is to read the state of the matrix type setting switch, with 4 BCD setting switches as a group, and store the setting value in the specified unit after reading it. Up to 2 groups of setting switches can be read. 6223 - 6224 --[DSW (s) (d1) (d2) (n)] 6225 - 6226 -**Content, range and data type** 6227 - 6228 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6229 -|(s)|The start device (X) number connected to the digital switch (occupies 4 points)|-|Bit|ANY_BOOL 6230 -|(d1)|((( 6231 -The start device (Y) number that strobe signal outputed 6232 - 6233 -(occupies 4 points) 6234 -)))|-|Bit|ANY_BOOL 6235 -|(d2)|The device number that stores the value of the digital switch (occupies n points)|0 to 9999|Signed BIN16|ANY16_S 6236 -|(n)|Number of groups of digital switches (4 digits a group) (n=1 or 2)|1 to 2|Signed BIN16|ANY16_S 6237 - 6238 -**Device used** 6239 - 6240 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6241 -**Index** 6242 - 6243 -**modification** 6244 -)))|((( 6245 -**Pulse** 6246 - 6247 -**extension** 6248 -))) 6249 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6250 -|(% rowspan="4" %)DSW|Parameter 1|●| | | | | | | | | | | | | | | | | | | | | | | |●| 6251 -|Parameter 2| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6252 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●| 6253 -|Parameter 4| | | | | | | | | | | | | | | | | | | | | |●|●| | | 6254 - 6255 -**Features** 6256 - 6257 -This instruction is to read the state of the matrix type setting switch, with 4 BCD setting switches as a group, and store the setting value in the specified unit after reading it. Up to 2 groups of setting switches can be read. 6258 - 6259 -(1) About the input value (d1) 6260 - 6261 -4 digits from 0 to 9,999 could be read. 6262 - 6263 -Data is saved in BIN (binary number) value. 6264 - 6265 -The first group is saved in (d2), and the second group is saved in (d2)+1. 6266 - 6267 -(2) Specification of the number of groups n 6268 - 6269 -* When using 4 digits/1 group×1 [n=K1] pass the strobe signal 6270 - 6271 -From (s) to [(s)+3], sequentially read the BCD 4-digit digital switches connected in (d1) to [(d1)+3], and save the value as BIN value in (d2). 6272 - 6273 -* When using 4 digits/1 group×2 [n=K2] pass the strobe signal 6274 - 6275 -From (s) to [(s)+3], sequentially read the BCD 4-digit digital switches connected in (d1) to [(d1)+3], and save the value as BIN value in (d2). 6276 - 6277 -Through the strobe signal (d1) to [(d1)+3], read the BCD 4-digit digital switch connected in (s)+4 to [(s)+7] in turn, and save its value as a BIN value To (d2)+1. 6278 - 6279 -**✎Note: ** 6280 - 6281 -(1) When the instruction contact is OFF 6282 - 6283 -Even if it is OFF, the content of (d2) does not change, but from (d1) to [(d1)+3] all become OFF. 6284 - 6285 -(2) Occupied points of the device 6286 - 6287 - 1) When using 4 digits 2 groups (n=K2), 2 points starting from (d2) are occupied. 6288 - 6289 - 2) When it is 4 digits and 1 group (s), 4 points are occupied, and when it is 4 digits and 2 groups, 8 points are occupied. 6290 - 6291 -(3) When connecting a digital switch with less than 4 digits 6292 - 6293 - For unused digits, the strobe signal <output for specified digits> (d1) does not need to be wired, but even if there are unused digits, its output is already occupied by this instruction, so it cannot be used for other purposes. Be sure to leave unused output empty. 6294 - 6295 -(4) It is recommended to use transistor output type 6296 - 6297 - In order to read the value of the digital switch continuously, be sure to use a transistor output type programmable controller. 6298 - 6299 -(5) About digital switches 6300 - 6301 - Please use a digital switch of BCD output type. 6302 - 6303 -(6) About the read timing of keyboard input 6304 - 6305 - In order to prevent reading omissions caused by the filter delay of keyboard input, please use the “Constant Scan Mode” and “Timer Interrupt” functions flexibly. 6306 - 6307 -(7) The limit number of instructions 6308 - 6309 -A maximum of two can be used at the same time 6310 - 6311 -**Related device** 6312 - 6313 -|**Devices**|**Name**|**Content** 6314 -|SM229|End of instruction execution|After a reading cycle is over, SM229 will be set for a scan cycle 6315 - 6316 -**Error code** 6317 - 6318 -|**Error code**|**Content** 6319 -|4084H|The data input in the application instruction (n) and (d2) exceeds the specified range 6320 -|4085H|The output result of the read application instruction (s) and (d2) exceeds the device range 6321 -|4086H|The output result of the write application instruction (d1) and (d2) exceeds the device range 6322 -|4089H|The number of application instructions exceeds the limit 6323 - 6324 -**Example** 6325 - 6326 -Program 6327 - 6328 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps2.jpg]][[image:1758553361414-300.png]] 6329 - 6330 -Wiring diagram 6331 - 6332 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps3.jpg]][[image:1758553386520-904.png]] 6333 - 6334 -* DSW operates while M1 (digital switch read input) is ON. 6335 - 6336 - DSW will operate until the end of one cycle of operation and the instruction execution end flag (SM229) turns ON. 6337 - 6338 -= **HKY/Hexadecimal Numeric Key Input** = 6339 - 6340 -**HKY** 6341 - 6342 -Use the keyboard (16 keys) of 0 to F to input, set the numerical value (0 to 9) and operating conditions (A to F function keys) and other instructions for data input. 6343 - 6344 -When the extended function is ON, the hexadecimal number of the 0 to F keys could be used for keyboard input. 6345 - 6346 --[HKY (s) (d1) (d2) (d3)] 6347 - 6348 -**Content, range and data type** 6349 - 6350 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6351 -|(s)|The start bit device (X) number that input 16-key (occupies 4 points)|-|Bit|ANY_BOOL 6352 -|(d1)|The start device (Y) number that outputs (occupies 4 points)|-|Bit|ANY_BOOL 6353 -|(d2)|The device number that stores the value input from the 16 keys|0 to 9999|BIN16 bit|ANY16_S 6354 -|(d3)|The start bit device number whose key is ON (occupies 8 points)|-|BIN16 bit|ANY16_S 6355 - 6356 -**Device used** 6357 - 6358 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6359 -**Index** 6360 - 6361 -**modification** 6362 -)))|((( 6363 -**Pulse** 6364 - 6365 -**extension** 6366 -))) 6367 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6368 -|(% rowspan="4" %)HKY|Parameter 1|●| | | | | | | | | | | | | | | | | | | | | | | |●| 6369 -|Parameter 2| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6370 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●| 6371 -|Parameter 4| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 6372 - 6373 -**Features** 6374 - 6375 -16-bit operation (HKY) 6376 - 6377 -Scan the input [S to S+3] and column output [D1 to D1+3] signals connected with 16 keys (0 to F), press the 0 to 9 keys, the value will be saved in D2, and the keyboard detection will be output to D3 +7 in. 6378 - 6379 -In addition, after pressing the A to F keys, the key information corresponding to the keyboard [D3 to D3+5] is ON, and the keyboard detection is output to D3+6. 6380 - 6381 -1. About using the keys 0 to 9 to input the values D3, D3+7 6382 - 6383 -If it is more than 9,999, overflow from the high digit. The entered value is stored in D2 as BIN (binary number). 6384 - 6385 -When any key from 0 to 9 is pressed, the keyboard detection output D3+7 is ON. 6386 - 6387 -1. Information about A to F keys D3 to D3+6 6388 - 6389 -Corresponding to the A to F keys, the first 6 o'clock of D3 is ON. When any key from A to F is pressed, the keyboard detection output D3+6 is ON. 6390 - 6391 -|**Keyboard**|**Key information** 6392 -|A|D3 6393 -|B|D3+1 6394 -|C|D3+2 6395 -|D|D3+3 6396 -|E|D3+4 6397 -|F|D3+5 6398 - 6399 -**Extensions** 6400 - 6401 -After SM167 is ON and the extended function becomes valid, the data of the hexadecimal keys from 0 to F is saved in BIN mode. 6402 - 6403 -Except for the following, it is the same as the above-mentioned [Function and Operation Description]. 6404 - 6405 -The hexadecimal data input using the 0 to F keys is written into D2 as it is. 6406 - 6407 -1. Regarding the numerical input using the 0 to F keys D2 6408 - 6409 -When it is FFFF or more, overflow from the upper digits. 6410 - 6411 -For example, when inputting 1→2→3→B→F, “23BF" is saved in D2 in BIN mode. When F is input, 1 overflows. 6412 - 6413 -[[image:1758596503399-441.png]] 6414 - 6415 -**✎Note** 6416 - 6417 -* Restrictions on the number of uses of instructions 6418 - 6419 -HKY instructions, only one of them can be used in the program. 6420 - 6421 -* When the keyboard is pressed simultaneously 6422 - 6423 -When multiple keys are pressed at the same time, the key pressed first is effective. 6424 - 6425 -* When the instruction contact is OFF 6426 - 6427 -Even if it is OFF, the content of D2 does not change, but D3 to D3 +7 all become OFF. 6428 - 6429 -* Number of occupied points of the device 6430 - 6431 -When 16 keys are connected, 4 points from the start device S of input (X) are occupied. 6432 - 6433 -When 16 keys are connected, 4 points from the start device D1 of output (Y) are occupied. 6434 - 6435 -It occupies 8 points from the start device D3 for key information output. 6436 - 6437 -Please do not to overlap with the devices used in other controls of the machine. 6438 - 6439 -D3 to D3+5: A to F key key information 6440 - 6441 -D3+6: Keyboard detection output of A to F keys 6442 - 6443 -D3+7: 0-9 key keyboard detection output 6444 - 6445 -* About the read timing of keyboard input 6446 - 6447 -HKY instruction is executed synchronously with the operation cycle of the programmable controller. 6448 - 6449 -It takes 8 operation cycles to complete a series of keyboard scans. 6450 - 6451 -In order to prevent reading omissions caused by the filter delay of keyboard input, please use the [Constant Scan Mode] and [Timer Interrupt] functions flexibly. 6452 - 6453 -* 6. Output form 6454 - 6455 -Please use a transistor output type programmable controller. 6456 - 6457 -**Related device** 6458 - 6459 -|**Devices**|**Name**|**Content** 6460 -|SM229|End of instruction execution|((( 6461 -OFF: (d1) to (d1)+3 is being scanned, or the instruction is not executed 6462 - 6463 -ON: (d1) to (d1)+3 cyclic output operation (1 to 4 digit scan) and then turn ON 6464 -))) 6465 - 6466 -**Error code** 6467 - 6468 -|**Error code**|**Content** 6469 -|4085H|The output result of the read application instruction (s) and (d2) exceeds the device range 6470 -|4086H|The output result of the write application instruction (d1), (d2) and (d3) exceeds the device range 6471 - 6472 -**Example** 6473 - 6474 -Program 6475 - 6476 - 6477 -[[image:1758596600319-502.png]] 6478 - 6479 -Wiring diagram 6480 - 6481 -[[image:1758596665356-785.png]] 6482 - 6483 - 6484 -When inputting [1]→[2]→[3]→[B]→[F], save "23BF" in D0 in BIN mode. 6485 - 6486 -When [F] is input, [1] overflows. 6487 - 6488 -= **DHKY/32 System Numeric Key Input** = 6489 - 6490 -**DHKY** 6491 - 6492 -Use the keyboard (16 keys) of 0 to F to input, set numerical value (0 to 9) and operating conditions (A to F function keys) and other instructions for data input. 6493 - 6494 -When the extended function is ON, the hexadecimal number of 0 to F key can be used for keyboard input. 6495 - 6496 --[DHKY (s) (d1) (d2) (d3)] 6497 - 6498 -**Content, range and data type** 6499 - 6500 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6501 -|(s)|The start bit device (X) number that input 16-key (occupies 4 points)|-|Bit|ANY_BOOL 6502 -|(d1)|The start device (Y) number that outputs (occupies 4 points)|-|Bit|ANY_BOOL 6503 -|(d2)|The device number that stores the value input from the 16 keys|0 to 99999999|BIN32 bit|ANY32_S 6504 -|(d3)|The start bit device number whose key is ON (occupies 8 points)|-|BIN16 bit|ANY16_S 6505 - 6506 -**Device used** 6507 - 6508 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6509 -**Index** 6510 - 6511 -**modification** 6512 -)))|((( 6513 -**Pulse** 6514 - 6515 -**extension** 6516 -))) 6517 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6518 -|(% rowspan="4" %)DHKY|Parameter 1|●| | | | | | | | | | | | | | | | | | | | | | | |●| 6519 -|Parameter 2| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6520 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●|●|●| | | |●| 6521 -|Parameter 4| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 6522 - 6523 -**Features** 6524 - 6525 -32-bit operation (DHKY) 6526 - 6527 -Scan the input [S to S+3] and column output [D1 to D1+3] signals connected with 16 keys (0 to F), press the 0 to 9 keys, and the value will be saved in [D2+1, D2] , The keyboard detection is output to D3+7. 6528 - 6529 -In addition, after pressing the A to F keys, the key information corresponding to the keyboard [D3 to D3+5] is ON, and the keyboard detection is output to D3+6. 6530 - 6531 -1. Regarding the use of keys from 0 to 9 to input values [D2+1, D2], D3+7 6532 - 6533 -If it is 99,999,999 or more, overflow from the high digit. 6534 - 6535 -The entered value is stored in [D2+1, D2] as BIN (binary number). 6536 - 6537 -When any key from 0 to 9 is pressed, the keyboard detection output D3+7 is ON. 6538 - 6539 -1. Button information about A to F keys D3 to D3+6 6540 - 6541 -For keyboard press information, please refer to 16-bit operation (HKY) on the previous page 6542 - 6543 -**extensions** 6544 - 6545 -After SM167 is ON and the extended function becomes valid, the data of the hexadecimal keys from 0 to F is saved in BIN mode. 6546 - 6547 -Except for the following, it is the same as the above-mentioned “Function and Operation Description”. 6548 - 6549 -The hexadecimal data input using the 0 to F keys are written in [D2+1, D2] as they are. 6550 - 6551 -1. Regarding the numerical input using 0 to F keys [D2+1, D2] 6552 - 6553 --When it is FFFFFFFF or more, overflow from the upper digits. 6554 - 6555 -For example, when inputting [9]→[2]→[3]→[B]→[F]→[A]→[F], save "923BFAF" in [D2+1, D2] in BIN mode. 6556 - 6557 -**✎Note** 6558 - 6559 -* Restrictions on the number of uses of instructions 6560 - 6561 -Only one of the DHKY instructions can be used in the program. 6562 - 6563 -* When the keyboard is pressed simultaneously 6564 - 6565 -When multiple keys are pressed at the same time, the key pressed first is effective. 6566 - 6567 -* When the instruction contact is OFF 6568 - 6569 -Even if it is OFF, the content of D2 does not change, but D3 to D3 +7 all become OFF. 6570 - 6571 -* Number of occupied points of the device 6572 - 6573 -When 16 keys are connected, 4 points from the start device S of input (X) are occupied. 6574 - 6575 -When 16 keys are connected, 4 points from the start device D1 of output (Y) are occupied. 6576 - 6577 -It occupies 8 points from the start device D3 for key information output. 6578 - 6579 -Please be careful not to overlap with the devices used in other controls of the machine. 6580 - 6581 -D3 to D3+5: A to F key key information 6582 - 6583 -D3+6: Keyboard detection output of A to F keys 6584 - 6585 -D3+7: 0-9 key keyboard detection output 6586 - 6587 -* About the read timing of keyboard input 6588 - 6589 -The DHKY instruction is executed synchronously with the operation cycle of the programmable controller. 6590 - 6591 -It takes 8 operation cycles to complete a series of keyboard scans. 6592 - 6593 -In order to prevent reading omissions caused by the filter delay of keyboard input, please use the “Constant Scan Mode” and “Timer Interrupt” functions flexibly. 6594 - 6595 -* Output form 6596 - 6597 -Please use a transistor output type programmable controller. 6598 - 6599 -**Related device** 6600 - 6601 -|**Devices**|**Name**|**Content** 6602 -|SM229|End of instruction execution|((( 6603 -OFF: (d1) to (d1)+3 is being scanned, or the instruction is not executed 6604 - 6605 -ON: (d1) to (d1)+3 cyclic output operation (1 to 4 digit scan) and then turn ON 6606 -))) 6607 - 6608 -**Error code** 6609 - 6610 -|**Error code**|**Content** 6611 -|4085H|The output result of the read application instruction (s) and (d2) exceeds the device range 6612 -|4086H|The output result of the write application instruction (d1), (d2) and (d3) exceeds the device range 6613 - 6614 -**Example** 6615 - 6616 -Program 6617 - 6618 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps9.jpg]] 6619 - 6620 -.Wiring diagram 6621 - 6622 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps10.jpg]] 6623 - 6624 -When inputting 1→2→3→B→F→5→7→6, save "123BF576" in BIN to [D1,D0]. 6625 - 6626 - 6627 -=== [[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps11.png]]**6.7.5 PR/ASCII Code Printing** === 6628 - 6629 -**PR** 6630 - 6631 -This instruction is to output ASCII data in parallel to the output (Y). 6632 - 6633 --[PR (s) (d)] 6634 - 6635 -**Content, range and data type** 6636 - 6637 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6638 -|(s)|Start number of the device storing ASCII code data| |String (ASCII code only)|ANY_ASC 6639 -|(d)|The start number Y of output ASCII code data|-|Bit|ANY_BOOL 6640 - 6641 -**Device used** 6642 - 6643 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6644 -**Index** 6645 - 6646 -**modification** 6647 -)))|((( 6648 -**Pulse** 6649 - 6650 -**extension** 6651 -))) 6652 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6653 -|(% rowspan="2" %)PR|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●| 6654 -|Parameter 2| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6655 - 6656 -**Features** 6657 - 6658 -The ASCII code stored in the lower 8 bits (1 byte) of (S) to (S)+7 is output to (D) to (D)+7 character by character in a time division manner. 6659 - 6660 -The ASCII code saved in is shown below, and the following timing diagram is based on this example. 6661 - 6662 -The sequence of sending starts from (S) = "A", and ends with (S) + 7 = "H" for this purpose, sending eight bytes. 6663 - 6664 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps12.jpg]] 6665 - 6666 -Timing diagram 6667 - 6668 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps13.png]] 6669 - 6670 -**Related device** 6671 - 6672 -|**Devices**|**Name**|**Content** 6673 -|SM227|PR mode|((( 6674 -OFF: 8 bytes serial output (fixed to 8 characters) 6675 - 6676 -ON: 16 bytes serial output (1 to 16 characters) 6677 -))) 6678 - 6679 -**✎Note** 6680 - 6681 -* instruction input and instruction action 6682 - 6683 -instruction input=ON: Even if the instruction is continuously ON or the pulse instruction is executed, as long as the output of one cycle ends, the execution ends. 6684 - 6685 -SM229 only works when SM227=ON. 6686 - 6687 -instruction input=OFF: all outputs are OFF. 6688 - 6689 -* Relationship with scan time (operation time) 6690 - 6691 -The instruction is executed synchronously with the scan time. 6692 - 6693 -When the scan time is short, you can use the constant scan mode to drive; when the scan time is longer, you can use the timer interrupt drive. 6694 - 6695 -* About the output of the programmable controller 6696 - 6697 -Please use a transistor output type programmable controller. 6698 - 6699 -* When 00H (NUL) exists in the data (when SM227=ON) 6700 - 6701 -After the instruction is executed, the remaining data is not output. 6702 - 6703 -In addition, SM229 maintains an operation cycle ON. 6704 - 6705 -* Restrictions on the number of uses of instructions 6706 - 6707 -Only one PR instruction can be used in the program. 6708 - 6709 -**Error code** 6710 - 6711 -|**Error code**|**Content** 6712 -|4085H|The output result of the read application instruction (s) exceeds the device range 6713 -|4086H|The output result of the write application instruction (d) exceeds the device range 6714 - 6715 -**Example** 6716 - 6717 -Program 6718 - 6719 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps14.jpg]] 6720 - 6721 -If the ASCII code in D200 to D203 is "Stopped", the corresponding output port signal and its timing are as follows: 6722 - 6723 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps15.png]] 6724 - 6725 - 6726 - 6727 -=== [[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps16.png]]**6.7.6 SEGD/Numeric Key Input** === 6728 - 6729 -**SEGD(P)** 6730 - 6731 -instruction to light up the 7-segment digital tube (1 digit). 6732 - 6733 --[SEGD (s) (d)] 6734 - 6735 -**Content, range and data type** 6736 - 6737 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6738 -|(s)|Decoded start word device|-32767 to 32767|Bit|ANY_BOOL 6739 -|(d)|Word device number for storing 7-segment display data|-32767 to 32767|Bit|ANY_BOOL 6740 - 6741 -**Device used** 6742 - 6743 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6744 -**Index** 6745 - 6746 -**modification** 6747 -)))|((( 6748 -**Pulse** 6749 - 6750 -**extension** 6751 -))) 6752 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6753 -|(% rowspan="2" %)SEGD|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●|● 6754 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●|● 6755 - 6756 -**Features** 6757 - 6758 -Decode the low 4-digit (1 digit) of 0 to F (hexadecimal number) of (S) into 7-segment display data and save it in the low 8-digit of (d). 6759 - 6760 -1.7-segment code decode table 6761 - 6762 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps17.jpg]] 6763 - 6764 -**✎Note** 6765 - 6766 -Number of occupied points of the device: The low 8 bits of the output of the device (S) are occupied, and the high 8 bits do not change. 6767 - 6768 -**Error code** 6769 - 6770 -|**Error code**|**Content** 6771 -|4085H|The output result of the read application instruction (s) and (d) exceeds the device range 6772 -|4086H|The output result of the write application instruction (d) exceeds the device range 6773 - 6774 -**Example** 6775 - 6776 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps18.jpg]] 6777 - 6778 -When M0 is set, the lower 4 bits of the data in D0 are decoded and output to the Y10 to Y17 ports. The corresponding table for translation is shown in the above table (7-segment code decoding table). The table does not need to be prepared by the user, and the comparison table is already available in the PLC system. 6779 - 6780 - 6781 -=== [[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps19.png]]**6.7.7 SEGL/7SEG Vode Hour and Minute Display** === 6782 - 6783 -**SEGL** 6784 - 6785 -Control 1 or 2 groups of 4-digit 7-segment digital tube display instructions with latch. 6786 - 6787 --[SEGL (s) (d) (n)] 6788 - 6789 -**Content, range and data type** 6790 - 6791 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6792 -|(s)|Start word device for BCD conversion|0 to 9999|BIN16 bit|ANY16 6793 -|(d)|The starting Y number to be output|-|Bit|ANY_BOOL 6794 -|(n)|Parameter number [Setting range: K0(H0) to K7(H7)]|0 to 7|BIN16/32 bit|ANY16_U 6795 - 6796 -**Device used** 6797 - 6798 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6799 -**Index** 6800 - 6801 -**modification** 6802 -)))|((( 6803 -**Pulse** 6804 - 6805 -**extension** 6806 -))) 6807 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6808 -|(% rowspan="3" %)SEGL|Parameter 1| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | |●|●| |●| 6809 -|Parameter 2| |●| | | | | | | | | | | | | | | | | | | | | | |●| 6810 -|Parameter 3| | | | | | | | | | | | | | | | | | | | | |●|●| | | 6811 - 6812 -**Features** 6813 - 6814 -Convert the 4-bit value of (s) into BCD data, and use the time-division method to sequentially output each 1 digit to a 7-segment digital tube with BCD decoding. (s) is valid when BIN data in the range of 0 to 9999. 6815 - 6816 -The parameter (n) should be set as follows based on the positive and negative logic on the programmable controller side and the positive and negative logic on the 7-segment side. 6817 - 6818 -|(% rowspan="2" %)**Programmable controller output logic**|(% rowspan="2" %)**Data input**|(% rowspan="2" %)**Strobe signal**|(% colspan="2" %)**Parameter n** 6819 -|((( 6820 -**4 digits** 6821 - 6822 -**in 1 group** 6823 -)))|((( 6824 -**4 digits** 6825 - 6826 -**in 2 groups** 6827 -))) 6828 -|(% rowspan="4" %)Negative logic|(% rowspan="2" %)Negative logic (consistent)|Negative logic (consistent)|0|4 6829 -|Positive logic (inconsistent)|1|5 6830 -|(% rowspan="2" %)Positive logic (inconsistent)|Negative logic (consistent)|2|6 6831 -|Positive logic (inconsistent)|3|7 6832 -|(% rowspan="4" %)Positive logic|(% rowspan="2" %)Positive logic (consistent)|Negative logic (consistent)|0|4 6833 -|Positive logic (inconsistent)|1|5 6834 -|(% rowspan="2" %)Negative logic (inconsistent)|Negative logic (consistent)|2|6 6835 -|Positive logic (inconsistent)|3|7 6836 - 6837 -1. When using 4 digits in 1 group (n=K0 to 3) 6838 - 6839 -After converting the 4-digit value of (s) from BIN→BCD, use the time division method to output each digit in turn from (d) to (d)+3. In addition, the strobe signal output (d)+4 to (d)+7 is also output in a time-division manner, locked to the 7-terminal display of the first group of 4 digits 6840 - 6841 -1. When using 4 digits in 2 groups (n=K4 to 7) 6842 - 6843 -1. 4-digit group 1 6844 - 6845 -After converting the 4-digit value of (s) from BIN→BCD, use the time division method to output each digit in turn from (d) to (d)+3. The strobe signal output (d)+4 to (d)+7 is output in time-division manner in turn, locked to the 7-segment display of the first group of 4 digits. 6846 - 6847 -1. 4-digit group 2 6848 - 6849 -After converting the 4-digit value of (s)+1 from BIN+BCD, use the time division method to output each digit in turn from (d)+10 to (d)+13. The strobe signal output (d)+4 to (d)+7 is output in a time-division manner in turn, locked to the 7-segment display of the second group of digits. 6850 - 6851 -**✎Note** 6852 - 6853 -* About the time required to update the 7-segment 4-digit display 6854 - 6855 -The time required to update the 4-digit display (1 group or 2 groups) is 12 times the scan time (operation time). 6856 - 6857 -* Action when instruction input is OFF 6858 - 6859 -When the instruction input is ON, the action is repeated. However, if the instruction contact turns off during an action, the action will be interrupted. When it is ON again, it will start from the original action. 6860 - 6861 -* Occupied points of the device 6862 - 6863 -When using 4 digits in 1 group: 1 point from the start device specified in S is occupied. 6864 - 6865 -Occupy 8 points from the start device specified in D. Even when the number of bits is small, the occupied points cannot be used for other purposes. 6866 - 6867 -When using 4 digits 2 groups: 2 points from the start device specified in S are occupied. 6868 - 6869 -Occupy 12 points from the start device specified in D. Even when the number of bits is small, the occupied points cannot be used for other purposes. 6870 - 6871 -* About scan time (operation cycle) and display timing 6872 - 6873 -The SEGL instruction is executed synchronously with the scan time (operation cycle) of the programmable controller. 6874 - 6875 -In order to perform a series of displays, the scan time of the programmable controller needs to exceed 10ms. 6876 - 6877 -When it is less than 10ms, please use the constant scan mode and run with a scan time longer than 10ms. 6878 - 6879 -* Regarding the output format of the programmable controller 6880 - 6881 -Please use a transistor output type programmable controller. 6882 - 6883 -* Limit number of instructions 6884 - 6885 -At most 2 instructions can be used at the same time. 6886 - 6887 -Related device 6888 - 6889 -|**Devices**|**Name**|**Content** 6890 -|SM229|End of instruction execution|After the processing is completed, SM229 is ON for one scan cycle 6891 - 6892 -Error code 6893 - 6894 -|**Error code**|**Content** 6895 -|4084H|The data input in the application instruction (n) exceeds the specified range 6896 -|4085H|The output result of the read application instruction (s) exceeds the device range 6897 -|4086H|The output result of the write application instruction (d) exceeds the device range 6898 -|4089H|The number of application instructions exceeds the limit 6899 - 6900 -**Example** 6901 - 6902 -Program 6903 - 6904 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps20.jpg]] 6905 - 6906 -The corresponding hardware wiring is shown in the following figure. The content of D0 is displayed on the first group of digital tubes, and the content of D1 is displayed on the second group of digital tubes. If the reading of D0 or D1 exceeds 9999, the program will run into an error: 6907 - 6908 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps21.png]] 6909 - 6910 -The digital tube used in the wiring diagram has its own display data latch, 7-segment decoding and driving, and 7-segment digital of negative logic type (when the input port is low, it means that the input data is 1, or is strobed) Show tube. During display processing, PLC's Y4 to Y7 ports will scan automatically, and only one port is ON each time as a bit strobe signal. At this time, the data on Y0 to Y3 ports is the BCD code data sent to the corresponding bit. When the bit strobe signal turns from ON→OFF, it is latched into the latch in the digital tube. After internal decoding and driving, the digital tube displays the number. The PLC system cyclically processes Y4 to Y7 in turn, until all 4 bits are processed. In the same way, Y10 to Y13 are the data output ports of the second group of 4-digit digital tubes, which share the bit strobe lines of Y4 to Y7. The processing methods are the same, and the display processing of the two groups is performed at the same time. In the example, if D0=K2468 and D1=K9753, the first group will display 2 4 6 8 and the second group will display 9 7 5 3. 6911 - 6912 -It takes 12 scan cycles to complete a display refresh. After the processing is completed: According to the positive and negative logic of the programmable controller, the positive and negative logic of the seven-segment code, etc., select according to the following principles: 6913 - 6914 -For a group of 4 digits, n=0 to 3. When two groups of 4 digits, n= 4 to 7. 6915 - 6916 -|**Display group number**|(% colspan="4" %)**Group 1**|(% colspan="4" %)**Group 2** 6917 -|Y data output polarity|(% colspan="2" %)PNP|(% colspan="2" %)NPN|(% colspan="2" %)PNP|(% colspan="2" %)NPN 6918 -|Strobe and data polarity|Identical|Opposite|Identical|Opposite|Identical|Opposite|Identical|Opposite 6919 -|the value of n|0|1|2|3|4|5|6|7 6920 - 6921 -=== 6922 -**6.7.8 TKY/Numeric Key Input** === 6923 - 6924 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps22.png]]**TKY** 6925 - 6926 -Use the keyboard (number keys) of 0 to 9 to input instructions for setting data such as timers and counters. 6927 - 6928 --[TKY (s) (d1) (d2)] 6929 - 6930 -**Content, range and data type** 6931 - 6932 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 6933 -|(s)|The start bit device that input the numeric key (occupies 10 points)|-|Bit|ANY_BOOL 6934 -|(d1)|Word device number for storing data|0 to 9999|Signed BIN16|ANY16_S 6935 -|(d2)|The start bit device number whose key start bit device is ON (occupies 11 points)|-|Bit|ANY_BOOL 6936 - 6937 -**Device used** 6938 - 6939 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|((( 6940 -**Index** 6941 - 6942 -**modification** 6943 -)))|((( 6944 -**Pulse** 6945 - 6946 -**extension** 6947 -))) 6948 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 6949 -|(% rowspan="3" %)TKY|Parameter 1|●|●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 6950 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●| | | | | |●| 6951 -|Parameter 3| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 6952 - 6953 -**Features** 6954 - 6955 -Input [(s) to +9] to the connected number keys and press the keyboard, save the input value in (d1), and output in (d2) to +10 6956 - 6957 -Keyboard input information and detected keyboard output. 6958 - 6959 -1. About the input value (d1) 6960 - 6961 -If it is more than 9,999, overflow from the high digit. 6962 - 6963 -The entered value is saved in BIN (binary number). 6964 - 6965 -After pressing the number keys in the order of ①, ②, ③, ④, it is stored as 2130 in (d1). 6966 - 6967 -1. About (d2) to 10 of key information 6968 - 6969 -(d2) to 9 key information, according to the pressed key ON/OFF. 6970 - 6971 -When any key from 0 to 9 is pressed, the keyboard detection output of (d2) +10 is ON. 6972 - 6973 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps23.png]] 6974 - 6975 -**✎Note** 6976 - 6977 -* When the keyboard is pressed simultaneously 6978 - 6979 -When multiple keys are pressed at the same time, only the key pressed first is effective. 6980 - 6981 -* When the instruction contact is OFF 6982 - 6983 -Even if it is OFF, the content of (d2) will not change, but (d2) to (d2)+10 will be OFF. 6984 - 6985 -* Occupied points of the device 6986 - 6987 -**✎ **Connect the input of the number keys, occupying 10 points from (s). 6988 - 6989 -Even when the number key is not connected (not used), since (d2) is already occupied, it cannot be used for other purposes. 6990 - 6991 -**✎ **It occupies 11 points from the start device (d2) for key information output. 6992 - 6993 -Please be careful not to overlap with the devices used in other controls of the machine. 6994 - 6995 -(D2) to (d2)+9: Turn ON according to the input of number keys 0 to 9. 6996 - 6997 -(D2)+10: It is ON when any key between 0 to 9 is pressed. (Keyboard detection output) 6998 - 6999 -* Restrictions on the number of uses of instructions 7000 - 7001 -Only one of the TKY instruction or DTKY instruction can be used in the program. 7002 - 7003 -**Error code** 7004 - 7005 -|**Error code**|**Content** 7006 -|4085H|The output result of the read application instruction (s) exceeds the device range 7007 -|4086H|The output result of the write application instruction (d) exceeds the device range 7008 - 7009 -**Example** 7010 - 7011 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps24.jpg]] 7012 - 7013 -To input the number "2013", press the keys 2, 0, 1, 3 (X2, X0, X1, X3) in order. The operation of the PLC internal variables is shown in the figure below. 7014 - 7015 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps25.png]][[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps26.jpg]] 7016 - 7017 - 7018 - 7019 -=== **6.7.9 DTKY/Numeric Key Input** === 7020 - 7021 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps27.png]]**DTKY** 7022 - 7023 -Use the 4 points starting from the device specified in (d) to perform 4 types of timer output. 7024 - 7025 --[STMR (s1) (s2) (d)] 7026 - 7027 -**Content, range and data type** 7028 - 7029 -|**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)** 7030 -|(s)|The start bit device that input the numeric key (occupies 10 points)|-|Bit|ANY_BOOL 7031 -|(d1)|Word device number for storing data|0 to 99999999|Signed BIN32|ANY32_S 7032 -|(d2)|The start bit device number whose key start bit device is ON [occupies 11 points]|-|Bit|ANY_BOOL 7033 - 7034 -**Device used** 7035 - 7036 -|(% rowspan="2" %)**instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|**Index modification**|((( 7037 -**Pulse** 7038 - 7039 -**extension** 7040 -))) 7041 -|**X**|**Y**|**M**|**S**|**SM**|**T(bit)**|**C(bit)**|**LC(bit)**|**HSC(bit)**|**D.b**|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**LC**|**HSC**|**K**|**H**|**E**|**[D]**|**XXP** 7042 -|(% rowspan="3" %)DTKY|Parameter 1|●|●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 7043 -|Parameter 2| | | | | | | | | | | |●|●|●|●|●|●|●|●|●|●| | | |●| 7044 -|Parameter 3| |●|●|●|●| | | | |●| | | | | | | | | | | | | | |●| 7045 - 7046 -**Features** 7047 - 7048 -Input [(s) to +9] to the connected number keys and press the keyboard, save the input value in (d1), and output in (d2) to +10 7049 - 7050 -Keyboard input information and detected keyboard output. 7051 - 7052 -1. About the input value (d1) 7053 - 7054 -If it is more than 9,999, overflow from the high digit. 7055 - 7056 -The entered value is saved in BIN (binary number). 7057 - 7058 -1. (d2) to 10 of key information 7059 - 7060 -(d2) to +9 key information, according to the pressed key ON/OFF. 7061 - 7062 -When any key from 0 to 9 is pressed, the keyboard detection output of (d2) +10 is ON. 7063 - 7064 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps28.png]] 7065 - 7066 -**✎Note** 7067 - 7068 -* When the keyboard is pressed simultaneously 7069 -* When multiple keys are pressed at the same time, only the key pressed first is effective. 7070 -* When the instruction contact is OFF 7071 - 7072 -Even if it is OFF, the content of (d2) will not change, but (d2) to (d2)+10 will be OFF. 7073 - 7074 -* Occupied points of the device 7075 - 7076 -**✎** Connect the input of the number keys, occupying 10 points from (s). 7077 - 7078 -Even when the number key is not connected (not used), since (d2) is already occupied, it cannot be used for other purposes. 7079 - 7080 -**✎** It occupies 11 points from the start device (d2) for key information output. 7081 - 7082 -Please be careful not to overlap with the devices used in other controls of the machine. 7083 - 7084 -(D2) to (d2)+9: Turn ON according to the input of number keys 0 to 9. 7085 - 7086 -(D2)+10: It is ON when any key between 0 to 9 is pressed. (Keyboard detection output) 7087 - 7088 -* Restrictions on the number of uses of instructions 7089 - 7090 -Only one of the TKY instruction or DTKY instruction can be used in the program. 7091 - 7092 -**Error code** 7093 - 7094 -|**Error code**|**Content** 7095 -|4085H|The output result of the read application instruction (s) and (d1) exceeds the device range 7096 -|4086H|The output result of the write application instruction (d1) and (d2) exceeds the device range 7097 - 7098 -**Example** 7099 - 7100 -[[image:file:///C:\Users\z\AppData\Local\Temp\ksohtml6496\wps29.jpg]] 7101 - 7102 -When X20 is on, if you want to input the number "20205689", press 2, 0, 2, 0, 5, 6, 8, 9 (X2, X0, X2, X0, X5, X6, X10, X11) in sequence , Then (the value in (D1,D0) is 20205689) 7103 - 7104 -
- 1758552469974-996.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -141.8 KB - Content
- 1758552725118-406.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -10.6 KB - Content
- 1758552774857-894.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -61.4 KB - Content
- 1758553361414-300.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30.0 KB - Content
- 1758553386520-904.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -83.6 KB - Content
- 1758596503399-441.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -23.0 KB - Content
- 1758596600319-502.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -8.3 KB - Content
- 1758596629775-570.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -51.0 KB - Content
- 1758596665356-785.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Iris - Size
-
... ... @@ -1,1 +1,0 @@ 1 -51.0 KB - Content