Frequently Asked Question

How to change "scale" of g-code program through Server API?

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" -

ProgramFileOpen /sk/DNC/

1) Command "SetScale".

Format: SetScale <scale>

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=1}

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.



SetScale++ 2.75

SetRotationAngle++ 1.77