Application Notes

MCode: Configuring Liberty MDrive Outputs

Home > Resources > Application Notes > MCode: Configuring Liberty MDrive Outputs

Description

The output setup (Os) command is used to set the functionality of the outputs. The parameters define the output point to be configured, the desired functionality, and the active control state high or low.

Applicable

  • Liberty* MDrive

Requirements

  1. +5 to +24 VDC I/O supply
  2. Output devices
  3. Cabling: 22 AWG shielded twisted pairs for I/O, Shielded twisted pair for power, AWG determined by length and current.

Details

Os – Output setup

The output setup (Os) command is used to set the functionality of the outputs. The parameters define the output point to be configured, the desired functionality, and the active control state high or low. When applied to outputs 1 – 2 the output setup command is utilized thus:

Os=<output #>, <function>, <active>

Example:

Output functions

All digital input parameters are listed in the table below.

Outputs
OutputNotes
1May be programmed to any function except trip and Encoder Channel B. Not available in NEMA 17 Sizes
2May be programmed to any function except trip and Encoder Channel A. Not available in NEMA 17 Sizes
3May be programmed to any function except as an Encoder output. External circuitry may be required if using to drive inductive loads.
Functions
FunctionDescription
16USER: General purpose user output. (Default)
17MOVING: output will be active while the axis is in motion.
18ERROR: will be active when a software error occurs.
19STALL: Indicates a stall has been detected [Closed loop models only]
20VCHANGE: velocity changing indicates the axis is accelerating or decelerating.
21LOCKED ROTOR: indicates the rotor is in a locked state [Closed loop models only].
23MOVINGPOS: indicates the axis is moving to a specified position.
24HMT ACTIVE: indicates when HMT is active [Closed loop models only].
25MAKE UP ACTIVE: indicates when HMT is making up steps [Closed loop models only].
26ENC A: Encoder channel A output applies to output 1 only. Os=1,26,<0/1> [Closed loop models only].
27ENC B: Encoder channel B output applies to output 2 only. Os=2,27,<0/1> [Closed loop models only].
28TRIP OUT, applies to output 3 only, active low only. Os=3,28,0
29ATTENTION indicates a status or statuses as configured by the AO variable.
Active
StateDescription
0Active when LOW (default)
1Active when HIGH

General output usage commands

An I/O instruction results in the change of parameters or the state of an input or output. The syntax for these commands are as follows: type the command then an equal sign, then the data. Example:

MnemonicFunctionUsage exampleDescription
Individual I/O point control commands
O<output>Set the logic state of an individual outputO3=1Set output 3 HIGH (1)
Binary coded decimal (BCD) commands
OT=<0-7>Set the logic state of all outputsOT=7Set outputs 1 – 3 HIGH
Note On NEMA17 models this command in not applicable

When it comes to your form, fit and function requirements, don’t settle. Get precisely what you need working with us. We know motion.

Contact us with any questions about how we can help you with your motion application or for assistance with your IMS products.

Browse our resource section and find the most useful tools and documents for all our products.