Changes for page 09 Electronic cam

Last modified by Devin Chen on 2025/01/09 11:57

From version 7.1
edited by Stone Wu
on 2022/09/26 12:02
Change comment: There is no comment for this version
To version 4.7
edited by Joey123
on 2022/08/01 15:30
Change comment: Renamed from xwiki:PLC Editor2.07 Basic instructions.21 Electronic cam.WebHome

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -09 Electronic cam
1 +21 Electronic cam
Parent
... ... @@ -1,1 +1,1 @@
1 -PLC Editor2.WebHome
1 +PLC Editor2.07 Basic instructions.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Stone
1 +XWiki.Joey123
Content
... ... @@ -52,44 +52,48 @@
52 52  
53 53  (% class="table-bordered" %)
54 54  |(% colspan="5" %)**Electronic gear instruction parameter description table**
55 -|**Offset**|(% style="width:348px" %)**Content**|(% style="width:460px" %)**Instruction**|(% style="width:213px" %)**Range**|**Read and write permission**
56 -|0|(% style="width:348px" %)Electronic gear ratio (numerator)|(% rowspan="2" style="width:460px" %)(((
55 +|**Offset**|(% style="width:348px" %)**Content**|(% style="width:724px" %)**Instruction**|(% style="width:209px" %)**Range**|**Read and write permission**
56 +|0|(% style="width:348px" %)Electronic gear ratio (numerator)|(% rowspan="2" style="width:724px" %)(((
57 57  Number of outputs =
58 58  
59 59  Number of inputs in response time*numerator/denominator
60 -)))|(% style="width:213px" %)0 to 32767|(% rowspan="2" %)Read/write
61 -|1|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:213px" %)1 to 32767
62 -|2|(% style="width:348px" %)Maximum output frequency (low word)|(% style="width:460px" %)Max frequency|(% rowspan="2" style="width:213px" %)1 to 200000|Read/write
63 -|3|(% style="width:348px" %)Maximum output frequency (high word)|(% style="width:460px" %)Max frequency|Read/write
64 -|4|(% style="width:348px" %)Average spindle frequency (low word)|(% style="width:460px" %)Hand crank input frequency|(% rowspan="2" style="width:213px" %)-|Read-only
65 -|5|(% style="width:348px" %)Average spindle frequency (high word)|(% style="width:460px" %)Hand crank input frequency|Read-only
66 -|6|(% style="width:348px" %)Accumulative electronic gear input pulse number (low word)|(% rowspan="2" style="width:460px" %)Cumulative number of electronic gear input pulses|(% rowspan="2" style="width:213px" %)-|(% rowspan="2" %)Read-only
60 +)))|(% style="width:209px" %)0 to 32767|(% rowspan="2" %)Read/write
61 +|1|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:209px" %)1 to 32767
62 +|2|(% style="width:348px" %)Maximum output frequency (low word)|(% style="width:724px" %)Max frequency|(% rowspan="2" style="width:209px" %)1 to 200000|Read/write
63 +|3|(% style="width:348px" %)Maximum output frequency (high word)|(% style="width:724px" %)Max frequency|Read/write
64 +|4|(% style="width:348px" %)Average spindle frequency (low word)|(% style="width:724px" %)Hand crank input frequency|(% rowspan="2" style="width:209px" %)-|Read-only
65 +|5|(% style="width:348px" %)Average spindle frequency (high word)|(% style="width:724px" %)Hand crank input frequency|Read-only
66 +|6|(% style="width:348px" %)Accumulative electronic gear input pulse number (low word)|(% rowspan="2" style="width:724px" %)Cumulative number of electronic gear input pulses|(% rowspan="2" style="width:209px" %)-|(% rowspan="2" %)Read-only
67 67  |7|(% style="width:348px" %)Cumulative number of electronic gear input pulses(High word)
68 -|8|(% style="width:348px" %)Sign|(% style="width:460px" %)After the electronic gear is initialized, the flag is equal to 1|(% style="width:213px" %)Reserved|Reserved
69 -|9|(% style="width:348px" %)interval|(% style="width:460px" %)Confirmation value|(% style="width:213px" %)-|Read-only
70 -|10|(% style="width:348px" %)Electronic gear ratio (numerator)|(% style="width:460px" %)Confirmation value|(% style="width:213px" %)-|Read-only
71 -|11|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:460px" %)Confirmation value|(% style="width:213px" %)-|Read-only
72 -|12|(% style="width:348px" %)Maximum output frequency (low word)|(% rowspan="2" style="width:460px" %)Confirmation value|(% rowspan="2" style="width:213px" %)1 to 200000|Read/write
68 +|8|(% style="width:348px" %)Sign|(% style="width:724px" %)After the electronic gear is initialized, the flag is equal to 1|(% style="width:209px" %)Reserved|Reserved
69 +|9|(% style="width:348px" %)interval|(% style="width:724px" %)Confirmation value|(% style="width:209px" %)-|Read-only
70 +|10|(% style="width:348px" %)Electronic gear ratio (numerator)|(% style="width:724px" %)Confirmation value|(% style="width:209px" %)-|Read-only
71 +|11|(% style="width:348px" %)Electronic gear ratio (denominator)|(% style="width:724px" %)Confirmation value|(% style="width:209px" %)-|Read-only
72 +|12|(% style="width:348px" %)Maximum output frequency (low word)|(% rowspan="2" style="width:724px" %)Confirmation value|(% rowspan="2" style="width:209px" %)1 to 200000|Read/write
73 73  |13|(% style="width:348px" %)Maximum output frequency (high word)|Read/write
74 -|14|(% style="width:348px" %)Dynamically switch gear ratio|(% style="width:460px" %)(((
75 -* 1: Switch to the newly set gear ratio immediately. And set the address back to 0.
76 -* 2: The cycle is completed and the gear ratio is switched, and the value is set back to 0 after the switching is completed. (The value of the spindle count reaching the denominator is regarded as a cycle)
77 -)))|(% style="width:213px" %)0 to 2|Read/write
78 -|15|(% style="width:348px" %)16-bit gear ratio and 32-bit gear ratio switch|(% style="width:460px" %)(((
79 -* 0: Use 16-bit gear ratio
80 -* 1: Use 32-bit gear ratio
74 +|14|(% style="width:348px" %)Dynamically switch gear ratio|(% style="width:724px" %)(((
75 +1: Switch to the newly set gear ratio immediately. And set the address back to 0.
81 81  
77 +2: The cycle is completed and the gear ratio is switched, and the value is set back to 0 after the switching is completed. (The value of the spindle count reaching the denominator is regarded as a cycle)
78 +)))|(% style="width:209px" %)0 to 2|Read/write
79 +|15|(% style="width:348px" %)16-bit gear ratio and 32-bit gear ratio switch|(% style="width:724px" %)(((
80 +0: Use 16-bit gear ratio
81 +
82 +1: Use 32-bit gear ratio
83 +
82 82  ✎**Note:     **After changing this bit, it will only take effect after the DEGEAR command is re-enabled or the dynamic gear ratio function is used.
83 -)))|(% style="width:213px" %)0 to 1|Read/write
84 -|16|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:460px" %)(((
85 -Number of outputs = Spindle input number within response time*numerator/denominator
86 -)))|(% rowspan="2" style="width:213px" %)0 to 214748647|(% rowspan="2" %)Read/write
85 +)))|(% style="width:209px" %)0 to 1|Read/write
86 +|16|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:724px" %)(((
87 +Number of inputs =
88 +
89 +Spindle input number within response time*numerator/denominator
90 +)))|(% rowspan="2" style="width:209px" %)0 to 214748647|(% rowspan="2" %)Read/write
87 87  |17|(% style="width:348px" %)32-bit electronic gear ratio numerator (high word)
88 -|18|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:213px" %)1 to 214748647|(% rowspan="2" %)Read/write
92 +|18|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:209px" %)1 to 214748647|(% rowspan="2" %)Read/write
89 89  |19|(% style="width:348px" %)32-bit electronic gear ratio denominator (high word)
90 -|20|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:460px" %)Confirmation value|(% rowspan="2" style="width:213px" %)-|(% rowspan="2" %)Read-only
94 +|20|(% style="width:348px" %)32-bit electronic gear ratio numerator (low word)|(% rowspan="4" style="width:724px" %)Confirmation value|(% rowspan="2" style="width:209px" %)-|(% rowspan="2" %)Read-only
91 91  |21|(% style="width:348px" %)32-bit electronic gear ratio numerator (high word)
92 -|22|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:213px" %)-|(% rowspan="2" %)Read-only
96 +|22|(% style="width:348px" %)32-bit electronic gear ratio denominator (low word)|(% rowspan="2" style="width:209px" %)-|(% rowspan="2" %)Read-only
93 93  |23|(% style="width:348px" %)32-bit electronic gear ratio denominator (high word)
94 94  
95 95  **✎Note:**
... ... @@ -566,15 +566,17 @@
566 566  **(1) Parameters**
567 567  
568 568  (% class="table-bordered" %)
569 -|**Parameter**|(% style="width:527px" %)**Content**|(% style="width:226px" %)**Range**|(% style="width:143px" %)**Data type**|**Data type (label)**
570 -|(s1)|(% style="width:527px" %)Specify to receive the input pulse of the master axis|(% style="width:226px" %)(((
571 --2147483648 to +2147483647
572 -)))|(% style="width:143px" %)Signed BIN 32 bit|ANY32
573 -|(s2)|(% style="width:527px" %)Specify the data buffer area of the ECAM instruction|(% style="width:226px" %) |(% style="width:143px" %)Form|LIST
574 -|(s3)|(% style="width:527px" %)The external start signal of ECAM needs to be enabled in the data buffer area to be effective.|(% style="width:226px" %)X/M/S/D.b|(% style="width:143px" %)Signed BIN 32 bit|ANY32
575 -|(d1)|(% style="width:527px" %)Specify pulse output axis|(% style="width:226px" %)Y0 to Y7|(% style="width:143px" %)Bit|ANY_BOOL
576 -|(d2)|(% style="width:527px" %)Specify direction output axis|(% style="width:226px" %)Y/M/S/D.b|(% style="width:143px" %)Bit|ANY_BOOL
573 +|**Parameter**|(% style="width:812px" %)**Content**|(% style="width:185px" %)**Range**|**Data type**|**Data type (label)**
574 +|(s1)|(% style="width:812px" %)Specify to receive the input pulse of the master axis|(% style="width:185px" %)(((
575 +-2147483648 to
577 577  
577 ++2147483647
578 +)))|Signed BIN 32 bit|ANY32
579 +|(s2)|(% style="width:812px" %)Specify the data buffer area of the ECAM instruction|(% style="width:185px" %) |Form|LIST
580 +|(s3)|(% style="width:812px" %)The external start signal of ECAM needs to be enabled in the data buffer area to be effective.|(% style="width:185px" %)X/M/S/D.b|Signed BIN 32 bit|ANY32
581 +|(d1)|(% style="width:812px" %)Specify pulse output axis|(% style="width:185px" %)Y0 to Y7|Bit|ANY_BOOL
582 +|(d2)|(% style="width:812px" %)Specify direction output axis|(% style="width:185px" %)Y/M/S/D.b|Bit|ANY_BOOL
583 +
578 578  **{{id name="_Toc9293"/}}Device used:**
579 579  
580 580  (% class="table-bordered" %)
... ... @@ -666,7 +666,7 @@
666 666  ✎When a cycle is completed, ECAM cycle completion flag address 1-bit1 turns ON, and the user clears the completion flag by itself, and then continues to judge the next cycle.
667 667  
668 668  (% style="text-align:center" %)
669 -[[image:image-20220926115030-2.jpeg||class="img-thumbnail"]]
675 +[[image:09_html_230c69b0429b0c.gif||height="259" width="800" class="img-thumbnail"]]
670 670  
671 671  {{id name="_Toc18782"/}}2) Periodic ECAM stop
672 672  
... ... @@ -676,7 +676,8 @@
676 676  
677 677  ✎When the periodic ECAM is operating, the system receives the completion stop flag ((address 4-bit1), the periodic ECAM will continue until the current table is executed, the slave axis will stop operating, as shown in the figure below. If you want to start the periodic cam again, you need to write 0 to address 5 and keep it more than 100us, and then you can start the periodic cam through address 5 again.
678 678  
679 -[[image:image-20220926115519-3.jpeg]]
685 +(% style="text-align:center" %)
686 +[[image:09_html_cfb2abe40245003c.gif||height="373" width="900" class="img-thumbnail"]]
680 680  
681 681  {{id name="_Toc31992"/}}3) Example description
682 682  
... ... @@ -726,7 +726,7 @@
726 726  1. Sync signal terminal output.
727 727  
728 728  (% style="text-align:center" %)
729 -[[image:image-20220926120124-4.jpeg]]
736 +[[image:09_html_8efdb40d8fd3ece6.gif||height="357" width="900" class="img-thumbnail"]]
730 730  
731 731  2) Aperiodic electronic cam stop
732 732  
... ... @@ -737,7 +737,7 @@
737 737   2. When the aperiodic ECAM is running, address 4-BIT1=1 (stop after the current cycle is completed), the aperiodic ECAM will continue to run through the table and then the slave axis will stop operating, as shown in the figure below.
738 738  
739 739  (% style="text-align:center" %)
740 -[[image:image-20220926120303-5.jpeg]]
747 +[[image:09_html_93e0a854c1e8db80.gif||height="333" width="800" class="img-thumbnail"]]
741 741  
742 742  3) Example explanation
743 743  
... ... @@ -765,7 +765,7 @@
765 765  [PLC program]
766 766  
767 767  (% style="text-align:center" %)
768 -[[image:image-20220926114246-1.jpeg]]
775 +[[image:09_html_d46ee9de94f51e8b.jpg||height="983" width="500" class="img-thumbnail"]]
769 769  
770 770  **{{id name="_电子凸轮功能寄存器"/}}Electronic cam function register**
771 771  
image-20220926114246-1.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -64.2 KB
Content
image-20220926115030-2.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -110.6 KB
Content
image-20220926115519-3.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -149.2 KB
Content
image-20220926120124-4.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -164.6 KB
Content
image-20220926120303-5.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -152.7 KB
Content