How to change Scale and Rotation Angle.

There are 2 version of command "SetScale" in the Server API to change scale of given g-code file.

For both commands g-code program should be loaded to myCNC by runnig command "ProgramFileOpen"
Format: ProgramFileOpen <filename>
Example:

ProgramFileOpen /sk/DNC/3d3.nc

1) Command "SetScale".

Format: SetScale <scale>
Example:

SetScale 3.5

(myCNC software will open g-code file defined by command "ProgramFileOpen", scale it to factor 3.5 and load result to myCNC memory).

If "SetScale" command used several times, previous "scale" ratios are ignored. myCNC software uses original g-code file and the last "scale" ratio to generate scaled program.

{avsplayer videoid=3}

 

2)Command "SetScale++".

For some applications "scale" ratio should be used together with g-codes rotation. In this case commands "SetScale++" and "SetRotationAngle++" should be used.

When running "SetScale++" command "scale" ratio is latched to 'Scale&Rotation" structure. If running "SetRotationAngle++" myCNC software loads g-code file, given with "ProgramFileOpen" commands and perform rotation and scale with given Angle and Scale.

Example:

SetScale++ 2.75
SetRotationAngle++ 1.77

{avsplayer videoid=1}