Management of direct mode (DIRDRIVE)
(Original Document)
At a Glance
DIRDRIVE mode is used to simulate the axes control without operating the functional part; all the returned information is calculated.
The behavior of the axis can therefore be analyzed independently from the functional part.
Selecting direct mode
Direct mode is selected by assigning value 1 to the word MODE_SEL (%QWr.m.c.0.).
On a request to change mode, the moving part is stopped, then the mode is changed. When the command for switching into direct mode has been recognized, the bit IN_DIRDR (%Ir.m.c.17) is set to 1.
Execution of commands in direct mode
Direct mode includes the movement command DIRDRV (%Qr.m.c.0).
The speed setpoint is transmitted periodically by the variable PARAM (%QDr.m.c.2). The sign of this variable gives the movement direction.
The speed of the translator is controlled between SS_FREQ and FMAX. These values are defined in the configuration screen (FMAX) and in the adjustment screen (SS_FREQ).
The bit ST_DIRDR (%Ir.m.c.20) indicates that a movement is in progress in DIRDRIVE mode.
Speed law
When the setpoint is changed, the output achieves the new setpoint according to a trapezoid speed law, respecting the parameterized acceleration .
Execution of the DIRDRIVE command
The general conditions for execution of the DIRDRIVE command are as follows:
Stopping a movement
A movement may be stopped by:
NOTE: Software limit monitoring remains active is the axis is referenced. To disable this monitoring, cause the axis reference to be lost by temporarily diasabling ENABLE (%Qr.m.c.10) to 0 and confirming by setting ENABLE to 1 or by pressing the confirmation button.