Last modified by writer on 2023/06/06 17:25

From version 4.1
edited by writer
on 2022/10/17 17:50
Change comment: There is no comment for this version
To version 7.1
edited by writer
on 2023/06/06 17:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,43 +6,11 @@
6 6  
7 7  Example for Toshiba VF-S11.
8 8  
9 -(% class="wrapped" %)
10 -|=(((
11 -Function code
12 -)))|=(((
13 -Value
14 -)))|=(((
15 -Description
16 -)))
17 -|(((
18 -F800
19 -)))|(((
20 -3
21 -)))|(((
22 -Transfer rate: 9600 bits per sec
23 -)))
24 -|(((
25 -F801
26 -)))|(((
27 -1
28 -)))|Parity check enabled
29 -|(% colspan="1" %)(% colspan="1" %)
30 -(((
31 -F802
32 -)))|(% colspan="1" %)(% colspan="1" %)
33 -(((
34 -1
35 -)))|(% colspan="1" %)Device number on the bus
36 -|(% colspan="1" %)(% colspan="1" %)
37 -(((
38 -F829
39 -)))|(% colspan="1" %)(% colspan="1" %)
40 -(((
41 -1
42 -)))|(% colspan="1" %)(% colspan="1" %)
43 -(((
44 -Communication Protocol: Modbus RTU
45 -)))
9 +|=(% style="text-align: center; width: 150px;" %)Function code|=(% style="text-align: center; width: 100px;" %)Value|=(% style="text-align:center" %)Description
10 +|(% style="width:150px" %)F800|(% style="width:100px" %)3|Transfer rate: 9600 bits per sec
11 +|(% style="width:150px" %)F801|(% style="width:100px" %)1|Parity check enabled
12 +|(% style="width:150px" %)F802|(% style="width:100px" %)1|Device number on the bus
13 +|(% style="width:150px" %)F829|(% style="width:100px" %)1|Communication Protocol: Modbus RTU
46 46  
47 47  (% style="margin-left: 30.0px;" %)
48 48  2. Connect FC to the PLCM-B1-G2 expansion board via RS-485 interface.
... ... @@ -55,66 +55,25 @@
55 55  
56 56  Create new Modbus-master. Number of COM port is PLCM. The rest of the settings should be exactly the same as in the FC (in the screenshot, an example of a standard configuration of the COM port of Toshiba VF-S11).
57 57  
58 -(% style="text-align:center" %)
59 -[[image:modbus_master_en.png||alt="master_plcm.png" height="300" width="367"]]
26 +[[image:modbus_master_en.png||alt="master_plcm.png" data-xwiki-image-style-alignment="center" height="300" width="367"]]
60 60  
61 61  You need to add registers to control the FC and read statuses from FC. For example you need to configure registers named **SpindleMode**, **SpindleRPM** and **SpindleStatus**.
62 62  
63 63  We recommend using exactly these names, since in the future, registers will be accessed from background operations by their names.
64 64  
65 -(% class="wrapped" %)
66 -|=(((
67 -Name
68 -)))|=(((
69 -Master
70 -)))|=(((
71 -Address
72 -)))|=(((
73 -Register
74 -)))|=(((
75 -Register type
76 -)))
77 -|(((
78 -SpindleMode
79 -)))|(((
80 -PLCM
81 -)))|(((
82 -1
83 -)))|(((
84 -64000
85 -)))|(((
86 -Output
87 -)))
88 -|(((
89 -SpindleRPM
90 -)))|(((
91 -PLCM
92 -)))|(((
93 -1
94 -)))|(((
95 -64001
96 -)))|(((
97 -Output
98 -)))
99 -|(((
100 -SpindleStatus
101 -)))|(((
102 -PLCM
103 -)))|(((
104 -1
105 -)))|(((
106 -64769
107 -)))|(((
108 -Input
109 -)))
32 +(% class="non-break" %)
33 +|=(% style="text-align: center;" %)Name|=(% style="text-align: center;" %)Master|=(% style="text-align: center;" %)Address|=(% style="text-align: center;" %)Register|=(% style="text-align: center;" %)Register type
34 +|SpindleMode|PLCM|1|64000|Output
35 +|SpindleRPM|PLCM|1|64001|Output
36 +|SpindleStatus|PLCM|1|64769|Input
110 110  
111 111  {{success}}
112 112  Register numbers must be specified as decimal values.
113 113  {{/success}}
114 114  
115 -{{note}}
42 +{{warning}}
116 116  These values ​​can be indicated in HEX (hexadecimal) in the instructions for the frequency converter. For example, 0x1001, 0x1002.
117 -{{/note}}
44 +{{/warning}}
118 118  
119 119  (% style="margin-left: 30.0px;" %)
120 120  5. Create new background operation (macro) through [[the macro manager>>doc:Руководство пользователя.Описание M-кодов.Управление макросами и фоновыми операциями.WebHome]].
... ... @@ -123,16 +123,15 @@
123 123  
124 124  An example of background operation **modbus_spindle.bm** for ModBus spindle control via FC Toshiba VF-S11 posted in attachment. This file must be added to background operations list.
125 125  
126 -**[[Download background operation>>attach:modbus_spindle.bm]]**
53 +**[[Download background operation>>attach:modbus_spindle.zip]]**
127 127  
128 -{{note}}
55 +{{warning}}
129 129  Access to Modbus registers from macros is done by the name of the Modbus register case sensitive! For example **SpindleRPM** and **SpindleRpm** are different registers.
130 -{{/note}}
57 +{{/warning}}
131 131  
132 132  (% style="margin-left: 30.0px;" %)
133 133  6. Enable the background operation. Make sure that the operation has started and is working properly. This will be indicated by the green indicator to the right of the operation name.
134 134  
135 -(% style="text-align:center" %)
136 -[[image:Macros_Manager_wndw.png||alt="2021-11-29 14_18_03-Управление макросами.png" height="400" width="544"]]
62 +[[image:Macros_Manager_wndw.png||alt="2021-11-29 14_18_03-Управление макросами.png" data-xwiki-image-style-alignment="center" height="500" width="681"]]
137 137  
138 138  The spindle should now turn on and off if everything is configured correctly. The spindle speed accordingly must also change at the FC when it changing in PUMOTIX.
Macros_Manager_wndw.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Knetyaga
Size
... ... @@ -1,1 +1,0 @@
1 -26.0 KB
Content
modbus_master_en.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Knetyaga
Size
... ... @@ -1,1 +1,0 @@
1 -9.1 KB
Content