Changes for page Управление шпинделем по Modbus на примере Toshiba VF-S11 и платы расширения PLCM-B1-G2
Last modified by writer on 2023/06/06 17:25
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,11 +6,43 @@ 6 6 7 7 Example for Toshiba VF-S11. 8 8 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 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 +))) 14 14 15 15 (% style="margin-left: 30.0px;" %) 16 16 2. Connect FC to the PLCM-B1-G2 expansion board via RS-485 interface. ... ... @@ -23,25 +23,66 @@ 23 23 24 24 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). 25 25 26 -[[image:modbus_master_en.png||alt="master_plcm.png" data-xwiki-image-style-alignment="center" height="300" width="367"]] 58 +(% style="text-align:center" %) 59 +[[image:modbus_master_en.png||alt="master_plcm.png" height="300" width="367"]] 27 27 28 28 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**. 29 29 30 30 We recommend using exactly these names, since in the future, registers will be accessed from background operations by their names. 31 31 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 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 +))) 37 37 38 38 {{success}} 39 39 Register numbers must be specified as decimal values. 40 40 {{/success}} 41 41 42 -{{ warning}}115 +{{note}} 43 43 These values can be indicated in HEX (hexadecimal) in the instructions for the frequency converter. For example, 0x1001, 0x1002. 44 -{{/ warning}}117 +{{/note}} 45 45 46 46 (% style="margin-left: 30.0px;" %) 47 47 5. Create new background operation (macro) through [[the macro manager>>doc:Руководство пользователя.Описание M-кодов.Управление макросами и фоновыми операциями.WebHome]]. ... ... @@ -52,13 +52,14 @@ 52 52 53 53 **[[Download background operation>>attach:modbus_spindle.bm]]** 54 54 55 -{{ warning}}128 +{{note}} 56 56 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. 57 -{{/ warning}}130 +{{/note}} 58 58 59 59 (% style="margin-left: 30.0px;" %) 60 60 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. 61 61 62 -[[image:Macros_Manager_wndw.png||alt="2021-11-29 14_18_03-Управление макросами.png" data-xwiki-image-style-alignment="center" height="500" width="681"]] 135 +(% style="text-align:center" %) 136 +[[image:Macros_Manager_wndw.png||alt="2021-11-29 14_18_03-Управление макросами.png" height="400" width="544"]] 63 63 64 64 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,0 +1,1 @@ 1 +XWiki.Knetyaga - Size
-
... ... @@ -1,0 +1,1 @@ 1 +26.0 KB - Content
- modbus_master_en.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Knetyaga - Size
-
... ... @@ -1,0 +1,1 @@ 1 +9.1 KB - Content