Dear Folks,
I’m trying to set up an Ethernet send/recv communcation between a S7 417-4 CPU with CP443-1 communication interface and
a simple EPICS IOC.
To create the S7 project I followed the instructions from this page http://epics.web.psi.ch/software/s7plc/ and also I use the device driver provided here.
My S7 project compiles and can be downloaded to the PLC and runs without any problem.
From the IOC side I did build the s7plc device driver and also configured it in the st.cmd script together with the substitution and template files.
After starting the IOC with softIoc st.cmd command, it’s being successfully initialized and is running, but then the communication timeout elapses and I get the following
error messages:
s7plcWaitForInput PLC1: select(5, 2.000000 sec) timed out
s7plcReceiveThread PLC1: read error after 0 of 4 bytes: Connection timed out
I’m sending a single float and also expecting another single float variable to recieve that’s why I set a length of 4 bytes.
Also when I ping the PLC from the EPICS VM’s terminal I got responses without any loss so the communication should be fine between the systems.
I guess I’m missing some settings or maybe I’m completely doing it wrong as I’m kinda new to EPICS so any help would be appreciated!
I can also send the S7 project and the EPICS IOC files for further troubleshooting if required!
Thank you all!
Yours truly,
____________________
Szabolcs Antal
Software Developer
evopro systems engineering Kft.
member of the evopro group
HU-4031, Debrecen, Köntösgátsor 1-3. Daniella Ipari Park
www.evopro-group.com
Mobile: +36 30 310 0367