Pointer assign error in PACModbusR91d.zip


#1

Hi,

I try to use your Modbus package to communicate with a device. I just want to read registers, so I use the 03 command. But I get a pointer assignment error in PACModbusMaster03_Read_Holding_Registers, bloc 3, line 11 (I post the error message at the end).
Does anybody manage to get it working? I used to work with the old Modbus package for a Modbus/TCP device. I wanted to use the serial one, but it is not available anymore…
Furthermore, I haven’t upgraded my licence to 9.3, is it possible to have a package for 9.0 PAC Control Pro?

best regards,

Pierre G.

Code Severity Description Chart Block Line Object Time Date

0 -29 Error Wrong object type. Most likely caused by moving a pointer table element to a pointer of the wrong type. Modbus_Master_M1 PACModbusMaster03_Read_Holding_Regi11 11 ntMB_Holding_Register_4X_IntM1 Table Numeric Integer 32 13:52:12 06/12/13
1 -29 Error Wrong object type. Most likely caused by moving a pointer table element to a pointer of the wrong type. Modbus_Master_M1 PACModbusMaster03_Read_Holding_Regi12 12 ftMB_Holding_Registers_4X_FloatM1 Table Numeric Float 13:52:12 06/12/13
2 -69 Error Invalid parameter (null pointer) passed to command. Modbus_Master_M1 PACModbusMaster03_Read_Holding_Regi14 14 (null) 13:52:12 06/12/13
3 -69 Error Invalid parameter (null pointer) passed to command. Modbus_Master_M1 PACModbusMaster03_Read_Holding_Regi15 15 (null) 13:52:12 06/12/13


#2

I reply to myself: thanks to the advice of the support (cheers Bryce) I updated my PAC SIM, and I don’t have the error anymore…

regards,

Pierre