PN_Control_Analog_I/O (PROFINET IO)
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_iAQ0 |
INT |
Value to be written to analog output 0. Unit and scaling depends on the analog output type configured.
|
Cyclic data |
i_hwStartAddress |
Variant |
Must correspond to the first address of the cyclic input submodule address range of the related avatar to be able to execute cyclic read 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_xReady |
BOOL |
Indicates TRUE if the function block is ready to receive an Execute command. |
Cyclic data |
q_iAI0 |
INT |
Indicates the value read from the analog input 0. Unit and scaling depends on the analog output type configured.
|
Cyclic data |
q_iAI1 |
INT |
Indicates the value read from the analog input 1. |
Cyclic data |
q_iHWOut |
INT |
Hardware address of the analog output. |
Communication parameter |
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 |