Hi all, I have a HACH sc200 controller with 2 sensors which I hope to connect an M221 plc to via Modbus RS485 in order to display the info on a HMI.
I am completely new to this and I am struggling to get my head around it.
I am struggling to understand how to set up the Read_Var function block to access the registers in the HACH.
For example, in the HACH manual some of the registers are:
Register# 40001, Data Type Integer, Length 1, Description Sensor meas.
Register# 40005, Data Type Float, Length 2, Description SensorTemp Meas.
Register# 40007, Data Type String, Length 6, Description Sensor Name.
How does this correspond to the options available in the Read_Var function block ?
The options are :
ObjType- 0 Read Multiple Words- Modbus 0x03
1 Read Multiple Bits - Modbus 0x02
2 Read Multiple Bits - Modbus 0x01
4 Read Multiple Words - Modbus 0x04
FirstObj -
Quantity -
IndexData-
I assume I need a Read_Var FB for each individual register ?
Any help to send me in the right direction would be greatly appreciated
John
I am completely new to this and I am struggling to get my head around it.
I am struggling to understand how to set up the Read_Var function block to access the registers in the HACH.
For example, in the HACH manual some of the registers are:
Register# 40001, Data Type Integer, Length 1, Description Sensor meas.
Register# 40005, Data Type Float, Length 2, Description SensorTemp Meas.
Register# 40007, Data Type String, Length 6, Description Sensor Name.
How does this correspond to the options available in the Read_Var function block ?
The options are :
ObjType- 0 Read Multiple Words- Modbus 0x03
1 Read Multiple Bits - Modbus 0x02
2 Read Multiple Bits - Modbus 0x01
4 Read Multiple Words - Modbus 0x04
FirstObj -
Quantity -
IndexData-
I assume I need a Read_Var FB for each individual register ?
Any help to send me in the right direction would be greatly appreciated
John