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.

POUs of TcMc2Drive.lib 1:

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

FB_SoEReset

Execute drive reset (S-0-0099)

FB_SoEWritePassword

Set drive password (S-0-0267)

 

 

FB_SoEReadDiagMessage

Read diagnostic message (S-0-0095)

FB_SoEReadDiagNumber

Read diagnostic number (S-0-0390)

FB_SoEReadDiagNumberList

Read diagnostic number list (up to 30 entries) (S-0-0375)

FB_SoEReadClassXDiag

Read class 1 diag (S-0-0011) ... class 3 diag (S-0-0013)

 

 

FB_SoEExecuteCommand

Execute command

FB_SoEWriteCommandControl

Set command control

FB_SoEReadCommandState

Read command state

 

 

FB_SoERead

Read parameter

FB_SoEWrite

Write parameter

 

 

FB_SoEReadAmplifierTemperature

Read amplifier temperature (S-0-0384)

FB_SoEReadMotorTemperature

Read motor temperature (S-0-0383)

FB_SoEReadDcBusCurrent

Read Dc-Bus-current (S-0-0381)

FB_SoEReadDcBusVoltage

Read Dc-Bus-Voltage (S-0-0380)

 

 

FB_SoEAX5000ReadActMainVoltage

Read main voltage (P-0-0200)

FB_SoEAX5000SetMotorCtrlWord

Set motor control word to override brake handling (P-0-0096)

FB_SoEAX5000FirmwareUpdate

Automatic firmware update of AX5000

Sample project and configuration for AX5000 drive diagnose

See AX5000MinimalDiag_TcMc2Drive.zip,

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