Default Values for Parameters

Parameters may be assigned default values in the module declaration.

For example:

Motor(398, 765 { X-Y coordinates },

13 { Color }, 

MtrStat = 1 { Motor status }, 

MtrAmps  = 30 { Motor current });

 

If no value is provided for MtrStat and MtrAmps when the module is called, then these will be given the default values of 1 and 30, respectively.