Overview
The function blocks of the PLC library TcS5S7Comm.Lib can be used to realise data exchange between the local TwinCAT PLC and a S5/S7 controller via an Ethernet LAN adapter from IBHsoftec.
The adapter is not part of the Beckhoff product and must be bought from IBHsoftec.
System requirements:
Supported adapters:
- IBH Link S5++ adapter from IBHsoftec (from firmware version 1.39; the firmware version can be read via the configuration software provided).
Older adapters (without ++) are currently not supported. - IBH Link S7++ adapter from IBHsoftec (from firmware version NL50MPI V02.004 05.06.09; the firmware version can be read via the configuration software provided).
Programming environment:
- Windows NT (XP, XPe/WES, Vista, W7, WES7, ... );
- TwinCAT installation level: TwinCAT PLC or higher;
- TwinCAT system version 2.11.0 build >= 1537 or higher;
Target system type:
- Industrial PC or Embedded PC/CX (x86, ARM);
- Operating system:
- Windows NT (XP, XPe/WES, Vista, W7, WES7, ... );
- Windows CE (x86) (image v3.08c or higher);
- Windows CE (ARM) (image v2.22c or higher);
- TwinCAT PLC runtime system version 2.10.0 or higher;
Product components
- TcS5S7Comm.Lib (library with communication blocks to be integrated in your PLC application);
- TcpIp.Lib (implements basic TCP/IP and UDP functions);
- TcSocketHelper.Lib (implements auxiliary TCP/IP functions);
- TwinCAT TCP/IP connection server (TwinCAT server);
Installation
Windows NT (XP, XPe/WES, Vista, W7, WES7, ... )
The PLC libraries are copied into the ...\TwinCAT\PLC\Lib folder. The TwinCAT TCP/IP connection server is entered into the list of TwinCAT servers. The TCP/IP Connection Server is automatically started when TwinCAT is started and stopped when TwinCAT is stopped.
Windows CE
The following steps are required if you have obtained a product version for Windows CE:
- First install the product as usual on your programming PC. The PLC libraries are copied into the ...\TwinCAT\PLC\Lib folder.
- X86 CPU (CX1000, CX1020, ...):
- After the installation you will find a cabinet file for the CE runtime system in folder ...\TwinCAT\CE\TCPIP\Install\.
- Copy the file TcTCPIPSvrCe.I586.CAB into a folder in the CE runtime system.
- ARM CPU (CX9000, ...):
- After the installation you will find a cabinet file for the CE runtime system in folder ...\TwinCAT\CE\TCPIP\Install\.
- Copy the file TcTCPIPSvrCe.ARMV4I.CAB in a folder in the CE runtime system.
- In the CE system: Install the CE components (by double-clicking on the cabinet file).
- Reboot the CE device. The TwinCAT TCP/IP connection server is automatically started with the CE operating system.