Hello
I'm trying to connect my openplc running on a Raspberry PI3 to a Schneider Electric STBNIP2212 with one input card and one output card.
The STBNIP2212 is working, verified with some MODBUS tools.
The output of the STBNIP2212 is 1 word on position 0 and the input is 1 word located on position 5391.
With a configuration file only to write the outputs, the program works just fine but when I try to read the inputs I've this error:
Quote:
Starting OpenPLC Application...
OpenPLC Software running...
Device Slave1 is disconnected. Attempting to reconnect...
Setting main thread priority to RT
Locking main thread memory
Server: Listening on port 502
Server: waiting for new client...
Connected to MB device Slave1
Getting current time
Modbus Read Discrete Input Registers failed on MB device Slave1: Illegal data address
Device Slave1 is disconnected. Attempting to reconnect...
The configuration file is:
Num_Devices = "1"
# ------------
# DEVICE 0
# ------------
device0.name = "Slave1"
device0.protocol = "TCP"
device0.slave_id = "1"
device0.address = "192.168.113.175"
device0.IP_Port = "502"
device0.RTU_Baud_Rate = ""
device0.RTU_Parity = ""
device0.RTU_Data_Bits = ""
device0.RTU_Stop_Bits = ""
device0.Discrete_Inputs_Start = "0"
device0.Discrete_Inputs_Size = "0"
device0.Coils_Start = "0"
device0.Coils_Size = "0"
device0.Input_Registers_Start = "5391"
device0.Input_Registers_Size = "1"
device0.Holding_Registers_Start = "0"
device0.Holding_Registers_Size = "1"
Anyone have an ideia of what's wrong?
Thanks in advance!