DCP_Set (FB)

FUNCTION_BLOCK DCP_Set

The DCP Get service is used to write one or more attributes to a profinet device.

InOut:

Scope

Name

Type

Comment

Input

xExecute

BOOL

Rising edge: Start Operation DCP-Set

ControllerID

BYTE

The ID of the Controller/Supervisor

MAC

ARRAY [0..5] OF BYTE

The MAC address of the target Profinet device

Data

DCP_SetData

The data to be written

Output

xDone

BOOL

Action successfully completed

xBusy

BOOL

Function block active

xError

BOOL

TRUE: error occurred, function block aborts action

ErrorCode

DCP_Error

Service failed, or at least one of the requested options was not written

UpdatedOptions

DCP_SetOptions

Options that have been successfully written