The only reason I can think of wanting to read a Parameter is if you have a program for several machines of the same model and the parameter may be different between them.
Otherwise the parameter value never changes, so If it is for a dedicated machine, just record the value of the parameter and load in a variable.
AFAIK The only other Variables you can read in a macro is the system variables these can be always changing, as the machine runs.
What model Fanuc is this?
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.