Passing a mecunit as a parameter to a PROC

I have a few robots with external servos on the gripper and I want to write a PROC that all the robots can use, so I'm trying to pass a Mecunit as a parameter into a routine.  I'm presented with a fault saying that a mecunit is not a value.  Is there a clean way of passing a mecunit?