Set Home Input PolaritySets the polarity of the home inputs as either active low/active open or active high/active closed.
| Device Compatibility
|
Home Polarity is the bitmap of active polarities for the home inputs:
|
|||||||||||||||||
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 Home Input Polarity VI defines the active state for each home input as either active low/active open or active high/active closed.
When configured as active low, the input is active when there is a low signal on the input pin. Conversely, active high means that the input is active when there is a high signal on the input pin.
Configuring an active state of active open or active closed does not correspond to the level of the signal on the input pin. Instead, an active open state means that the input is active when current is not flowing through the optocoupled input. Conversely, an active closed state means that the input is active when current is flowing through the optocoupled input.
You can enable home inputs to cause halt stops when the input becomes active with the Enable Home Inputs VI. You also can use a home input as a general-purpose input and read its status with the Read Home Input Status VI.
To find the home input reference on a system, use Find Reference and configure the search type as "home".
Example
To set the active state of the home inputs on axes 1, 3 and 4 as active low and the rest of the home inputs as active high, call the Set Home Input Polarity VI with Home Polarity as follows.
Home 1 | Home 2 | Home 3 | Home 4 | Home 5 | Home 6 | Home 7 | Home 8 |
True | False | True | True | False | False | False | False |