We need to load the source data address with the appropriate label data whenever a box is detected in the sizing station.
For this example, we are going to assume that each box will be labeled with a serial number based on box size.
Small boxes will be labeled with a serial number that begins with the number one, and large boxes will be labeled with a serial number that begins with the number two.
We load a value of 10 thousand into N10:1 to use as a starting serial number for the small boxes. This value ensures the small box serial number will start with the number "one".
We put a One-Shot instruction before the Add instruction to ensure the serial number is incremented only once for each count-up operation.