mycnc:mycnc_setup_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mycnc:mycnc_setup_examples [2020/05/22 14:04] – ivan | mycnc:mycnc_setup_examples [2024/01/23 16:26] – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MyCNC Setup Examples ==== | ==== MyCNC Setup Examples ==== | ||
+ | |||
+ | //**NOTE**: The myCNC team recommends utilizing the examples provided in this manual (as well as other manuals in this documentation) as a starting point for your machine setup. When possible (and applicable), | ||
=== How to set up Axes and Pulses per Unit === | === How to set up Axes and Pulses per Unit === | ||
Line 59: | Line 61: | ||
=== How to set up a Lathe/ | === How to set up a Lathe/ | ||
+ | |||
+ | [[quickstart: | ||
+ | |||
1. Select Basic profile as " | 1. Select Basic profile as " | ||
Line 243: | Line 248: | ||
if [ #5409 EQ 3 ] 300 | if [ #5409 EQ 3 ] 300 | ||
G10 L80 P7005 Q0 | G10 L80 P7005 Q0 | ||
+ | JUMP 1000 | ||
+ | |||
+ | N50 | ||
+ | G10 L80 P7005 Q1 | ||
+ | |||
+ | |||
+ | N300 | ||
+ | |||
+ | N1000 | ||
+ | G10 L81 P5400 Q5409 (set current tool number) | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | === How to set up a Multi-Tool Tangential Cutter === | ||
+ | |||
+ | FIXME //Section under construction (Jan 23 2024)// | ||
+ | |||
+ | For tangential cutting, a common scenario is for the system switch between two different motors for both the Z and the C axes (to switch between the tangential knife and the creasing wheel, for instance). Therefore, the system will have: | ||
+ | |||
+ | * X- and Y-axes motors | ||
+ | * Two different motors for the Z-axis (for knife and wheel up-down movement) | ||
+ | * Two different motors for the C-axis (for knife and wheel rotation) | ||
+ | |||
+ | **1.** How to switch between motors: | ||
+ | |||
+ | **Axis pulse-dir signal** can be connected/ | ||
+ | * 0x70 (112) - Motor output #0 | ||
+ | * 0x71 (113) - Motor output #1 | ||
+ | * 0x72 (114) - Motor output #2 | ||
+ | * 0x73 (115) - Motor output #3 | ||
+ | * 0x74 (116) - Motor output #4 | ||
+ | * 0x75 (117) - Motor output #5 | ||
+ | |||
+ | Low 4 bits (0..3) of the writing value represent Axis to connect - | ||
+ | * 0 - X | ||
+ | * 1 - Y | ||
+ | * 2 - Z | ||
+ | * 3 - A | ||
+ | * 4 - B | ||
+ | * 5 - C | ||
+ | * 15 - disconnected | ||
+ | |||
+ | pulse-dir Direction will be changed (**DIR** signal inverted) if Bit #4 is set. | ||
+ | |||
+ | This way we add PLC procedures M201 and M202 to switch Z axis between Motor outputs #3 and #4 | ||
+ | |||
+ | <code C M201.plc># | ||
+ | main() | ||
+ | { | ||
+ | parameter=15; | ||
+ | command=112+2; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | parameter=2+16; | ||
+ | command=112+3; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | | ||
+ | parameter=15; | ||
+ | command=112+4; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | parameter=5; | ||
+ | command=112+5; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <code C M202.plc># | ||
+ | main() | ||
+ | { | ||
+ | parameter=15; | ||
+ | command=112+3; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | parameter=2+16; | ||
+ | command=112+2; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | | ||
+ | parameter=15; | ||
+ | command=112+5; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | parameter=5; | ||
+ | command=112+4; | ||
+ | message=PLCCMD_SET_CNC_VAR; | ||
+ | timer=2; | ||
+ | |||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | **2.** FIXME - Homing procedures for axis Z & C. | ||
+ | |||
+ | **3.** M6 - Tool Change macro for multitool configuration. | ||
+ | |||
+ | <code C M6> | ||
+ | M600 P#5409 | ||
+ | |||
+ | if [ #5409 NE 1 ] 100 | ||
+ | M150 | ||
+ | GOTO 1000 | ||
+ | |||
+ | N100 | ||
+ | if [ #5409 NE 2 ] 200 | ||
+ | M201 | ||
+ | JUMP 1000 | ||
+ | |||
+ | N200 | ||
+ | if [ #5409 EQ 3 ] 300 | ||
+ | M202 | ||
JUMP 1000 | JUMP 1000 | ||
Line 395: | Line 523: | ||
+ | === Setting up a 2-motor X+Y X-Y 3D-printer=== | ||
+ | |||
+ | A 3D printer shown below is an example of a setup which utilized the X+Y and X-Y axis configuration in Settings -> Config -> Axes/ | ||
+ | |||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | === Setting up a waterjet system === | ||
+ | |||
+ | Certain CAM software packages can automatically insert necessary waterjet M-codes at some desired distance from the corners to properly accelerate and decelerate the machine. These M-codes are **M64/ | ||
+ | |||
+ | Some profiles within myCNC software (such as X1366P) contain a Software PLC procedure (WATERJET_SLOWSPEED) that works by monitoring the state of the output that the above codes toggle on and off: | ||
+ | |||
+ | <code C> main() | ||
+ | { | ||
+ | | ||
+ | do{ | ||
+ | a1=gvarget(7184)& | ||
+ | if (a0!=a1) | ||
+ | { | ||
+ | | ||
+ | if (a0==0) //normal speed | ||
+ | { | ||
+ | | ||
+ | }else //slow speed | ||
+ | { | ||
+ | gvarset(9379, | ||
+ | }; | ||
+ | }; | ||
+ | }while(1); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | The above software PLC monitors the state of the desired output and switches the state of the global variable #9379. Writing " | ||
+ | |||
+ | As mentioned before, this functionality requires a FlyCut license, which is available to purchase on request. | ||
+ | |||
+ | ===Connecting a servo drive to a myCNC controller=== | ||
+ | |||
+ | [[mycnc: | ||
mycnc/mycnc_setup_examples.txt · Last modified: 2024/01/30 12:09 by ivan