Hi!

What is the easiest way to program variable macros to subprogram in Fanuc18i?

I want to do subprogram what fill e.g variable macro #520 to number 100.

So can/how i do subprogram what i run and then macro is filled?

Also how i can program PMC DGN bit?

I want to program DGN number e.g X0050 bit 2 to 0 or 1.

Can i do M or G code of that?

Thank you!