Application for CNC control machine working with Mach4 software. The complete solution with support and future functionality.
Two Side Control
Notifications for M - command
-Tool path display tab
-Movement XYZA Axis (4 axis)
-Jog Rate Control
-Feed Rate Control.
-Spindle Speed Control
-Start-Pause-Stop Option.
-File g-code load from phone to PC.
-And 15 OEM Trigger options
App connection used
Download Lua File
PhoneConnection.lua and json.lua file in .rar archive1. Basic Configuration Mach4
1.1. Put downloaded PhoneConnection.lua File in Mach4 Pmc Folder (extract from .rar archive. to Mach4Hobby/Pmc folder). The second json.lua file put in Mach4Hobby/Modules folder.
1.2. In the Mach4, go to Menu->Operator->Edit screen (You Mach4 must be in Disabled mode). Select Your screen (the orginal mill profile is "wx4") and then in Properties section select from PMC Object the Lua File from point 1.
1.3. go one more time to the Menu->Operator->Edit screen. Then the Screen will be reload and the Lua file run
1.4. Run our CNC Control App. In the first Run the app Inform you that can't connect to the Mach4 server. Write the IP address of your PC machine (see the Mach4 message bar). If there is a host name and not an IP address (with a dot), in Windows 10, go to Settings-> Network & Internet-> Ethernet, then click on the connected Ethernet network and scroll down to the properties section. Then get the IPv4 right address..
1.5. If the connection is done, you will see the Main screen with your machine location and actual settings.
Important ! If Mach4 is in Disabled mode activ, then the App is also in Blocked mode - icon in menu Bar. For safety We agree only manual Enabled in Mach4 software (click Grean Enabled button ). After this, the control is available in our App.
You can Dispabled the machine from app (Click the Warning icon), but after this, restart must be manualy from Mach4.
If the g-code use standard M-command, then the App in the M06 and M30 command show You the notifications (only in PRO version). This functionality will be expanded in future updates
2. OEM Trigger Configuration for Mach4
2.1. Go to Mach4 software menu Diagnostic->Regfile - Newfangled Solutions and Go to iRegs0/PhoneApp/, then click Trigger that You want to use. Double click on it, put the Path for You script file (Placed in global Mach4 Folder).
Warning You can't write Lua code itself.
1. Run Mach4
2. Run CNC Control App and wait if You see all refrence on the phone and connection info in mach4