Set Home Input Polarity

NI-Motion VI

Set Home Input Polarity

Sets the polarity of the home inputs as either active low/active open or active high/active closed.

Details

Device Compatibility

DeviceCompatibility
7330
Y
7340
Y
7344
Y
7350
Y
7390
Y
NI SoftMotion Controller for CANopen—Accelnet
N
NI SoftMotion Controller for CANopen—Xenus
N
Home Polarity is the bitmap of active polarities for the home inputs:
Axis 1—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 2—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 3—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 4—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 5—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 6—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 7—If TRUE, active low/active open (default). If FALSE, active high/active closed.
Axis 8—If TRUE, active low/active open (default). If FALSE, active high/active closed.
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:
status is TRUE if an error occurred before this VI was called, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.
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.
status is TRUE if an error occurred, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.

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