User Functions - General Information
The device variants of the Lexium LXM62 Drive and Lexium LXM62 Linear Drive provide device-specific features. These features can be activated as user functions during Sercos phase up.
The selection of the device variant and the activation of the user functions is done on the Feature Configuration tab of the device editor of the Lexium LXM62 Drive / Lexium LXM62 Linear Drive object (as described in the chapter Selecting the Device Variant and User Functions). After selection, the related object parameter group appears on the Parameters tab of the device editor inside the parameter group UserFunctions and can be used in the application.
Device variants and supported user functions:
Device variant |
Supported user functions |
---|---|
Standard |
Provides standard Lexium LXM62 Drive / Lexium LXM62 Linear Drive functions. No additional user functions are supported. |
Standard Plus |
Supports the user functions for Lexium LXM62 Drive: oTorque Limitation oBrake Check (available via functions FC_BrakeCheckGetState and FC_BrakeCheckStart in the SystemInterface Library) For Lexium LXM62 Linear Drive there are no new user functions available. |
Advanced Plus |
Supports the user functions for Lexium LXM62 Drive: oTorque Limitation oBrake Check (available via functions FC_BrakeCheckGetState and FC_BrakeCheckStart in the SystemInterface Library) Supports the user function for Lexium LXM62 Linear Drive: |
Application defined |
Supports all user functions (see the section Using the Device Variant “Application defined”). |
Using the User Function Parameters in the Application
You can access a user function parameter in the application using the following syntax:
<Device>.<UserFunction>.<Parameter>
Example:
The following command sets the IncrementalEncoderOutputMode parameter of the Incremental Encoder Output user function for the device variant “Advanced Plus” to the value 1.
DRV_Lexium62_Advanced.IncrementalEncoderOutput.IncrementalEncoderOutputMode := 1;
NOTE: In case the user function is deactivated on the Feature Configuration tab of the device editor and the code is still added to the application, a compiler error is issued when compiling the project. The download of the application is prohibited.