Skip to main content

Brother Part Counters

Overview

Part counters play a few important roles when using Chatter:

  • Track parts output
  • Enable prediction of production completion time
  • Signal to Chatter that a machine is being set up

Part Counter Variables

Brother part counters are tied to the following variables:

Chatter DescriptionBrother DescriptionVariable #
Part CountWorkpiece counter 1 current#3802
Part GoalWorkpiece counter 1 completion (or target)#3803
Part Count IncrementWorkpiece counter 1 count (or Count)#3801

Part count is the current number of parts in your run. Part goal is the amount of parts you want to produce in the run. Part count increment is the number of parts produced in a single cycle.

For a complete listing of the Brother Part Counter variables, see the Brother Workpiece Counter Variable Reference

Accessing Part Counter Variables via the Control

To access your part counters on the Brother control, first navigate to the MONITR screen, and select Workpiece Counter from the menu. This will display a list of the part counters which can be edited.

Brother Monitor Menu

For purposes of production tracking, we are primarily concerned with Current Value and Target Value (a.k.a. Completion) for Counter 1. Set current value to the number of parts already produced (or 0 if starting a new run), and target value to the total number of parts to be produced.

Brother Part Counters

Incrementing the Part Counter Variables with M211

You can increment the part counter at the end of the program by enabling the M211 modal, which will tell the control to increment the part counter upon M99 or M02

%
O1000 (PART COUNTER EXAMPLE);

(YOUR PROGRAM);

M211 (ENABLE PART COUNTER INCREMENT);
#3801 = 1 (SET PART COUNT INCREMENT TO 1);

M30 (INCREMENT PART COUNTER);
%

For programs that produce multiple parts per cycle, you can change the 1 to the number of parts produced in the cycle.

Modifying your Post Processor

We recommend modifying your post processor to automatically increment the part counter at the end of each program to ensure consistent behavior across programs and avoid manual editing of G-code. In a typical post, you'll just add the following lines before the M30 or M99 command:

M211 (ENABLE PART COUNTER INCREMENT);
#3801 = 1 (SET PART COUNT INCREMENT TO 1);

M30 (INCREMENT PART COUNTER);

If your post processor allows for exposing custom settings to the post UI, consider adding an option for multiple part incrementing as shown in this blog post. The technique demonstrated in Fusion 360 is applicable to other CAM systems as well.

References from the Brother Docs

Below are the relevant sections from the Brother documentation that describe the workpiece counter variables and how to use them.

6.2.6.12 Workpiece Counter

The set values on the workpiece counter screen is read and written.

Variable #DescriptionCapabilities
#3801Workpiece counter 1 countRead/Write
#3802Workpiece counter 1 currentRead/Write
#3803Workpiece counter 1 completionRead/Write
#3804Workpiece counter 1 endingRead/Write
#3811Workpiece counter 2 countRead/Write
#3812Workpiece counter 2 currentRead/Write
#3813Workpiece counter 2 completionRead/Write
#3814Workpiece counter 2 endingRead/Write
#3821Workpiece counter 3 countRead/Write
#3822Workpiece counter 3 currentRead/Write
#3823Workpiece counter 3 completionRead/Write
#3824Workpiece counter 3 endingRead/Write
#3831Workpiece counter 4 countRead/Write
#3832Workpiece counter 4 currentRead/Write
#3833Workpiece counter 4 completionRead/Write
#3834Workpiece counter 4 endingRead/Write

12.3.4 Workpiece Counter Specification (M211 to M214)

If a code (M211 to M214) is specified to a workpiececounter (1 to 4) and commanded in memory operation, the commanded counter is counted up per counted amount when M02 or M30 is executed. The counter is cancelled when power is started, [RST] key is pushed, M02 or M30 is executed, operation is reset, or workpiece counter cancellation (M221-M224) is executed. Eg: If M211 and M212 are executed in an operation program when the counted number of the counter 1 is 1 and the counted number of the counter 2 is 2, the counter 1 counts up per 1 and the counter 2 counts up per 2 when M02 or M30 is executeded. (NOTE) M211 to M214 can be commanded in MDI operation.

12.3.5 Workpiece Counter Cancel (M221 to M224)

To cancel a workpiece counter (1-4), command an M code (M221-M224). Then, the commanded counter cancels counting when the M code (M221-M224) is executed in memory operation or MDI operation.