Hi,
We have a Mazak horizontal mill with a Matrix control and a 0 to 360 positioning table.
The table (B axis) will only move in the 0 to 360 range and won't accept minus figures.
It is not an full nc rotary table, it is more like an indexer. When rotating the table to square
up your fixture you can't put a shift in your work offset (54,55 etc) as you could in a full nc table.
To get over this I have modified our Edgecam post to output the code below.
At the top of the programme in#101 you enter the figure after squaring up the fixture.
The next line #102 is the B move figure output from Edgecam.
The next bit keeps #102 in the 0 to 360 range.
The only problem is the control won't read it, I think it may be the 'then' operand in
lines N13 & 15.
Any help would be appreciated.
O79000
N5 (B AXIS TEST PROG)
N7 #101=-12 (ENTER B AXIS ANGLE OFFSET)
N9 #102=0 (PROGRAMMED B MOVE OUTPUT FROM CAM SYSTEM, 0 TO 360)
N11 #102=#102+#101 (ADDS ANGLE OFFSET TO PROGRAMMED B MOVE)
N13 IF [#102 LT 0] THEN #102=#102+360
N15 IF [#102 GT 360] THEN #102=#102-360
N17 G0 B#102 (B AXIS MOVE)
N19 M30
%