DCP_Get (FB)

FUNCTION_BLOCK DCP_Get

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

The attribute to be read are specified in input parameter Options.

InOut:

Scope

Name

Type

Comment

Input

xExecute

BOOL

Rising edge: Start Operation DCP-Get

ControllerID

BYTE

The ID of the Controller/Supervisor

MAC

ARRAY [0..5] OF BYTE

The MAC address of the target Profinet device

Options

DCP_GetOptions

Specify DCP Options that shall be read.

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 is not valid

Data

DCP_DeviceData

The received data