Changes for page 12 Clock operation

Last modified by Mora Zhou on 2023/11/21 17:27

From version 1.3
edited by Joey
on 2022/06/09 15:27
Change comment: (Autosaved)
To version 1.5
edited by Joey
on 2022/06/09 15:37
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -307,21 +307,22 @@
307 307  
308 308  When the real number of R4 is less than or equal to the real number of R15, or the real number R6 is equal to the real number R20, Y13 is ON, otherwise Y13 is OFF.
309 309  
310 -{{id name="_Toc16295"/}}**String comparison**
310 +== **String comparison** ==
311 311  
312 312  **LDS£、ANDS£、 ORS£**
313 313  
314 -{{id name="OLE_LINK27"/}}Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
314 +Compare the string stored after the device number specified in (s1) with the string stored after the device number specified in (s2).
315 315  
316 316  LDS£: String comparison instruction
317 317  
318 318  ANDS£: String serial connection comparison instruction
319 319  
320 -{{id name="OLE_LINK341"/}}ORS£: String parallel connection comparison instruction
320 +ORS£: String parallel connection comparison instruction
321 321  
322 322  **Ladder diagram**
323 323  
324 -[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png]]
324 +(% style="text-align:center" %)
325 +[[image:07-5 Basic instructions_html_5fb3b3b70645fef5.png||height="371" width="550"]]
325 325  
326 326  “=” and “<>” could be entered in “£”
327 327  
... ... @@ -328,27 +328,23 @@
328 328  **Content, range and data type**
329 329  
330 330  |**Parameter**|**Content**|**Range**|**Date type**|**Date type(label)**
331 -|(S1)|{{id name="OLE_LINK342"/}}Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
332 -|(S1)|Connection data or the device start number storing the data or the string specified directly|-|{{id name="OLE_LINK29"/}}String|ANYSTRING_SINGLE
332 +|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
333 +|(S1)|Connection data or the device start number storing the data or the string specified directly|-|String|ANYSTRING_SINGLE
333 333  
334 334  **Device used**
335 335  
336 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
337 -**Offset**
338 -
339 -**modification**
337 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="9" %)**Devices**|(((
338 +**Offset modification**
340 340  )))|(((
341 -**Pulse**
342 -
343 -**extension**
340 +**Pulse extension**
344 344  )))
345 -|**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**
346 -|LDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
347 -|LDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
348 -|ANDS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
349 -|ANDS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
350 -|ORS=|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
351 -|ORS<>|s1、s2| | | | | | | | | | |●|●|●|●|●|●|●|●|●| | | | | |●|
342 +|**KnX**|**KnY**|**KnM**|**KnS**|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
343 +|LDS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
344 +|LDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
345 +|ANDS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
346 +|ANDS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
347 +|ORS=|s1、s2|●|●|●|●|●|●|●|●|●|●|
348 +|ORS<>|s1、s2|●|●|●|●|●|●|●|●|●|●|
352 352  
353 353  **Features**
354 354  
... ... @@ -357,7 +357,7 @@
357 357  • The comparison operation result of each instruction is shown below.
358 358  
359 359  |**Instruction sign**|**Condition**|**Comparison operation result**|**Instruction sign**|**Condition**|**Comparison operation result**
360 -|= |(s1)=(s2)|(% rowspan="2" %)On stat|= |(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
357 +|==|(s1)=(s2)|(% rowspan="2" %)On stat|==|(s1)≠(s2)|(% rowspan="2" %)Non-conduction state
361 361  |<>|(s1)≠(s2)|<>|(s1)=(s2)
362 362  
363 363  **Error code**
... ... @@ -369,21 +369,24 @@
369 369  
370 370  **Example**
371 371  
372 -1. 1、LDS£ instruction
369 +(1) LDS£ instruction:
373 373  
371 +(% style="text-align:center" %)
374 374  [[image:07-5 Basic instructions_html_449a071f61ff5b58.png]]
375 375  
376 -1. ANDS£ instruction
374 +(2) ANDS£ instruction:
377 377  
376 +(% style="text-align:center" %)
378 378  [[image:07-5 Basic instructions_html_dd6aa995d193bdd2.png]]
379 379  
380 -1. ORS£ instruction
379 +(3) ORS£ instruction:
381 381  
381 +(% style="text-align:center" %)
382 382  [[image:07-5 Basic instructions_html_4f8fb7c94f87c58d.png]]
383 383  
384 -{{id name="_Toc11737"/}}[[image:07-5 Basic instructions_html_a2e3294e01b2f206.gif]] **7.12 Clock operation instruction**
384 += **Clock operation instruction** =
385 385  
386 -{{id name="_Toc9100"/}}{{id name="_Toc26958"/}}[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TADD/The addition of clock data**
386 +== **TADD/The addition of clock data** ==
387 387  
388 388  **TADD(P)**
389 389  
... ... @@ -394,7 +394,7 @@
394 394  **Content, range and data type**
395 395  
396 396  |**Parameter**|**Content**|**Range**|**Data type**|**Data type (label)**
397 -|(s1)|{{id name="OLE_LINK345"/}}The device start number that stores the added time data|-|Signed BIN 16 bit|(((
397 +|(s1)|The device start number that stores the added time data|-|Signed BIN 16 bit|(((
398 398  ANY16_ARRAY
399 399  
400 400  (number of elements: 3)
... ... @@ -412,35 +412,34 @@
412 412  
413 413  **Device used**
414 414  
415 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
416 -**Offset**
417 -
418 -**modification**
415 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
416 +**Offset modification**
419 419  )))|(((
420 -**Pulse**
421 -
422 -**extension**
418 +**Pulse extension**
423 423  )))
424 -|**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**
425 -|(% rowspan="3" %)TADD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
426 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
427 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
420 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
421 +|(% rowspan="3" %)TADD|Parameter 1|●|●|●|●|●|●|●
422 +|Parameter 2|●|●|●|●|●|●|●
423 +|Parameter 3|●|●|●|●|●|●|●
428 428  
429 429  **Features**
430 430  
431 431  Add the time data specified in (s1) and the time data specified in (s2), and store the result of the addition in the device number specified in (d) or later.
432 432  
433 -[[image:07-5 Basic instructions_html_37222a6e282347f9.png]]
429 +(% style="text-align:center" %)
430 +[[image:07-5 Basic instructions_html_37222a6e282347f9.png||height="79" width="750"]]
434 434  
435 435  **Example**
436 436  
437 437  When 6:32:40 and 7:48:10 are added together
438 438  
439 -[[image:07-5 Basic instructions_html_90138670198ab422.png]]
436 +(% style="text-align:center" %)
437 +[[image:07-5 Basic instructions_html_90138670198ab422.png||height="94" width="750"]]
440 440  
441 441  When the calculation result time exceeds 24 o'clock, the carry flag turns ON, and the value after 24 hours is subtracted becomes the calculation result. For example, when 14:20:30 and 20:20:20 are added, the result is not 34:40:50, but 10:40:50.
442 442  
443 -[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png]]
441 +(% style="text-align:center" %)
442 +[[image:07-5 Basic instructions_html_bac419ce2dc0dc2.png||height="91" width="750"]]
444 444  
445 445  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
446 446  
... ... @@ -452,7 +452,7 @@
452 452  |SM151|Carry|It is ON when the result of the TADD(P) instruction exceeds the maximum clock data value of 23:59:59
453 453  |SM153|Zero|It is ON when the result of the TADD(P) instruction is 0:00:00
454 454  
455 -✎**Note**
454 +✎**Note:**
456 456  
457 457  The devices specified in (s1), (s2), (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
458 458  
... ... @@ -461,7 +461,7 @@
461 461  **Error code**
462 462  
463 463  |**Error code**|**Content**
464 -|4085H|{{id name="OLE_LINK344"/}}When reading the specified device range exceeds the corresponding device range
463 +|4085H|When reading the specified device range exceeds the corresponding device range
465 465  |4086H|When writing the specified device range exceeds the corresponding device range
466 466  |4084H|(((
467 467  When the values specified in (s1) and (s2) are other than 0 to 23
... ... @@ -471,24 +471,26 @@
471 471  
472 472  **Example**
473 473  
474 -[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png]]
473 +(% style="text-align:center" %)
474 +[[image:07-5 Basic instructions_html_4f75eedee7172bbb.png||height="35" width="349"]]
475 475  
476 476  Set D0 time to 16:30:00 and D10 time to 4:30:0
477 477  
478 +(% style="text-align:center" %)
478 478  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
479 479  
481 +(% style="text-align:center" %)
480 480  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
481 481  
482 482  After the coil is turned on, the D20 time is 21:0:0
483 483  
486 +(% style="text-align:center" %)
484 484  [[image:07-5 Basic instructions_html_a9b235835aa41200.png]]
485 485  
489 +== **TSUB/The subtraction of clock data** ==
486 486  
491 +**TSUB(P)**
487 487  
488 -{{id name="_Toc6604"/}}{{id name="_Toc16422"/}}**TSUB/The subtraction of clock data**
489 -
490 -[[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TSUB(P)**
491 -
492 492  Subtract the time data stored after the device number specified in (s1) and the time data stored after the device number specified in (s2), and store the subtraction result in the device number specified in (d) or later .
493 493  
494 494  -[TSUB (s1) (s2) (d)]
... ... @@ -514,24 +514,21 @@
514 514  
515 515  **Device used**
516 516  
517 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
518 -**Offset**
519 -
520 -**modification**
518 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="5" %)**Devices**|(((
519 +**Offset modification**
521 521  )))|(((
522 -**Pulse**
523 -
524 -**extension**
521 +**Pulse extension**
525 525  )))
526 -|**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**
527 -|(% rowspan="3" %)TSUB|Parameter 1| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
528 -|Parameter 2| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
529 -|Parameter 3| | | | | | | | | | | | | | |●|●|●|●|●| | | | | |●|●
523 +|**T**|**C**|**D**|**R**|**SD**|**[D]**|**XXP**
524 +|(% rowspan="3" %)TSUB|Parameter 1|●|●|●|●|●|●|●
525 +|Parameter 2|●|●|●|●|●|●|●
526 +|Parameter 3|●|●|●|●|●|●|●
530 530  
531 531  **Features**
532 532  
533 533  Subtract the time data specified in (s1) and the time data specified in (s2), and store the subtraction result in the device number specified in (d) or later.
534 534  
532 +(% style="text-align:center" %)
535 535  [[image:07-5 Basic instructions_html_5a93455e4cd8a27.png]]
536 536  
537 537  **Example**
... ... @@ -538,10 +538,12 @@
538 538  
539 539  When subtracting 10:40:20 and 3:50:10
540 540  
539 +(% style="text-align:center" %)
541 541  [[image:07-5 Basic instructions_html_2473f03fc493780c.png]]
542 542  
543 543  When the calculation result time is a negative number, the borrow flag turns on and the data +24 is the calculation result. For example, in the case of subtracting 4:50:32 and 10:42:12, the result is not -6:8:20, but 18:8:20.
544 544  
544 +(% style="text-align:center" %)
545 545  [[image:07-5 Basic instructions_html_24b998b4c3c4ec73.png]]
546 546  
547 547  When the calculation result is 0 (0 hour, 0 minute, 0 second), the zero flag turns on.
... ... @@ -552,7 +552,7 @@
552 552  |SM152|Borrow|It is ON when the result of the TSUB(P) instruction is less than 0:00:00
553 553  |SM153|Zero|It is ON when the result of the TSUB(P) instruction is at the time of 0:00:00:00
554 554  
555 -✎**Note**
555 +✎**Note:**
556 556  
557 557  • The devices specified in (s1), (s2), and (d) occupy 3 points respectively. Be careful not to overlap with the device used for machine control.
558 558  
... ... @@ -571,19 +571,23 @@
571 571  
572 572  **Example**
573 573  
574 -[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png]]
574 +(% style="text-align:center" %)
575 +[[image:07-5 Basic instructions_html_e3a5d4793d3ccd2d.png||height="36" width="372"]]
575 575  
576 576  Set D0 time to 16:30:00 and D10 time to 4:30:0
577 577  
579 +(% style="text-align:center" %)
578 578  [[image:07-5 Basic instructions_html_c64e0faf2af172f8.png]]
579 579  
582 +(% style="text-align:center" %)
580 580  [[image:07-5 Basic instructions_html_66e3a2eadeb2ecbb.png]]
581 581  
582 582  After the coil is turned on, the D20 time is 12:00:00
583 583  
587 +(% style="text-align:center" %)
584 584  [[image:07-5 Basic instructions_html_8f93ea19ba10652b.png]]
585 585  
586 -{{id name="_Toc10358"/}}{{id name="_Toc12073"/}}[[image:07-5 Basic instructions_html_501fb256fd034ca6.gif]] **TRD/Clock data reading**
590 +**TRD/Clock data reading**
587 587  
588 588  **TRD(P)**
589 589  
... ... @@ -602,17 +602,13 @@
602 602  
603 603  **Device used**
604 604  
605 -|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="24" %)**Devices**|(((
606 -**Offset**
607 -
608 -**modification**
609 +|(% rowspan="2" %)**Instruction**|(% rowspan="2" %)**Parameter**|(% colspan="4" %)**Devices**|(((
610 +**Offset modification**
609 609  )))|(((
610 -**Pulse**
611 -
612 -**extension**
612 +**Pulse extension**
613 613  )))
614 -|**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**
615 -|TRD|Parameter 1| | | | | | | | | | | | | | |●|●|●|●| | | | | | |●|●
614 +|**T**|**C**|**D**|**R**|**[D]**|**XXP**
615 +|TRD|Parameter 1|●|●|●|●|●|●
616 616  
617 617  **Features**
618 618  
... ... @@ -638,7 +638,7 @@
638 638  |SD105|The year data of the clock data is stored in a 4-digit BIN code of the Gregorian calendar.
639 639  |SD106|The week data of the clock data is stored in BIN code. (0: day, 1: one, ..., 6: six) are stored in BIN code.
640 640  
641 -✎**Note**
641 +✎**Note:**
642 642  
643 643  • The device specified in (d) occupies 7 points. Be careful not to overlap with the device used for machine control.
644 644  
... ... @@ -649,13 +649,15 @@
649 649  
650 650  **Example**
651 651  
652 -[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png]]
652 +(% style="text-align:center" %)
653 +[[image:07-5 Basic instructions_html_b81c1991fec5b4b1.png||height="68" width="250"]]
653 653  
654 654  After the M0 coil is turned on, the current date and time are read as 2020-2-19 13:10:38 Wednesday
655 655  
656 -[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png]]
657 +(% style="text-align:center" %)
658 +[[image:07-5 Basic instructions_html_fe82ecd18ebfd787.png||height="48" width="602"]]
657 657  
658 -{{id name="_Toc24237"/}}{{id name="_Toc487"/}}**TWR/Clock data writing**
660 +== **TWR/Clock data writing** ==
659 659  
660 660  [[image:07-5 Basic instructions_html_11b3991e89e21efc.gif]] **TWR(P)**
661 661