Data Collector
Overview
The data collector plugin allows you to track the state of a signal between multiple runs of Mach4. For example, you can fault out after 1000 hours of the spindle running.
To reset from a fault, press the user button on the screen. That will make it start counting from zero again.
Setup
Follow these steps to set it up:
- Update Mach4 to 8640 or greater
- Copy the files from "SVN Codebase"\DataTracking\DataCollector\ to the control
- Copy these to C:\Mach4\Plugins
- DataCollector.sig
- DataCollector.m4pw
- Copy these to C:\Mach4\Plugins
3. Enable the plugin “DataCollector – MachMotion"
4. Restart Mach4
5. Go to Configure -> Plugins -> Data Collector
- Select Add
- Setup the configuration as follows
6. Press Save
7. Copy the files from "SVN Codebase"\DataTracking\ to the control
- Copy this to “C:\Mach4\Profiles\Router\Macros\Scripts”
- UserGUIModule.mcs
- Note: if you do it earlier you will get errors while loading the screen
8. Create a GMS message as follows
9. Set the conditions up as follows
10. Setup Aux 1 button to say "Reset\nGrease\nWarning" and set the output to any unused output as shown below:
Maintenance
To reset a value, you must zero out the "Value" in the DataCollector.ini in the C:/Mach4/Profiles/MACHINE PROFILE folder.
"Value=0"
Troubleshooting
If the Data Collector isn't working, confirm that there is a DataCollector.ini in the C:/Mach4/Profiles/MACHINE PROFILE folder.
Also confirm that the plugin shows up and has a green check box in Configure->Control->Plugins.
- DataCollector.sig
- DataCollector.m4pw
Appendix
This is a default DataCollector.ini Configuration. To enable this configuration on a machine, copy the file attached to this page to C:/Mach4/Profiles/MACHINEPROFILE .
[SpindleOnTracker]
Value=0.79666666666666663
Multiplier=0.00027777777777777778
[MachineEnabledTracker]
Value=177.42027777777778
Multiplier=0.00027777777777777778
[Output#2Tracker]
Value=0.77000000000000002
Multiplier=0.00027777777777777778
[Output#5Tracker]
Value=3.5480555555555555
Multiplier=0.00027777777777777778
[SpindleFwdTracker]
Value=0.7961111111111111
Multiplier=0.00027777777777777778
[E-StopTracker]
Value=109.33333333333333
Multiplier=0.016666666666666666
[DryRunTracker]
Value=0
Multiplier=0.00027777777777777778
[File:RunTracker]
Value=2.8480555555555553
Multiplier=0.00027777777777777778
[Motor0VelocityNonZero]
Value=0.99972222222222218
Multiplier=0.00027777777777777778
[Motor1VelocityNonZero]
Value=0.86833333333333329
Multiplier=0.00027777777777777778