Response to Peter - Rsdoran
Peter.... No problem not resetting the counter.
Rsdoran.... Your assumption is correct.
The workpiece (75 mm, is the minimum length allowed, mechanically restricted, 4300 mm is the maximum length allowed) travels along a belt (PS) proximity switch, 0 mm, is activated, I know at this point I need to begin storing the pulses (which are 1 mm) from the dedicated HSC register (Reg 1).
My problem is that I need help help with the logic, math instructions, in my limited thinking?, I'm having problems thinking of how to pass the data to other registers. I need to be able to send another piece through the machine after function 6, the program as it is now will not allow the functions to accept another piece until the last function is completed.
Operations from the front of the workpiece,
0 mm (Function 2, Output 27 On)
445 mm (Function 1, Output 41 On)
485 mm (Function 1, Output 41 Off)
1325 mm (Function 2, Output 27 Off)
2050 mm (Function 3, Output 29 On)
2150 mm (Function 3, Output 30 On, Output 29 Off)
2450 mm (Function 4, Output 32 On)
2550 mm (Function 4, Output 33 On, Output 32 Off)
3150 mm (Function 5, Output 38 On)
Operations from the rear of the workpiece,
330 mm (Function 6, Output 40 On, Off by Limit Switch)
1150 mm (Function 7, Output 28 On, Off by Limit Switch)
2250 mm (Function 3, Output 30 Off)
2735 mm (Function 4, Output 33 Off)
3700 mm (Function 5, Output 38 Off)
Does this help explain my problem?