Configuring the Opta Ethernet Port

Hi, I am trying to connect the Opta to my local Ethernet network for the first time. I want to connect to it and set it up as a ModbusTCP server. I am not able to ping the IP address and there are no no link/activity lights on the Opta when connected to the switch, however there are activity lights on the switch port. Occasionally bot the link/activity lights on the Opta flash red.

I following the tutorial opta-modbus-tcp-plc-ide

I am fairly new at this - I got my Opta out of the box, wired it up to power and a couple Discrete IO contacts, got it connected to Arduino PLC IDE, made LEDs flash, and time of day logic to control a relay. Now I would like to set it up as a ModbusTCP server to communicate with a Pi ModbusTCP client. Uncommenting the sketch scripts and configuring the network IP information didn't seem to do anything. I have tried setting up the ethernet port connection as well without luck.


void setup()
{

	// Configure static IP address
	IPAddress ip(192, 168, 1, 170);
	IPAddress dns(8, 8, 8, 8);
	IPAddress gateway(192, 168, 1, 1);
	IPAddress subnet(255, 255, 255, 0);
	// If cable is not connected this will block the start of PLC with about 60s of timeout!
	Ethernet.begin(ip, dns, gateway, subnet);

}

void loop()
{

}

the example you provided is currently not working in PLC-IDE 1.0.6 as Modbus over TCP has been removed

1 Like

Thanks for the quick reply. Are you aware of any way to accomplish configuring the opta as a ModbusTCP server by programming the opta with the Arduino IDE instead?

Is there a plan to support ModbusTCP using the PLC IDE in the future?