Skip to content

Instantly share code, notes, and snippets.

@nikvoronin
Last active August 5, 2020 07:17
Show Gist options
  • Save nikvoronin/32b333c6072ecf8884eeac4987bb202e to your computer and use it in GitHub Desktop.
Save nikvoronin/32b333c6072ecf8884eeac4987bb202e to your computer and use it in GitHub Desktop.
PROGRAM MAIN
VAR
{attribute 'TcNcAxis' := 'Axis 1'}
ax1: AXIS_REF;
START: BOOL;
McWriteParameterPersistent: MC_WriteParameterPersistent;
END_VAR
McWriteParameterPersistent(
Axis := ax1,
Execute := START,
ParameterNumber := MC_AxisParameter.AxisEncoderScalingNumerator,
Value := 0.000123
);
START R= NOT McWriteParameterPersistent.Busy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment