Here is an example, same control, Format 2. Running 12 parts on a fixture, 6 on the front, 6 on the rear, with a coordinate rotation. The parts are 5 1/4" wide, spaced about 6 1/4" apart. A bit lengthy, but a good example. I have a pin that stays on the table for location so fixture offsets E10-E21 are permanently set in the offset table. See the attachment for the entire program with all the sub program calls.
Code:
%
N1O1
N2G0G90X3.7827Y-5.45Z3.5
N3G0Z2.1
N4G1Z1.3F90.
N5Y-4.4275
N6X3.6405Y-4.5228F135.5
N7X3.7827Y-4.4275
N8Y-3.2
N9Y-3.5783
-
-
-
N616G2X-0.3899Y-0.0348I0.018J0
N617G1X-0.3796Y0.0867
N618G2X-0.3783Y0.0919I0.0179J-0.0015
N619G0Z3.5
N620(TOOL 4)
N621(OPERATION 3)
N622M99
-
-
-
N1O5500
N2(42:27)
N3M6T1(3:47)
N4(ENGAGE TOGGLE CLAMPS)
N5(TAP DOWN)
N6E24
N7G0G90X-20.Y-8.S2500.2M3
N8G43H1Z2.1M9
N9G1Z2.01F50.4
N10Z1.985Y-5.3
N11X19.15F50.4
N12Y-2.935
N13X-20.
N14G0Z4.
N15Y8.
N16Z2.1
N17G1Z2.01F50.4
N18Z1.985Y5.3
N19X19.15F50.4
N20Y2.935
N21X-20.
N22G0Z2.1
N23M5M9
N24M0
N25G28G49Z0M9
N26M6T2(1:31)
N27(TT = 5:17)
N28E10
N29G0G90X3.1104Y-1.3933S4500M3
N30G43H2Z3.5M9
N31E10
N32M98P7
N33E11
N34M98P7
N35E12
N36M98P7
N37E13
N38M98P7
N39E14
N40M98P7
N41E15
N42M98P7
N43Z4.5
N44X0Y0E16
N45G68X0Y0R+180.
N46M98P7
N47E17
N48M98P7
N49E18
N50M98P7
N51E19
N52M98P7
N53E20
N54M98P7
N55E21
N56M98P7
N57G69
N58M5M9
N59G28G49Z0M9
N60X0Y8.5E24
N61M0
N62(1: ADD CLAMPS AT SLIGHT ANGLE, USE GREEN MARKS)
N63(2: REMOVE TOGGLE CLAMPS)
N64(3: ADD SHIMS, TAP THEM IN)
N65M6T3(11:47)
N66(TT = 17:06)
N67E10
N68G0G90X3.7827Y-5.45S3820M3
N69G43H3Z7.M9
N70M0
N71(*** ARE YOU SURE TOGGLES ARE OUT OF THE WAY ***)
N72(*** AND SHIMS ARE INSTALLED ***)
N73M3
N74Z3.5
N75E10
N76M98P1
N77E11
N78M98P1
N79E12
N80M98P1
N81E13
N82M98P1
N83E14
N84M98P1
N85E15
N86M98P1
N87Z4.5
N88X0Y0E16
N89G68X0Y0R+180.
N90X3.7827Y-5.45
N91Z3.5
N92M98P1
N93E17
N94M98P1
N95E18
N96M98P1
N97E19
N98M98P1
N99E20
N100M98P1
N101E21
N102M98P1
N103G69
N104M5M9
N105Z20.
N106X0Y8.5E24
N107M0