IOF_SER_DRIVE_Reset
The “IOF_SER_DRIVE_Reset” function block resets a Sercos drive. Drive errors are cleared.
VAR_INPUT
VAR_INPUT
sNetId : T_AmsNetId;
nPort : UINT;
bReset : BOOL;
tTimeout : TIME := DEFAULT_ADS_TIMEOUT;
END_VAR
sNetId: The network address of the TwinCAT computer on which the ADS command is to be executed can be entered here (type: T_AmsNetID). If it is to be run on the local computer, an empty string can be entered.
nPort: The port number nPort is assigned by the TwinCAT system during the hardware configuration.
bReset: the block is activated by a positive edge at this input.
tTimeout: States the length of the timeout that may not be exceeded during execution of the command.
VAR_OUTPUT
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrId : UDINT;
END_VAR
bBusy: When the function block is activated this output is set. It remains set until a feedback is received.
bError: If an error should occur during the transfer of the command, then this output is set once the bBusy output was reset.
nErrId: Supplies the ADS error number when 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) |