I'm not a PLC Expert but in one project we used the s7plc driver to
integrate S7-300 PLC in EPICS environment defining several sockets in
SEND/RECV operating mode.
On EPICS side, into the ioc startup script we defined the sockets
provided by the PLC:
# Configure S7plc EPICS Direct Driver
# Socket Communincation:
s7plcConfigure $(PLC_NAME1), $(PLC_IP_ADDR),2000,2032,2032,1,4000,1000
s7plcConfigure $(PLC_NAME2), $(PLC_IP_ADDR),2001,998,998,1,4000,1000
s7plcConfigure $(PLC_NAME3), $(PLC_IP_ADDR),2002,1388,1388,1,4000,1000
s7plcConfigure $(PLC_NAME4), $(PLC_IP_ADDR),2003,1592,1592,1,4000,1000
On PLC side, we defined the different sockets adding "New Connections"
on your CPU/CP, specifying the port desired for every entry. After that
we could define the Communication Blocks in our PLC software according
to our requests and pointing to the sockets previously implemented.
In our case we used a S7-300 PLC equipped with Communication Processor
(CP) card where we defined the TCP server with the 4 sockets.
If I don't make a mistake, we also checked the PLC cycle time was still
suitable for managing the data exchange among all the sockets we
Hope this helps.
on Oct 20, 2017 07:28 PM, Paul Sichta <email@example.com> wrote:
> OK, thanks I'll see what the PLC guys says about that. That was my
> thought, but then I didn't see how on the PLC side to direct the
> mechanism to an ipaddr:port .
> On Fri, Oct 20, 2017 at 1:24 PM, Zimoch Dirk (PSI)
> > Hello Paul,
> > If you cannot increase the block size (the driver has no limit on
> > this but
> > maybe the PLC) you can have two blocks on the PLC running on
> > different
> > ports. To the IOC this would look like two devices.
> > Dirk
> > Am 20.10.2017 um 19:18 schrieb Paul Sichta <firstname.lastname@example.org>:
> > I have been using s7plc driver for years with one SND and one RCV
> > block on
> > the PLC. Now, we need to send more data than can fit in the (max
> > size)
> > 240-byte block. How can I send more data to EPICS?
> > Regards,
> > -ps
~~ Maurizio Montis - Control System Engineer ~~
office: +39 0498068558
mobile: +39 3408428089
Istituto Nazionale di Fisica Nucleare - Laboratori Nazionali di Legnaro
V.le dell'Universita', 2
35020 LEGNARO (PD) - ITALY
- s7plc more than one 240-byte PDU Paul Sichta
- Re: s7plc more than one 240-byte PDU Zimoch Dirk (PSI)
- Re: s7plc more than one 240-byte PDU Paul Sichta
- Navigate by Date:
Re: Online EPICS training Mark Rivers
Re: Question about the module named caffi.ca Wang Xiaoqiang
- Navigate by Thread:
Re: s7plc more than one 240-byte PDU Zimoch Dirk (PSI)
Question about the module named caffi.ca lzf neu