PN_PortConfiguration (FB)

FUNCTION_BLOCK PN_PortConfiguration

This function block reads or updates the PROFINET Port configuration (PN-PC) of a single Port (Profinet Data-Record 0xB900).

InOut:

Scope

Name

Type

Comment

Input

xExecute

BOOL

Rising edge: Execute

IOLD_ID

DWORD

IO-Link Device Submodule ID

RD_WR

BOOL

Indicates whether the ProtConfig Data shall be read (RD = FALSE) or written (WR = TRUE)

Inout

PortConfig

PN_PortConfigurationRecord

PROFINET Port configuration (PN-PC)

Output

xDone

BOOL

Action successfully completed

xBusy

BOOL

Function block active

xError

BOOL

error occurred, function block aborts action

STATUS

DWORD

Bus error code