Samples

The communication parameters in the project examples must be set to match your configuration.

PLC project

Third-party system

Adapter

Communication parameters

Data area parameter values

Description

Sample01.zip

S5

Ethernet adapter: IBH Link S5++

  • Protocol: IBH S5 LAN Link protocol
  • Transport: TCP/IP
  • IP address: '172.16.11.16'
  • Port number: 2002
  • Data area: DB
  • Data block number: 16
  • Write 1 word (2 bytes) from the start address (word offset): 9
  • Read 10 words (20 bytes) from the start address (word offset): 0

The data in the data block are accessed word by word.

Sample02.zip

S7

Ethernet adapter: IBH Link S7++

  • Protocol: NetLink MPI protocol (NL-MPI)
  • Transport: TCP/IP
  • IP address: '172.16.11.17'
  • Port number: 1099
  • MPI address: 2
  • Data area: DB
  • Data block number: 1
  • Write 10 bytes from the start address (byte offset): 0
  • Read 10 bytes from the start address (byte offset): 0

The data in the data block are accessed byte by byte.

 

In addition to the selected data area the operating status of the controller is read (STOP, RUN, START...).