Changes for page LX5V-2RS485-BD

Last modified by Jim on 2023/05/29 16:00

From version 13.1
edited by Stone Wu
on 2022/09/14 15:53
Change comment: There is no comment for this version
To version 8.1
edited by Stone Wu
on 2022/09/13 15:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -LX5V-2RS485-BD
1 +LV5V-2RS485-BD
Content
... ... @@ -172,12 +172,12 @@
172 172  **Example:**
173 173  
174 174  (% style="text-align:center" %)
175 -[[image:image-20220913154229-5.png||class="img-thumbnail"]]
175 +[[image:image-20220913154229-5.png]]
176 176  
177 177  When M1 is ON, the sending and receiving data of communication after instruction execution are stored as follows:
178 178  
179 179  (% style="text-align:center" %)
180 -[[image:image-20220913154229-6.jpeg||class="img-thumbnail"]]
180 +[[image:image-20220913154229-6.jpeg]]
181 181  
182 182  == Modbus protocol ==
183 183  
... ... @@ -186,7 +186,7 @@
186 186  **Example:**
187 187  
188 188  (% style="text-align:center" %)
189 -[[image:image-20220913154229-7.png||class="img-thumbnail"]]
189 +[[image:image-20220913154229-7.png]]
190 190  
191 191  |=(% scope="row" style="width: 97px;" %)**(S)**|(% style="width:978px" %)The high byte stores the station number of the slave station, and the low byte stores the Modbus function code.
192 192  |=(% style="width: 97px;" %)**(M)**|(% style="width:978px" %)Slave station address The address provided by the slave station will read or write data from the address of slave station.
... ... @@ -291,27 +291,27 @@
291 291  When the BD board configures the serial port protocol as Modbus slave station protocol, the address mapping relationship accessed by the master station is as follows:
292 292  
293 293  |=(% colspan="5" %)**Word address**
294 -|(% style="width:213px" %)**Address type**|(% style="width:212px" %)**Occupation**|(% style="width:226px" %)**Address range**|(% style="width:173px" %)**Decimal address**|(% style="width:252px" %)**Total reserved address size**
295 -|(% style="width:213px" %)T0 to T511|(% style="width:212px" %)512 WORD|(% style="width:226px" %)0x0000 to 0x01ff|(% style="width:173px" %)0|(% style="width:252px" %)1536
296 -|(% style="width:213px" %)C0 to C255|(% style="width:212px" %)256 WORD|(% style="width:226px" %)0x0600 to 0x06ff|(% style="width:173px" %)1536|(% style="width:252px" %)1024
297 -|(% style="width:213px" %)LC0 to LC255|(% style="width:212px" %)512 WORD|(% style="width:226px" %)0x0A000 to 0x0BFF|(% style="width:173px" %)2560|(% style="width:252px" %)1024
298 -|(% style="width:213px" %)HSC0 to HSC15|(% style="width:212px" %)128 WORD|(% style="width:226px" %)0x0E00 to 0x0E1F|(% style="width:173px" %)3584|(% style="width:252px" %)512
299 -|(% style="width:213px" %)D0 to D7999|(% style="width:212px" %)8000 WORD|(% style="width:226px" %)0x1000 to 0x2F3F|(% style="width:173px" %)4096|(% style="width:252px" %)16384
300 -|(% style="width:213px" %)SD0 to SD4095|(% style="width:212px" %)4096 WORD|(% style="width:226px" %)0x5000 to 0x5FFF|(% style="width:173px" %)20480|(% style="width:252px" %)12288
301 -|(% style="width:213px" %)R0 to R30000|(% style="width:212px" %)30000 WORD|(% style="width:226px" %)0x8000 to 0xF52F|(% style="width:173px" %)32768|(% style="width:252px" %)30000
294 +|**Address type**|(% style="width:172px" %)**Occupation**|(% style="width:239px" %)**Address range**|(% style="width:208px" %)**Decimal address**|(% style="width:271px" %)**Total reserved address size**
295 +|T0 to T511|(% style="width:172px" %)512 WORD|(% style="width:239px" %)0x0000 to 0x01ff|(% style="width:208px" %)0|(% style="width:271px" %)1536
296 +|C0 to C255|(% style="width:172px" %)256 WORD|(% style="width:239px" %)0x0600 to 0x06ff|(% style="width:208px" %)1536|(% style="width:271px" %)1024
297 +|LC0 to LC255|(% style="width:172px" %)512 WORD|(% style="width:239px" %)0x0A000 to 0x0BFF|(% style="width:208px" %)2560|(% style="width:271px" %)1024
298 +|HSC0 to HSC15|(% style="width:172px" %)128 WORD|(% style="width:239px" %)0x0E00 to 0x0E1F|(% style="width:208px" %)3584|(% style="width:271px" %)512
299 +|D0 to D7999|(% style="width:172px" %)8000 WORD|(% style="width:239px" %)0x1000 to 0x2F3F|(% style="width:208px" %)4096|(% style="width:271px" %)16384
300 +|SD0 to SD4095|(% style="width:172px" %)4096 WORD|(% style="width:239px" %)0x5000 to 0x5FFF|(% style="width:208px" %)20480|(% style="width:271px" %)12288
301 +|R0 to R30000|(% style="width:172px" %)30000 WORD|(% style="width:239px" %)0x8000 to 0xF52F|(% style="width:208px" %)32768|(% style="width:271px" %)30000
302 302  
303 303  |=(% colspan="5" %)**Bit address**
304 -|(% style="width:212px" %)**Address type**|(% style="width:214px" %)**Occupation**|(% style="width:229px" %)**Address range**|(% style="width:170px" %)**Decimal address**|(% style="width:251px" %)**Total reserved address size**
305 -|(% style="width:212px" %)T0 to T511|(% style="width:214px" %)512 bits|(% style="width:229px" %)0x0000 to 0x01ff|(% style="width:170px" %)0|(% style="width:251px" %)1536
306 -|(% style="width:212px" %)C0 to C255|(% style="width:214px" %)256 bits|(% style="width:229px" %)0x0600 to 0x06ff|(% style="width:170px" %)1536|(% style="width:251px" %)1024
307 -|(% style="width:212px" %)LC0 to LC255|(% style="width:214px" %)256 bits|(% style="width:229px" %)0x0A00 to 0x0AFF|(% style="width:170px" %)2560|(% style="width:251px" %)1024
308 -|(% style="width:212px" %)HSC0 to HSC15|(% style="width:214px" %)64 bits|(% style="width:229px" %)0x0E00 to 0x0E0F|(% style="width:170px" %)3584|(% style="width:251px" %)512
309 -|(% style="width:212px" %)M0 to M8000|(% style="width:214px" %)8192 bits|(% style="width:229px" %)0x1000 to 0x2F3F|(% style="width:170px" %)4096|(% style="width:251px" %)16384
310 -|(% style="width:212px" %)SM0 to SM4095|(% style="width:214px" %)4096 bits|(% style="width:229px" %)0x5000 to 0x5FFF|(% style="width:170px" %)20480|(% style="width:251px" %)12288
311 -|(% style="width:212px" %)Reserved|(% style="width:214px" %) |(% style="width:229px" %)0x8000 to 0xBFFF|(% style="width:170px" %) |(% style="width:251px" %)16383
312 -|(% style="width:212px" %)S0 to S4095|(% style="width:214px" %)4096 bits|(% style="width:229px" %)0xC000 to 0xCFFF|(% style="width:170px" %)49152|(% style="width:251px" %)8192
313 -|(% style="width:212px" %)X0 to X1023|(% style="width:214px" %)1024 bits|(% style="width:229px" %)0xE000 to 0xE3FF|(% style="width:170px" %)57344|(% style="width:251px" %)4096
314 -|(% style="width:212px" %)Y0 to Y1023|(% style="width:214px" %)1024 bits|(% style="width:229px" %)0xF000 to 0xF3FF|(% style="width:170px" %)61440|(% style="width:251px" %)4096
304 +|**Address type**|(% style="width:168px" %)**Occupation**|(% style="width:238px" %)**Address range**|(% style="width:210px" %)**Decimal address**|(% style="width:270px" %)**Total reserved address size**
305 +|T0 to T511|(% style="width:168px" %)512 bits|(% style="width:238px" %)0x0000 to 0x01ff|(% style="width:210px" %)0|(% style="width:270px" %)1536
306 +|C0 to C255|(% style="width:168px" %)256 bits|(% style="width:238px" %)0x0600 to 0x06ff|(% style="width:210px" %)1536|(% style="width:270px" %)1024
307 +|LC0 to LC255|(% style="width:168px" %)256 bits|(% style="width:238px" %)0x0A00 to 0x0AFF|(% style="width:210px" %)2560|(% style="width:270px" %)1024
308 +|HSC0 to HSC15|(% style="width:168px" %)64 bits|(% style="width:238px" %)0x0E00 to 0x0E0F|(% style="width:210px" %)3584|(% style="width:270px" %)512
309 +|M0 to M8000|(% style="width:168px" %)8192 bits|(% style="width:238px" %)0x1000 to 0x2F3F|(% style="width:210px" %)4096|(% style="width:270px" %)16384
310 +|SM0 to SM4095|(% style="width:168px" %)4096 bits|(% style="width:238px" %)0x5000 to 0x5FFF|(% style="width:210px" %)20480|(% style="width:270px" %)12288
311 +|Reserved|(% style="width:168px" %) |(% style="width:238px" %)0x8000 to 0xBFFF|(% style="width:210px" %) |(% style="width:270px" %)16383
312 +|S0 to S4095|(% style="width:168px" %)4096 bits|(% style="width:238px" %)0xC000 to 0xCFFF|(% style="width:210px" %)49152|(% style="width:270px" %)8192
313 +|X0 to X1023|(% style="width:168px" %)1024 bits|(% style="width:238px" %)0xE000 to 0xE3FF|(% style="width:210px" %)57344|(% style="width:270px" %)4096
314 +|Y0 to Y1023|(% style="width:168px" %)1024 bits|(% style="width:238px" %)0xF000 to 0xF3FF|(% style="width:210px" %)61440|(% style="width:270px" %)4096
315 315  
316 316  When using the Modbus master station to access the slave station, the RS2 instruction specifies the following address:
317 317  
... ... @@ -318,7 +318,7 @@
318 318  **Example 1:** Read 10 registers starting from slave station (station NO.1) D0 and store them in 10 devices starting from local D0:
319 319  
320 320  (% style="text-align:center" %)
321 -[[image:image-20220913154229-8.png||class="img-thumbnail"]]
321 +[[image:image-20220913154229-8.png]]
322 322  
323 323  The function code of this instruction is 3, which indicates reading register, and the address H1000 in it is the starting address of "D0 to D7999" by inquiring the "word address table", which corresponds to the address of D0.
324 324  
... ... @@ -325,7 +325,7 @@
325 325  **Example 2:** Read 10 bit devices starting from slave station (station NO.1) M0 and store them in local D0 device (because D0 can store the value of 16 bit devices, zero padding will be performed):
326 326  
327 327  (% style="text-align:center" %)
328 -[[image:image-20220913154229-9.png||class="img-thumbnail"]]
328 +[[image:image-20220913154229-9.png]]
329 329  
330 330  The function code of the instruction is 1, which indicates read coil, and the address H1000 in it is the starting address of “M0 to M8000" by inquiring the "bit address table", which corresponds to the address of M0. If slave stations M0 and M1 are 1, and the rest are 0, the value in D0 is H0300 (not H0003).
331 331  
... ... @@ -333,31 +333,31 @@
333 333  
334 334  **BD1:**
335 335  
336 -|=(% scope="row" style="width: 111px;" %)**SD label**|=(% style="width: 317px;" %)**Content**|=(% style="width: 132px;" %)**SD label**|=(% style="width: 516px;" %)**Content**
337 -|=(% style="width: 111px;" %)SM2000|(% style="width:317px" %)COM3 sending control on|(% style="width:132px" %)SD2000|(% style="width:516px" %)Display 0x1062 after 485BD is recognized after power-on.
338 -|=(% style="width: 111px;" %)SM2001|(% style="width:317px" %)COM3 send control/send prompt|(% style="width:132px" %)SD2001|(% style="width:516px" %)Display 485BD version information after 485BD is recognized after power-on.
339 -|=(% style="width: 111px;" %)SM 2002|(% style="width:317px" %)COM3 reception control on|(% style="width:132px" %)SD 2002|(% style="width:516px" %)BD1 last error
340 -|=(% style="width: 111px;" %)SM 2003|(% style="width:317px" %)COM3 accept control/receive prompt|(% style="width:132px" %)SD 2003|(% style="width:516px" %)BD1 current error
341 -|=(% style="width: 111px;" %)SM2004|(% style="width:317px" %)COM3 communication complete flag|(% style="width:132px" %)SD2004|(% style="width:516px" %)BD1 error times
342 -|=(% style="width: 111px;" %)SM 2005|(% style="width:317px" %)COM4 sending control on|(% style="width:132px" %)SD 2005|(% style="width:516px" %)BD1 error communication port.
343 -|=(% style="width: 111px;" %)SM 2006|(% style="width:317px" %)COM4 send control/send prompt|(% style="width:132px" %)SD2006|(% style="width:516px" %)BD1 communication timeout (1ms).
344 -|=(% style="width: 111px;" %)SM 2007|(% style="width:317px" %)COM4 reception control on|(% style="width:132px" %) |(% style="width:516px" %)
345 -|=(% style="width: 111px;" %)SM2008|(% style="width:317px" %)COM4 accept control/receive prompt|(% style="width:132px" %) |(% style="width:516px" %)
346 -|=(% style="width: 111px;" %)SM2009|(% style="width:317px" %)COM4 communication complete flag|(% style="width:132px" %) |(% style="width:516px" %)
336 +|=(% scope="row" style="width: 111px;" %)**SD label**|=(% style="width: 291px;" %)**Content**|=(% style="width: 115px;" %)**SD label**|=(% style="width: 559px;" %)**Content**
337 +|=(% style="width: 111px;" %)SM2000|(% style="width:291px" %)COM3 sending control on|(% style="width:115px" %)SD2000|(% style="width:559px" %)Display 0x1062 after 485BD is recognized after power-on.
338 +|=(% style="width: 111px;" %)SM2001|(% style="width:291px" %)COM3 send control/send prompt|(% style="width:115px" %)SD2001|(% style="width:559px" %)Display 485BD version information after 485BD is recognized after power-on.
339 +|=(% style="width: 111px;" %)SM 2002|(% style="width:291px" %)COM3 reception control on|(% style="width:115px" %)SD 2002|(% style="width:559px" %)BD1 last error
340 +|=(% style="width: 111px;" %)SM 2003|(% style="width:291px" %)COM3 accept control/receive prompt|(% style="width:115px" %)SD 2003|(% style="width:559px" %)BD1 current error
341 +|=(% style="width: 111px;" %)SM2004|(% style="width:291px" %)COM3 communication complete flag|(% style="width:115px" %)SD2004|(% style="width:559px" %)BD1 error times
342 +|=(% style="width: 111px;" %)SM 2005|(% style="width:291px" %)COM4 sending control on|(% style="width:115px" %)SD 2005|(% style="width:559px" %)BD1 error communication port.
343 +|=(% style="width: 111px;" %)SM 2006|(% style="width:291px" %)COM4 send control/send prompt|(% style="width:115px" %)SD2006|(% style="width:559px" %)BD1 communication timeout (1ms).
344 +|=(% style="width: 111px;" %)SM 2007|(% style="width:291px" %)COM4 reception control on|(% style="width:115px" %) |(% style="width:559px" %)
345 +|=(% style="width: 111px;" %)SM2008|(% style="width:291px" %)COM4 accept control/receive prompt|(% style="width:115px" %) |(% style="width:559px" %)
346 +|=(% style="width: 111px;" %)SM2009|(% style="width:291px" %)COM4 communication complete flag|(% style="width:115px" %) |(% style="width:559px" %)
347 347  
348 348  **BD2:**
349 349  
350 -|=(% scope="row" style="width: 113px;" %)**SD label**|=(% style="width: 314px;" %)**Content**|=(% style="width: 131px;" %)**SD label**|=(% style="width: 518px;" %)**Content**
351 -|=(% style="width: 113px;" %)SM2020|(% style="width:314px" %)COM5 sending control on|(% style="width:131px" %)SD2020|(% style="width:518px" %)Display 0x1062 after 485BD is recognized after power-on.
352 -|=(% style="width: 113px;" %)SM2021|(% style="width:314px" %)COM5 send control/send prompt|(% style="width:131px" %)SD2021|(% style="width:518px" %)Display 485BD version information after 485BD is recognized after power-on.
353 -|=(% style="width: 113px;" %)SM 2022|(% style="width:314px" %)COM5 reception control on|(% style="width:131px" %)SD2022|(% style="width:518px" %)BD2 last error
354 -|=(% style="width: 113px;" %)SM2023|(% style="width:314px" %)COM5 accept control/receive prompt|(% style="width:131px" %)SD2023|(% style="width:518px" %)BD2 current error
355 -|=(% style="width: 113px;" %)SM2024|(% style="width:314px" %)COM5 communication complete flag|(% style="width:131px" %)SD2024|(% style="width:518px" %)BD2 error times
356 -|=(% style="width: 113px;" %)SM2025|(% style="width:314px" %)COM6 sending control on|(% style="width:131px" %)SD2025|(% style="width:518px" %)BD2 error communication port.
357 -|=(% style="width: 113px;" %)SM2026|(% style="width:314px" %)COM6 send control/send prompt|(% style="width:131px" %)SD2026|(% style="width:518px" %)BD2 communication timeout (1ms).
358 -|=(% style="width: 113px;" %)SM2027|(% style="width:314px" %)COM6 reception control on|(% style="width:131px" %) |(% style="width:518px" %)
359 -|=(% style="width: 113px;" %)SM2028|(% style="width:314px" %)COM6 accept control/receive prompt|(% style="width:131px" %) |(% style="width:518px" %)
360 -|=(% style="width: 113px;" %)SM2029|(% style="width:314px" %)COM6 communication complete flag|(% style="width:131px" %) |(% style="width:518px" %)
350 +|=(% scope="row" style="width: 107px;" %)**SD label**|=(% style="width: 294px;" %)**Content**|=(% style="width: 114px;" %)**SD label**|=(% style="width: 561px;" %)**Content**
351 +|=(% style="width: 107px;" %)SM2020|(% style="width:294px" %)COM5 sending control on|(% style="width:114px" %)SD2020|(% style="width:561px" %)Display 0x1062 after 485BD is recognized after power-on.
352 +|=(% style="width: 107px;" %)SM2021|(% style="width:294px" %)COM5 send control/send prompt|(% style="width:114px" %)SD2021|(% style="width:561px" %)Display 485BD version information after 485BD is recognized after power-on.
353 +|=(% style="width: 107px;" %)SM 2022|(% style="width:294px" %)COM5 reception control on|(% style="width:114px" %)SD2022|(% style="width:561px" %)BD2 last error
354 +|=(% style="width: 107px;" %)SM2023|(% style="width:294px" %)COM5 accept control/receive prompt|(% style="width:114px" %)SD2023|(% style="width:561px" %)BD2 current error
355 +|=(% style="width: 107px;" %)SM2024|(% style="width:294px" %)COM5 communication complete flag|(% style="width:114px" %)SD2024|(% style="width:561px" %)BD2 error times
356 +|=(% style="width: 107px;" %)SM2025|(% style="width:294px" %)COM6 sending control on|(% style="width:114px" %)SD2025|(% style="width:561px" %)BD2 error communication port.
357 +|=(% style="width: 107px;" %)SM2026|(% style="width:294px" %)COM6 send control/send prompt|(% style="width:114px" %)SD2026|(% style="width:561px" %)BD2 communication timeout (1ms).
358 +|=(% style="width: 107px;" %)SM2027|(% style="width:294px" %)COM6 reception control on|(% style="width:114px" %) |(% style="width:561px" %)
359 +|=(% style="width: 107px;" %)SM2028|(% style="width:294px" %)COM6 accept control/receive prompt|(% style="width:114px" %) |(% style="width:561px" %)
360 +|=(% style="width: 107px;" %)SM2029|(% style="width:294px" %)COM6 communication complete flag|(% style="width:114px" %) |(% style="width:561px" %)
361 361  
362 362  = **8 Examples** =
363 363