BobB Posted May 20, 2016 Report Posted May 20, 2016 I currently use the PMCR function and the Protocol Macro file in the download section for reading from Modbus RTU devices - works very well. On a current job I have to write information to a Modbus RTU device and have used the same Protocol Macro file and the PMCR function but it does not appear to work properly. I have to write a 32 bit signed integer to the device and the PMCR function will not allow me to do this. Additionally I have to write to holding registers (40) and it appears to me that the Protocol Macro probably writes to read/write registers (30) but I am not sure. There appears to be no way to enter a 40 address into the equation. I have also had a look at the Modbus FBs from the French Omron website and he same sort of result. Has anyone been able to write a signed, 32 bit integer into hold registers in a Modbus RTU device with either of these methods or another method? I am currently reading 4 blocks from the Modbus RTU device without issue. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.