======MyCNC Rotation Widget====== {{youtube>NIEAbr3t-dE?large}} Below is the main screen of the rotation widget: {{:mycnc:rotation-widget-001-main-screen.png}} //**Basic rotation widget functions:**// {{:mycnc:rotation-widget-002-tooltips.png}} |{{:mycnc:rotation-widget-006-button-refresh.png}}|Refresh the nesting chart (visual display) |{{:mycnc:rotation-widget-003-button-apply.png}}|Apply the rotation / file transformation| |{{:mycnc:rotation-widget-007-button-x.png}}|Move along the X axis to the specified value|{{:mycnc:rotation-widget-005-button-load.png}}|Load the converted cutting map into the main program window| |{{:mycnc:rotation-widget-008-button-y.png}}|Move along the Y axis to the specified value|{{:mycnc:rotation-widget-004-button-enter-angle.png}}|Enter the rotation angle value| //**Transformation of the control program relative to the vertical axis.**// {{:mycnc:rotation-widget-009-vertical.png}} | {{ :mycnc:mirror-x.svg.png?nolink&60 |}} |Signifies that transformation about the vertical axis is OFF.|{{ :mycnc:mirror-x-checked.svg.png?nolink&60 |}}|Transformation about the vertical axis is ON| //**Transformation of the control program relative to the horizontal axis.**// {{:mycnc:rotation-widget-010-horizontal.png}} | {{ :mycnc:mirror-y.svg.png?nolink&60 |}} |Transformation about the horizontal axis is OFF.|{{ :mycnc:mirror-y-checked.svg.png?nolink&60 |}}|Transformation about the horizontal axis is ON| **//Transformation of the control program relative to the vertical and horizontal axes simultaneously.//** {{:mycnc:rotation-widget-011-xy.png}} |{{ :mycnc:mirror-xy.svg.png?nolink&60 |}} |Transformation about both the horizontal and the vertical axis is OFF|{{ :mycnc:mirror-xy-checked.svg.png?nolink&60 |}}|Transformation about both the horizontal and the vertical axis is ON.| **//Rotation of the nesting map to some specified angle//** {{:mycnc:rotation-widget-012-enter-angle-popup.png}} //To be able to use the corrected nesting chart, it is necessary to press the Send button in order to display the rotated file in the main program window. // {{:mycnc:rotation-widget-013-send.png}} **//Sheet position correction by using two points//** //Set the first point. Position the plasma torch at the lower left corner of the sheet. The point is recorded by pressing the "1" button. Movement is done with the arrows at the center of the screen.// {{:mycnc:rotation-widget-014.png}} //Next, move the plasma torch along the sheet (the longer the distance of this movement, the more accurate the correction will be). We bring the plasma torch to the edge of the sheet after moving along it. We assign this second point by pressing the "2" button. Movement is done with the arrows at the center of the screen.// {{:mycnc:rotation-widget-015.png}} //After clicking on the "Apply Correction" button, you must confirm the program conversion in the popup window (press the check mark icon).// {{:mycnc:rotation-widget-016.png}} //After the confirmation button has been pressed, the correction will be displayed on the screen. To use this corrected program file, it is now necessary to press the Send button to display the altered nesting map in the main program window.// {{:mycnc:rotation-widget-017.png}} **//Rotation of the nesting map to a previously used angle//** //Select the rotation angle from the list of previously used values// {{:mycnc:rotation-widget-018.png}} //Confirm or cancel the rotation// {{:mycnc:rotation-widget-019.png}} //After the changes have been applied, it is necessary to press the Send button to display the rotated nesting map in the main program window so that .// {{:mycnc:rotation-widget-020.png}} =====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: Angle =====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}}