Set Inhibit MOMOSets the inhibit outputs using the Must On/Must Off protocol.
| Device Compatibility
|
Must Off (False)
is the bitmap of inhibit outputs to force off:
|
|||||||||||||||||
Must On (False)
is the bitmap of inhibit outputs to force on:
|
|||||||||||||||||
Board ID is a unique number assigned by Measurement & Automation Explorer (MAX) used to send and receive commands and data to or from a specific NI motion controller. | |||||||||||||||||
error in (no error) describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
|
|||||||||||||||||
Bd ID Out is provided for flow control. You can string together NI-Motion VIs by wiring the Bd ID Out terminal of one VI to the Board ID terminal of the next VI. | |||||||||||||||||
error out contains error information. If error in indicates an error, error out contains the same error information. Otherwise, it describes the error status that this VI produces.
|
Using This VI
The Set Inhibit MOMO VI controls disabled inhibit outputs being used as general-purpose outputs. You can directly set the inhibit outputs to a logical On or Off state.
Note This VI has no effect on enabled inhibit outputs. These outputs are directly controlled by their corresponding axes. |
Using the Must On/Must Off protocol allows you to set or reset individual inhibit outputs without affecting the other inhibit outputs. This gives you tri-state control over each output: On, Off, or Unchanged. A True in a location of the Must On bitmap turns the inhibit On, while a True in the corresponding location of the Must Off bitmap turns the inhibit Off. A False in either bitmap has no affect, so leaving both the Must On and Must Off at False is effectively a hold, and the state of the inhibit output is unchanged. If you set both the Must On and Must Off bits to True, it is interpreted as a Must On condition and the inhibit is turned On.
Must On –> Must Off |
1 | 0 |
1 | On | Off |
0 | On | Unchanged |
Note This VI sets the logical state of an inhibit output On or Off (True or False). The polarity of the inhibit outputs determine whether an On state is active high or active low. Refer to the Configure Inhibit Outputs VI for more information. |
The Set Inhibit MOMO VI allows individual control of the inhibit outputs without requiring a shadow value to remember the state of other outputs not being set or reset with the VI.
Example
To turn inhibit output 1 On, output 4 off, and leave the other inhibit outputs unchanged, call the Set Inhibit MOMO VI with the following parameters:
Must On corresponds to the following:
Must On 1 | Must On 2 | Must On 3 | Must On 4 | Must On 5 | Must On 6 | Must On 7 | Must On 8 |
True | False | False | False | False | False | False | False |
Must Off corresponds to the following:
Must On 1 | Must On 2 | Must On 3 | Must On 4 | Must On 5 | Must On 6 | Must On 7 | Must On 8 |
False | False | False | True | False | False | False | False |