POUs of TcNcDrive.lib

This library contains functions and functionblocks for SoE-drives. The access to the drive is done via NC-Axis-Reference (NC_TO_PLC).

 

The TcNcDrive.lib contains Wrapper-FBs around the FBs of the TcDrive.lib.

There are differences in the usage of the Drive libs in combination with AX5000 and with Bosch Rexroth IndraDriveCS. See samples.

TcNcDrive.lib

The TcNcDrive.lib should be used, if the drive is used with the NC via FBs of the libraries TcNc.lib or TcMc.lib. The FBs of the TcNcDrive.lib use the information of the NC-Axis structure (NC_TO_PLC), that are also used by the FBs of the TcNc.lib or TcMc.lib. The FBs determine via the Nc-AxisID of the NC_TO_PLC structure the access data to the drive (NetID, address and channel number). See samples of the FBs in the documentation of the TcNcDrive.lib.

POUs of TcNcDrive.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.

Functions

Name

Description

F_GetVersionTcNcDrive

This function can be used to read the version information of the PLC library.

F_ConvWordToSTAX5000C1D

See documentation of TcDrive.lib

 

Converts the C1D-Word (S-0-0011) of an AX5000 to a structure ST_AX5000_C1D

 

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 AX5000.zip

Sample project and configuration for IndraDriveCS drive diagnose

See IndraDriveCS.zip

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