Well, I managed to solve it.
Needed to add this line to the /etc/hosts file of the VM:
192.168.1.108 PLC1
Where 192.168.1.108 is the ip address of the CP card and
PLC1 is the name of the s7plc driver configuration.
After that I could query the status of the PLC and also the real variable I wanted, but still for some reason
the PLC cannot get the real value that my IOC sends to it. So that one is still in progress.
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
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
Ez az e-mail (ideértve annak bármely mellékletét) bizalmas információkat tartalmaz és jogi védelem alatt áll. Az üzenet kizárólag a címzett(ek)nek
szól. Amennyiben Ön nem a küldemény címzettje, úgy a téves kézbesítést kérjük haladéktalanul jelezze e-mailben a feladónak és a teljes küldeményt helyreállíthatatlanul törölje. Amennyiben Ön nem az üzenet címzettje, kérjük ne készítsen másolatot az üzenetről,
ne továbbítsa, ne tárja fel és ne tegye hozzáférhetővé azt más személy(ek) számára, továbbá semmilyen célra ne használja fel a bizalmas információt: ezen magatartások bármelyike a levéltitok megsértésének minősül.
Information in this e-mail (including any attachment hereto) is confidential and may be legally privileged. It is intended solely for
the attention of the addressee(s). If you received this message in error, please immediately notify the sender by return e-mail and irrecoverably delete the whole message. If you received this e-mail in error, please do not copy it, do not forward, disclose
or make it available to other person(s), and do not use the confidential information for any purpose: any such action is regarded as a breach of confidence.