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
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 actionErrorCode
Service failed, or at least one of the requested options is not valid
Data
The received data