Please help with this macro program
the machine is Stama 320 with Fanuc Om controlling system .
it's been equipped with 4th and 5th axes .
the manual says the 5th axis should be controlled by parametric programming .it says you should write the program like :
---------------------------
G66 p9050 ;(program number for macro calling 5th axis )
I45 ;( the angle of rotation )
g67 ;
---------------------------
and here is the program 9050 .
---------------------------
%
:9050
(4 U.5 ACHSE DREHEN)
G65H82P7Q#8104R1
G65H01P#104Q#8004
G65H81P73Q#8105R1
G65H80P8
N7G65H82P73Q#8105R1
G65H01P#104Q#8005
N8G65H86P1Q#104R0
G65H01P#1115Q0
G65H80P2
N1G65H01P#1115Q1
N2G65H81P3Q#4003R90
G65H01P#1114Q0
G65H80P4
N3G65H01P#1114Q1
N4G65H01P#1133Q#104
G65H81P100Q#8104R1
G65H81P101Q#8105R1
N73G65H99P73
N101
M75
N10G65H80P99
N100
/M76
N99M99
%
----------------------------
(when block skip is on) it runs the program and subprogram but there is no movement in 5th axis .
(when block skip is off) the machine stops (while the BUF key is on) in ( /M76) and again no movement in 5th axis .
do you think there may be problem with program or else ?
i was wondering if someone could help .
------------------------------
Ps : I'm not familiar with macro programming .