0

I'm logged to an Eaton XC-303 PLC, via codesys 3.5. I can run a plc shell command isdhcpenabled 1, and get ETH1: DHCP disabled.

I would like to do it at runtime via the iec code.

So, is there a way to execute plc shell command via iec code?

The executecommand2 object only works for Linux command...

The SysSockGetNextAdapterInfo dosent recognize the DHCP server.

A common Linux command will not do the job, since the requested command is an internal to the Eaton PLC. so configuring the sysProc file will not do.

That is the reason why the executeCommand2 can not show the data.

I did find an Eaton library that should do the work (EA_Network 3.5.4.0), yet the existing function 'isDhcpEnabled' always returns false.

I will check it again today

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
coolWater
  • 1
  • 1

0 Answers0