Difference between revisions of "EtherCAT:EC SET MOTION OPMODE"

From SoftMC-Wiki
Jump to: navigation, search
Line 3: Line 3:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
This subroutine sets the axis and the drive into a desired motion operational mode.<br/>
 
This subroutine sets the axis and the drive into a desired motion operational mode.<br/>
In EtherCAT it is not enough to set the axis' opmode property. The drive needs to be dealt with as well.<br/>
+
In EtherCAT it is not enough to set the axis' opmode property. The drive must be dealt with as well.<br/>
 
According to the new opmode value object 0x6060 is written to the drive via PDO or SDO.<br/>
 
According to the new opmode value object 0x6060 is written to the drive via PDO or SDO.<br/>
 
Opmode set success is confirmed via object 0x6061.<br/>
 
Opmode set success is confirmed via object 0x6061.<br/>

Revision as of 11:44, 23 October 2014

This subroutine sets the axis and the drive into a desired motion operational mode.
In EtherCAT it is not enough to set the axis' opmode property. The drive must be dealt with as well.
According to the new opmode value object 0x6060 is written to the drive via PDO or SDO.
Opmode set success is confirmed via object 0x6061.

IMPORTANT.svgIMPORTANT
If the axis is set to Torque Mode, the property sumTorque is set to ON by default !

Input

Generic axis, new opmode.

Output

None

Return Value

Void

Declaration

Public Sub EC_SET_MOTION_OPMODE(Ax as generic axis, byval new_opmode as long)

Syntax

call EC_SET_MOTION_OPMODE(<Axis>, <new opmode>)

Examples

call EC_SET_MOTION_OPMODE(MLeader, VelocityMode)