SCIT_ConfDevErrAll
The SCIT_ConfDevErrAll function block acknowledges periphery errors of all existing devices simultaneously. The Control_Device_Function of the Interbus card is called internally. The interbus card is addressed with the NETID and the PORT.
Inputs
VAR_INPUT
NETID : T_AmsNetId;
PORT : T_AmsPort;
WRTRD : BOOL;
TMOUT : TIME := DEFAULT_ADS_TIMEOUT;
END_VAR
Name | Type | Description |
---|---|---|
NETID | T_AmsNetId | The network address of the computer in which the card is installed can be entered here. If the card is on the same system, an empty string can also be specified. |
PORT | T_AmsPort | Contains the ADS port number of the card assigned by the TwinCAT system. |
WRTRD | BOOL | The function block is enabled by a positive edge at this value. |
TMOUT | TIME | Maximum time allowed for the execution of the command. |
Outputs
VAR_INPUT
BUSY : BOOL;
ERR : BOOL;
ERRID : UDINT;
RESULT : WORD;
ADDERRINFO : WORD;
END_VAR
Name | Type | Description |
---|---|---|
BUSY | BOOL | When the function block is enabled, this output is set and remains set until a feedback is received. |
ERR | BOOL | If an error should occur during the transfer of the command, then this output is set once the BUSY output was reset. |
ERRID | UDINT | Returns the ADS error number when the ERR output is set. |
RESULT | WORD | Returns the result from the card (assuming an error-free ADS transport (ERR = FALSE)). RESULT = 0 identifies successful execution of the command. A value other than 0 contains the error number from the Phoenix card. |
ADDERRORINFO | WORD | Contains additional error information in the event of a negative feedback from the card (see Phoenix card command description). |
Requirements
Development environment |
Target platform |
IO Hardware |
PLC libraries to be integrated (category group) |
---|---|---|---|
TwinCAT v3.1.0 |
None. This functionality is not supported by TwinCAT 3 at present! |
Phoenix: IBS SC/I-T; IBS SC/RI/RT-LK |
Tc2_IoFunctions (IO) |