Set Limit Input PolaritySets the polarity of the forward and reverse limit inputs as either active low/active open or active high/active closed.
| Device Compatibility
|
Reverse Limit Polarity is the bitmap of active polarities for the reverse limit inputs:
|
|||||||||||||||||
Forward Limit Polarity is the bitmap of active polarities for the forward limit 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 Limit Input Polarity VI defines the active state for each forward and reverse limit 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 limit inputs to cause halt stops when the input becomes active with the Enable Limits VI. You also can use a limit input as a general-purpose input and read its status with the Read Limit Status VI.
Example
To set the active state of the forward and reverse limit inputs on axes 1, 2, 3, and 4 as active low and the forward and reverse limit inputs on the remaining axes as active high, call the Set Limit Input Polarity VI with the following parameters:
Forward Limit Polarity corresponds to the following.
Forward 1 | Forward 2 | Forward 3 | Forward 4 | Forward 5 | Forward 6 | Forward 7 | Forward 8 |
True | True | True | True | False | False | False | False |
Reverse Limit Polarity corresponds to the following.
Reverse 1 | Reverse 2 | Reverse 3 | Reverse 4 | Reverse 5 | Reverse 6 | Reverse 7 | Reverse 8 |
True | True | True | True | False | False | False | False |