DP_SystemControl (PROFIBUS DP)
The following tables give information about the parameters of the function block interface.
Inputs
|
Input |
Data Type |
Description |
Variable Category |
|---|---|---|---|
|
i_xEnable |
BOOL |
Activates the function block processing. Cyclic data will be read/written to the hardware IO interface. |
Function block control |
|
i_xResetSystem |
BOOL |
If this input is set to TRUE, the system is reset. |
Cyclic data |
|
i_hwStartAddress |
Variant |
Must correspond to the first address of the cyclic input address range of the related avatar to be able to execute cyclic read communication |
Communication parameter |
In/Out
|
InOut |
Data Type |
Description |
Variable Category |
|---|---|---|---|
|
iq_hwQWAddress |
WORD |
Must correspond to the output address of the related avatar to be able to execute cyclic write communication |
Communication parameter |
Outputs
|
Output |
Data Type |
Description |
Variable Category |
|---|---|---|---|
|
q_xActive |
BOOL |
If this output is set to TRUE, the Avatar function block is enabled, or an acyclic request is busy. |
Function block status |
|
q_xError |
BOOL |
If this output is set to TRUE, a detected error occurred while executing the Avatar function block. For detailed information about the detected error, see the value of the Error ID. |
Function block status |
|
q_dwErrorID |
DWORD |
The Error ID shows detailed information about the detected error that occurred. Possible values are shown in the table below. |
Function block status |
|
q_xSystemOperat |
BOOL |
If this output is set to TRUE, the System avatar is in Operational mode. For detailed information on machine states, refer to the TeSys island – System, Installation, and Operation Guide document. |
Cyclic data |
|
q_xDegradedMode |
BOOL |
If this output is set to TRUE, the System avatar is in Degraded mode. |
Cyclic data |
|
q_xMinorEvent |
BOOL |
If this output is set to TRUE, the System avatar is in detected Minor Event mode. |
Cyclic data |
|
q_xPreOperat |
BOOL |
If this output is set to TRUE, the System avatar is in Preoperational mode. |
Cyclic data |
|
q_xForceMode |
BOOL |
If this output is set to TRUE, the System avatar is in Force mode. |
Cyclic data |
|
q_xTestMode |
BOOL |
If this output is set to TRUE, the System avatar is in Test mode. |
Cyclic data |
Status and error codes from ConstTeSysIsland
|
Member name |
Used by the function block |
|---|---|
|
Cdw_ErrNoMsg |
Yes |
|
Cdw_ErrInternal |
No |
|
Cdw_ErrInvalidCycInAddr |
Yes |
|
Cdw_ErrInvalidHwid |
No |
|
Cdw_ErrInvalidNumOfAvatars |
No |
|
Cdw_ErrReadCycIn |
Yes |
|
Cdw_ErrReadAcycData1 |
No |
|
Cdw_ErrReadAcycData2 |
No |
|
Cdw_ErrWriteAcycData |
No |
|
Cdw_StsReadAcycData1Compl |
No |
|
Cdw_StsReadAcycData2Compl |
No |
|
Cdw_StsWriteAcycDataCompl |
No |
