User Tools

Site Tools


mycnc:mycnc_rotate_widget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mycnc:mycnc_rotate_widget [2019/10/31 12:04] ivanmycnc:mycnc_rotate_widget [2022/02/08 16:36] (current) ivan
Line 1: Line 1:
 ======MyCNC Rotation Widget====== ======MyCNC Rotation Widget======
 +
 +{{youtube>NIEAbr3t-dE?large}}
  
 Below is the main screen of the rotation widget: Below is the main screen of the rotation widget:
Line 48: Line 50:
  
  
 +=====Rotation via global variables=====
 +
 +A video on program rotation via global variables #8195 and #8199 is available here: 
 +
 +{{youtube>Lh67Tr-uH8s?large}}
 +
 +The code in the video is the following: 
 +
 +<code XML>
 +<gitem where="xp" 
 + position="880;0"  width="40" height="40" action="cnc-gvariable-vset-8199/1" type="button"
 + image="alphabet/alphabet-1" image-hovered="alphabet/alphabet-1"  hotkey="Ctrl+Y"
 + />
 +
 +<gitem where="xp" 
 + position="880;40"  width="40" height="40" action="cnc-gvariable-vset-8199/2" type="button"
 + image="alphabet/alphabet-2" image-hovered="alphabet/alphabet-2"  hotkey="Alt+U"
 + />
 +
 +<gitem where="xp" 
 + position="960;0"  width="40" height="40" action="cnc-gvariable-vset-8195/0" type="button"
 + image="alphabet/alphabet-0" image-hovered="alphabet/alphabet-0" 
 + />
 +
 +<gitem where="xp" position="920;40" width="85" displayWidth="50" height="40" labelWidth="35" 
 + name="display-cnc-gvariable-8195"
 + bgColor="##b-display" fgColor="##f-display" 
 + labelFgColor="##f-label" labelFontSize="12" labelFontStyle="normal" 
 + fontSize="12" fontStyle="bold" format="%6.3f" type="display" >
 +            <message>Angle</message>
 +</gitem></code>
 +
 +
 +=====Preserving and resetting rotation on program reload=====
 +
 +myCNC allows to either keep the rotation angle/state when reloading the G-code program (this is the default behaviour), or to reset the rotation angle back to 0 once the reload button is pressed:
 +
 +{{:mycnc:rotation-wigdet-022-reload.png}} 
 +
 +To enable this reset, head into Settings > Config > Preferences > Common, and enable the "Clear rotation on NC-Refresh" option: 
 +
 +{{:mycnc:rotation-wigdet-021-pref-common.png}}
 +
 +With this option enabled, the reload will now reset the rotation angle back to zero. This is useful on systems which measure the current cutting material rotation every time after loading in a new G-code file. 
 +
 +=====Changing the rotate widget=====
 +
 +It is possible to change the orientation of the rotate widget. To do so, first change the orientation of the navigation arrows (in the bottom centre of the screen) by heading into your profile folder's ''x-rotate.xml'' file, and changing the table-rotation value from ''0'' to ''90'' or ''-90'' (-90 is shown in the example below): 
 +
 +{{:mycnc:rotation-widget-023-table-rotation.png}}
 +
 +The coordinate system orientation will look the following way depending on your choice: 
 +
 +{{:mycnc:rotation-widget-026-coordinate-systems.png}}
 +
 +Please note that the above table-rotation modification only applies to the arrow buttons. 
 +
 +Next, you can alter the orientation of the table image itself, by heading into myCNC Settings > Advanced > UI Settings, and selecting the necessary Table Image:
 +
 +{{:mycnc:rotation-widget-024-image.png}}
 +
 +The result in this example should look like this: 
 +
 +{{:mycnc:rotation-widget-025-result.png}}
  
  
mycnc/mycnc_rotate_widget.1572537876.txt.gz · Last modified: 2019/10/31 12:04 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki