the program looks like thisClick image for larger version. 

Name:	image.jpg 
Views:	2 
Size:	42.6 KB 
ID:	258862

and according to the instructions of this macro i should only have to enter g111 in mdi mode (i have it registered at g119) and alarm goes on at line call OO10