Platform: CCW, 2080-LC50-24QBB, Using 2080-SERIALISOL card
Task: Writing Multiple Registers Using Modbus RTU (RS485)
Problem:
I am attempting to read and write to a Gefran GFX4 heat controller using Modbus RTU in CCW. I am currently able to read multiple holding registers without any problem. I have my addresses, and my slave ID correct, but I keep getting error 137 within the Modbus command (A non-standard reply). I had this issue when I did not have the read statement correctly set up and I can not figure out what I am doing wrong with the write statement. I am able to use CAS Modbus Scanner on my PC to write to the device and then read the changed address back to verify that it isn't a problem with the GFX4 controller.
Here are all of the parameters for how I set my Modbus write statement up:
LOCAL_CFG.Channel: 6 (slot 2 on the 850 for the serial card)
LOCAL_CFG.TriggerType: 1
LOCAL_CFG.Cmd: 16 (write multiple registers [4XXXX])
LOCAL_CFG.ElementCnt: 2
TARGET_CFG.Addr: 1040
TARGET_CFG.Node: 1
LOCAL_ADDR[1]: 100
LOCAL_ADDR[2]: 0
The rest of the array has all 0s.
The Gefran GFX4 unit works over standard Modbus, and I believe that the issue is something I am doing wrong with my Modbus messaging statement (or CCW in general). If I can use a different program to write successfully, then the problem has to be here. Any help on Modbus would be appreciated as well. Thank you.
Task: Writing Multiple Registers Using Modbus RTU (RS485)
Problem:
I am attempting to read and write to a Gefran GFX4 heat controller using Modbus RTU in CCW. I am currently able to read multiple holding registers without any problem. I have my addresses, and my slave ID correct, but I keep getting error 137 within the Modbus command (A non-standard reply). I had this issue when I did not have the read statement correctly set up and I can not figure out what I am doing wrong with the write statement. I am able to use CAS Modbus Scanner on my PC to write to the device and then read the changed address back to verify that it isn't a problem with the GFX4 controller.
Here are all of the parameters for how I set my Modbus write statement up:
LOCAL_CFG.Channel: 6 (slot 2 on the 850 for the serial card)
LOCAL_CFG.TriggerType: 1
LOCAL_CFG.Cmd: 16 (write multiple registers [4XXXX])
LOCAL_CFG.ElementCnt: 2
TARGET_CFG.Addr: 1040
TARGET_CFG.Node: 1
LOCAL_ADDR[1]: 100
LOCAL_ADDR[2]: 0
The rest of the array has all 0s.
The Gefran GFX4 unit works over standard Modbus, and I believe that the issue is something I am doing wrong with my Modbus messaging statement (or CCW in general). If I can use a different program to write successfully, then the problem has to be here. Any help on Modbus would be appreciated as well. Thank you.