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:
  1. Update Mach4 to 8640 or greater
  2. Copy the files from "SVN Codebase"\DataTracking\DataCollector\ to the control
    1. Copy these to C:\Mach4\Plugins
      1. DataCollector.sig
      2. DataCollector.m4pw

Datalogging-plugin.png

3. Enable the plugin “DataCollector – MachMotion"

4. Restart Mach4

5. Go to Configure -> Plugins -> Data Collector

  1. Select Add
  2. Setup the configuration as follows

 Data-configuration.png

6. Press Save

7. Copy the files from "SVN Codebase"\DataTracking\ to the control

  1. Copy this to “C:\Mach4\Profiles\Router\Macros\Scripts”
    1. UserGUIModule.mcs
    2. Note: if you do it earlier you will get errors while loading the screen

8. Create a GMS message as follows

2017-11-20_1232.png

9. Set the conditions up as follows

2017-11-20_1233.png

10. Setup Aux 1 button to say "Reset\nGrease\nWarning" and set the output to any unused output as shown below:

2017-11-20_1240.png

 

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.

  1. DataCollector.sig
  2. DataCollector.m4pw

Datalogging-plugin.png

 

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