POUs of the TcDrive.lib
This library contains functions and functionblocks for SoE-drives. The access to the drive is done via Drive-Reference.
There are differences in the usage of the drive libs in combination with AX5000 and Bosch Rexroth IndraDriveCS. See sample.
The TcDrive.lib should be used, if the drive is completely used by the PLC (no NC). The FBs use a drive reference to communicate with the drive. See ST_DriveRef. The FBs use internally the ST_DriveRef with the NetID as a string. In order to link a NetID to the drive there is additionally the ST_PlcDriveRef with NetID as a ByteArray. See samples in the documentation of the FBs.
![]() | Parameter access The function blocks FB_SoERead_ByDriveRef and FB_SoEWrite_ByDriveRef can be used to access any parameter in the drive, that have no special acces FB. |
![]() | Different implmentation The function blocks FB_SoERead_ByDriveRef and FB_SoEWrite_ByDriveRef are implemented in the TcEtherCAT.lib in the folder SoE-Interface, since the TcEtherCAT.lib contains the general FBs for CoE and FoE. |
Functions
Name | Description |
---|---|
This function can be used to read the version information of the PLC library. | |
Converts the C1D-Word (S-0-0011) of an AX5000 to a structure | |
Converts the drive status word (S-0-0135) of an AX5000 to a structure | |
Converts the C1D-Word (S-0-0011) of an IndraDrive Cs to a structure | |
Converts the drive status word (S-0-0135) of an IndraDrive Cs to a structure |
Functionblocks
Name | Description |
---|---|
Execute drive reset (S-0-0099) | |
Set drive password (S-0-0267) | |
|
|
Read diagnostic message (S-0-0095) | |
Read diagnostic number (S-0-0390) | |
Read diagnostic number list (up to 30 entries) (S-0-0375) | |
Read class 1 diag (S-0-0011) ... class 3 diag (S-0-0013) | |
|
|
Execute command | |
Set command control | |
Read command state | |
|
|
FB_SoERead_ByDriveRef | Read drive parameter, see TcEtherCAT.lib (Folder SoE Interface) |
FB_SoEWrite_ByDriveRef | Write drive parameter, see TcEtherCAT.lib (Folder SoE Interface) |
|
|
FB_SoEReadAmplifierTemperature_ByDriveRef | Read amplifier temperature (S-0-0384) |
Read motor temperature (S-0-0383) | |
Read Dc-Bus-current (S-0-0381) | |
FB_SoEReadDcBusVoltage_ByDriveRef | Read Dc-Bus-Voltage (S-0-0380) |
|
|
Read main voltage (P-0-0200) | |
Set motor control word to override brake handling (P-0-0096) | |
Automatic firmware update of the AX5000 |
Sample project and configuration for IndraDrive Cs drive diagnose
See IndraDriveMinimalDiag_TcDrive.zip, (TcDrive.lib v0.0.25 or higher)
Requirements
Component | Version |
---|---|
TwinCAT on the development PC | 2.10 Build 1335 or higher (IndraDrive Cs: 2.10 Build >1340, 2.11Build > 1541) |
TwinCAT on the Windows CE-Image | 2.10 Build 1333 or higher (IndraDrive Cs: 2.10 Build >1340, 2.11Build > 1541) |
TwinCAT on the Windows XP-Image | 2.10 Build 1333 or higher (IndraDrive Cs: 2.10 Build >1340, 2.11Build > 1541) |