Changes for page 08 Communication
Last modified by Iris on 2025/07/24 15:23
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Iris1 +XWiki.Mora - Content
-
... ... @@ -34,9 +34,7 @@ 34 34 35 35 (% class="table-bordered" %) 36 36 (% class="warning" %)|(% style="text-align:center; vertical-align:middle" %)[[image:image-20220611153144-2.png]] 37 -|((( 38 -The grounding wire cannot form a closed loop under no circumstances. 39 -))) 37 +|Under no circumstances can the grounding wire form a closed loop. 40 40 41 41 When wiring, consider the drive capability of the computer/PLC and the distance between the computer/PLC and the servo drive. If the drive capacity is insufficient, a repeater is needed. 42 42 ... ... @@ -101,7 +101,6 @@ 101 101 The servo uses a 16-bit CRC check, and the host computer must also use the same check rule, otherwise the CRC check will make mistake. When transmitting, the low bit is in the front and the high bit is at the back. The CRC code are as follows: 102 102 103 103 {{code language="LUA"}} 104 -Uint16 CRC16_Calc(Uint8 *pBuf, Uint16 uLen) 105 105 { 106 106 107 107 Uint16 crc = 0xffff; ... ... @@ -136,8 +136,8 @@ 136 136 137 137 } 138 138 139 - } 140 140 137 + 141 141 } 142 142 143 143 } ... ... @@ -146,6 +146,9 @@ 146 146 147 147 } 148 148 146 +return crc; 147 + 148 +} 149 149 {{/code}} 150 150 151 151 == **Error response frame** == ... ... @@ -272,20 +272,13 @@ 272 272 Operation setting 273 273 )))|(% style="text-align:center; vertical-align:middle; width:165px" %)((( 274 274 Effective immediately 275 -)))|(% style="text-align:center; vertical-align:middle; width:109px" %)2|(% style="text-align:center; vertical-align:middle; width:85px" %)0 to 6|(% style="width:224px" %)((( 276 -0: 2400bps 277 - 278 -1: 4800bps 279 - 280 -2: 9600bps 281 - 282 -3: 19200bps 283 - 284 -4: 38400bps 285 - 286 -5: 57600bp 287 - 288 -6:115200bps 275 +)))|(% style="text-align:center; vertical-align:middle; width:109px" %)2|(% style="text-align:center; vertical-align:middle; width:85px" %)0 to 5|(% style="width:224px" %)((( 276 +* 0: 2400bps 277 +* 1: 4800bps 278 +* 2: 9600bps 279 +* 3: 19200bps 280 +* 4: 38400bps 281 +* 5: 57600bp 289 289 )))|(% style="text-align:center; vertical-align:middle; width:69px" %)- 290 290 |(% style="text-align:center; vertical-align:middle; width:121px" %)P12-03|(% style="text-align:center; vertical-align:middle; width:165px" %)Serial data format|(% style="text-align:center; vertical-align:middle; width:148px" %)((( 291 291 Operation setting ... ... @@ -292,13 +292,10 @@ 292 292 )))|(% style="text-align:center; vertical-align:middle; width:165px" %)((( 293 293 Effective immediately 294 294 )))|(% style="text-align:center; vertical-align:middle; width:109px" %)0|(% style="text-align:center; vertical-align:middle; width:85px" %)0 to 3|(% style="width:224px" %)((( 295 -0: 1 stop bit, no parity 296 - 297 -1: 1 stop bit, odd parity 298 - 299 -2: 1 stop bit, even parity 300 - 301 -3: 2 stop bits, no parity 288 +* 0: 1 stop bit, no parity 289 +* 1: 1 stop bit, odd parity 290 +* 2: 1 stop bit, even parity 291 +* 3: 2 stop bits, no parity 302 302 )))|(% style="text-align:center; vertical-align:middle; width:69px" %)- 303 303 |(% style="text-align:center; vertical-align:middle; width:121px" %)P12-04|(% style="text-align:center; vertical-align:middle; width:165px" %)Modbus communication data is written into EEPROM|(% style="text-align:center; vertical-align:middle; width:148px" %)((( 304 304 Operation setting ... ... @@ -305,24 +305,10 @@ 305 305 )))|(% style="text-align:center; vertical-align:middle; width:165px" %)((( 306 306 Effective immediately 307 307 )))|(% style="text-align:center; vertical-align:middle; width:109px" %)0|(% style="text-align:center; vertical-align:middle; width:85px" %)0 to 1|(% style="width:224px" %)((( 308 -0: Do not write to EEPROM, and do not store after power failure; 309 - 310 -1: Write to EEPROM, power-down storage. 298 +* 0: Do not write to EEPROM, and do not store after power failure; 299 +* 1: Write to EEPROM, power-down storage. 311 311 )))|(% style="text-align:center; vertical-align:middle; width:69px" %)- 312 -|P12-06|Modbus 32-bit variable big endian and little endian|((( 313 -Operation 314 314 315 -setting 316 -)))|((( 317 -Effective 318 - 319 -immediately 320 -)))|0|0-1|((( 321 -0: Big-endian mode, the lower address stores the higher 16 bits of data, and the higher address stores the lower 16 bits of data 322 - 323 -1: Little-endian mode, the lower address stores the lower 16 bits of data, and the higher address stores the higher 16 bits of data 324 -)))|- 325 - 326 326 = **Modbus communication variable address and value** = 327 327 328 328 == **Variable address** == ... ... @@ -356,7 +356,7 @@ 356 356 )))|=(% style="text-align: center; vertical-align: middle; width: 278px;" %)((( 357 357 **Modbus address (Decimal)** 358 358 )))|=(% style="text-align: center; vertical-align: middle; width: 192px;" %)**Category**|=(% style="text-align: center; vertical-align: middle; width: 142px;" %)**Name** 359 -|(% style="text-align:center; vertical-align:middle; width:162px" %)P0 0-01|(% style="text-align:center; vertical-align:middle; width:302px" %)0x0001|(% style="text-align:center; vertical-align:middle; width:278px" %)1|(% style="text-align:center; vertical-align:middle; width:192px" %)Basic settings|(% style="text-align:center; vertical-align:middle; width:142px" %)Control mode335 +|(% style="text-align:center; vertical-align:middle; width:162px" %)P0-1|(% style="text-align:center; vertical-align:middle; width:302px" %)0x0001|(% style="text-align:center; vertical-align:middle; width:278px" %)1|(% style="text-align:center; vertical-align:middle; width:192px" %)Basic settings|(% style="text-align:center; vertical-align:middle; width:142px" %)Control mode 360 360 361 361 For detailed parameter addresses, please refer to __[["11.1 Lists of parameters".>>https://docs.we-con.com.cn/bin/view/Servo/Manual/02%20VD2%20SA%20Series/11%20Appendix/#HListsofparameters]]__ 362 362