Don't be too confused. System Parameters are different than System Variables. On my Fanuc 10TF, the System Variables for "clock" are #3001 and #3002, but System Parameters 0100-0106 are various timers.
First then, what control are you working with? Do you have a manual that describes the System Variables? My manual doesn't list the parts counter or run time variables, but I'm sure they're in there somewhere. Try calling your control's tech support to find the right ones. Once you've found them, you can read them into your macro variables like:
#500=#3001
and then perform calculations on those. Good luck! |