I'm a fanuc guy using a lot of custom macro. I got a new used okuma mill with osp 300 control and I'm trying to translate my fanuc macroB stuff to okuma. Here is a simple question : How to call a sub passing argument to local variable within the call. Example: in fanuc: G65 A100. B200. P9021 call the sub O9021 and in that sub local variable #1=100. and #2=200.

I can do the same on okuma using common variable
VC1=100.
VC2=200.
CALL O9021

But i want to use local variable not common and not define common variable before call but pass argument to local variable of the sub.
Also, some hint on the declaration of local variable will be very apreciate. It seem to be very more open than in fanuc