TwinCAT library and programming

There are ready-to-use function blocks for the use of the PROFINET controller. The library contains further blocks for the EL6631-0010 PROFINET device terminal, but there are not part of that documentation.

Download: TwinCAT library and programming 1:

I&M functions

Block I&M functions

Meaning

Description

FB_PN_IM0_READ

Read the I&M function 0

Supplement and EL663x

FB_PN_IM1_READ

Read the I&M function 1

Supplement and EL663x

FB_PN_IM2_READ

Read the I&M function 2

Supplement and EL663x

FB_PN_IM3_READ

Read the I&M function 3

Supplement and EL663x

FB_PN_IM4_READ

Read the I&M function 4

Supplement and EL663x

FB_PN_IM1_WRITE

Write the I&M function 1

Supplement and EL663x

FB_PN_IM2_WRITE

Write the I&M function 2

Supplement and EL663x

FB_PN_IM3_WRITE

Write the I&M function 3

Supplement and EL663x

FB_PN_IM4_WRITE

Write the I&M function 4

Supplement and EL663x

Statistics and diagnostic information

Block I&M functions

Meaning

Description

FB_PN_GET_PORT_STATISTIC

Read the port statistics

Supplement and EL663x

FB_PN_READ_PORT_DIAG

Read the port diagnosis

Supplement and EL663x

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.11.0 R3

PC or CX (x86, ARM)

TcEtherCAT.lib
TcPlcIoFunction.lib
TcUtilities.lib
TcSystem.lib
TcBase.lib