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>
1) Command "SetScale".
Format: SetScale <scale>
(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.
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.