Hi,
I'm told that lines like this in the log file come from Mach4
++++++++ Motor 0: Pick up the Backlash from an ALL STOP before going Positive ++++++++
Yes, that is Mach4 issuing the command to the ESS however you cannot turn it on or off at will. The ESS when it fires up
gains its firmware from the ESS plugin, and enacts the commands in the firmware for the remainder of the session thereafter. Backlash
compensation enabling, on which axis,and by what amount are programmed into the ESS in the firmware. The only way to change that
behavior would be to re-flash the ESS part way through a session, ie a power cycle of the ESS.
Check the Control plugin....it does not have any parameters for backlash. The ESS plugin does. The only programmatic control Mach has over
backlash is:
mcMotionGetBacklashAbs
C/C++ Syntax:
int mcMotionGetBacklashAbs(
MINSTANCE mInst,
int motorId,
double *pos);
LUA Syntax:
N/A
Description:
Retrieves the last planned backlast amount for the given motor.
and:
mcMotionGetBacklashInc
C/C++ Syntax:
int mcMotionGetBacklashInc(
MINSTANCE mInst,
int motorId,
double *pos);
LUA Syntax:
N/A
Description:
Retrieves the last planned backlast amount for the given motor.
and note NEITHER of these has any Lua syntax, they have C syntax only. It's clear therefore that while Mach issues, or rather
Machs trajectory planner,' issues the command to take up the lash it's the ESS that does it, and that is not scriptable behavior.
If you want to turn off backlash on a given axis then you must do so in the ESS plugin.
Craig