Changes for page LX5V-2RS485-BD

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

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

Summary

Details

Page properties
Content
... ... @@ -172,12 +172,12 @@
172 172  **Example:**
173 173  
174 174  (% style="text-align:center" %)
175 -[[image:image-20220913154229-5.png]]
175 +[[image:image-20220913154229-5.png||class="img-thumbnail"]]
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]]
180 +[[image:image-20220913154229-6.jpeg||class="img-thumbnail"]]
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]]
189 +[[image:image-20220913154229-7.png||class="img-thumbnail"]]
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.
... ... @@ -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]]
321 +[[image:image-20220913154229-8.png||class="img-thumbnail"]]
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]]
328 +[[image:image-20220913154229-9.png||class="img-thumbnail"]]
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