Whenever the core executes a G30 in a G code file (not in MDI), it updates the part counter data.
The MachMotion screen has some DROs tied to these pieces of information. When the part counters change, the screen should automatically update. The screen also modifies part counter data when Reset is pressed (zeroing the part count if it exceeds the number of required parts).
G Code programs (as well as UserGUIModule functions) can modify the part counter data as well.
If there is an issue with the part counter delete the .dat and the parameters.ini file in the Mach4 profiles folder.
MachMotion 1.0.10253 (2018-05-15)
- Mach 4 version 220.127.116.1100 (2018-05-15; shipped with MachMotion 1.0.10253)
- Mach 4, version 18.104.22.16881 (2018-05-06; first revision with new behavior)
Part counter data is saved in system parameters and mirrored in the corresponding pound variables.
|6700||PV_PRTCNTL||Setting to 1 only allows M code specified by #6710 to increment part count. (default 0)|
|6710||PV_PRTINCM||Set to a M code that will incremnt part counts with or without M02 and M30 according to #6700.|
|6711||PV_PRTSA||R/W: Total number of parts. Will change/reflect #3901 as well. (cleared on file load).|
|6712||PV_PRTST||R/W: Total number of parts machined.|
|6713||PV_PRTSN||R/W: Number of required parts Will change/reflect #3902 as well.|
In order for Mach system parameters to really "exist" (i.e. can hold a value), the parameters file (
Mach4\Profiles\<profile>\parameters.ini) must exist and have entries in it for the parameters you want to exist. When one of these parameters changes, Mach internally updates the legacy pound variables (described below).
MachMotion 1.0.10151 (2018-05-10)
- Mach 4, version 22.214.171.12463 (2018-02-07)
In all versions of Mach 4 up to 126.96.36.19981, part counter data was accomplished using pound variables.
|3901||SV_PRTSA||R/W: Total number of parts machined for the file. (cleared on file load).|
|3902||SV_PRTSN||R/W: Number of required parts|
|3903||SV_PRTST||R/W: Total number of parts machined for the machine.|