10/25/2018 3:46 PM | |
Joined: 2/16/2017 Last visit: 3/5/2025 Posts: 21 Rating:
|
Hi thanks! I'm sending to my plc using Modbus Slave application. PLC has 3 buffers: dataPtr [0...11], Send (same data type) and Receive. When data is received, it will be moved to the receive buffer. I there can readout like this (from application, so RX = send by plc): 264616-Rx:01 03 00 00 00 0C 45 CF 264617-Tx:01 03 18 00 00 41 20 00 00 41 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 96 83 Databuffer gets the same data as send by Modbus Slave, so far so good... This works perfect, I see all values. But then, in stead of len 12 I changed len to 2, I still have right modbus data and communication continious without errors. 277470-Rx:01 03 00 00 00 02 C4 0B 277471-Tx:01 03 04 00 00 41 20 CB BB But as you can see in images, DB stays zero... Even after stop/start, full rebuild etc... when using len <> buffer width/positions, its filled with zeros in stead of data. I cant upload the code, because its not allowed. I can add parts of code here, is this helpfull for you too? Or what else do you need to be able to help? Thank you very much, AttachmentPLC modbus.zip (82 Downloads) |
Last edited by: PiaJohn at: 10/25/2018 3:48:05 PM |
|
Follow us on