I have a simple routine with one variable as follows…
PROC CPrimerCorner (num FRate)
SetGO goFlowRate, FRate;
ENDPROC
I want to use this procedure within a MoveLSync instruction and pass it a desired flow rate to write to the group output. I am doing it this way because the MoveLDO instruction wont allow a group output and I dont know of a MoveLGO instruction.
It seems as if the called procedure must not have any arguments, just tested it and got similar result as you did. Perhaps a workaround can be do assign the desired value to a global variable that is in the scope of the called procedure instead of passing it as a parameter?
I will log an improvement report about clarifying the RAPID manual. Thanks for your feedback.
you should better use a TriggL instruction instead of a MoveLsync instruction to set the group output, because if the value “Frate” is changed after executing the move instruction “MoveLPrime” and robot reaches the trigger position the wrong value will be set.