POUs of TcMc2Drive.lib
This library contains functions and functionblocks for SoE-drives. The access to the drive is done via MC2-Axis-Reference (AXIS_REF).
There are differences in the usage of the drive libs in combination with AX5000 and with Bosch Rexroth IndraDriveCS. See sample.
The TcMc2Drive.lib is a wrapper library around the FBs of the TcDrive.lib.
The TcMc2Drive.lib should be used, if the drive is used with the NC via FBs of the librariy TcMc2.lib. The FBs of the TcMc2Drive.lib use the information of the NC-Axis reference (AXIS_REF), that are also used by the FBs of the TcMc2.lib. The FBs determine via the Nc-AxisID of the AXIS_REF the access data to the drive (NetID, address and channel number). See samples of the FBs in the documentation of the TcMc2Drive.lib.
The function blocks FB_SoERead and FB_SoEWrite can be used to access any parameter in the drive, that have no special acces FB. |
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 | |
|
|
Read parameter | |
Write parameter | |
|
|
Read amplifier temperature (S-0-0384) | |
Read motor temperature (S-0-0383) | |
Read Dc-Bus-current (S-0-0381) | |
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 AX5000 |
Sample project and configuration for IndraDriveCS drive diagnose
See IndraDriveMinimalDiag_TcMc2Drive.zip, IndraDriveCs_MinimalDiag_TcMc2Drive.zip (TcMc2Drive.lib v0.0.25 or higher)
Requirements
Component | Version |
---|---|
TwinCAT on the development PC | 2.10 Build 1335 or higher |
TwinCAT on the Windows CE-Image | 2.10 Build 1333 or higher |
TwinCAT on the Windows XP-Image | 2.10 Build 1333 or higher |