IOF_SER_DRIVE_Reset
The IOF_SER_DRIVE_Reset function block resets a Sercos drive. Drive errors are cleared.
Inputs
VAR_INPUT
sNetId : T_AmsNetId;
nPort : UINT;
bReset : BOOL;
tTimeout : TIME := DEFAULT_ADS_TIMEOUT;
END_VAR
Name | Type | Description |
---|---|---|
sNetId | T_AmsNetID | The network address of the TwinCAT computer on which the ADS command is to be executed can be specified here. For the local computer an empty string may be specified. |
nPort | UINT | The port number nPort is assigned by the TwinCAT system during the hardware configuration. |
bReset | BOOL | The function block is enabled by a positive edge at this input. |
tTimeout | TIME | Specifies the time-out period that must not be exceeded when the command is executed. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrId : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | When the function block is enabled, this output is set and remains set until a feedback is received. |
bError | BOOL | If an error should occur during the transfer of the command, then this output is set once the bBusy output was reset. |
nErrId | UDINT | Returns the ADS error number or the specific function block error number if the ERR output is set. |
Requirements
Development environment |
Target platform |
IO hardware |
PLC libraries to be integrated (category group) |
---|---|---|---|
TwinCAT v3.1.0 |
PC (x86) |
Sercans SCS-P ISA; Sercans SCS-P PCI; |
Tc2_IoFunctions (IO) |