[wpv-page-title]

Is – Input setup command

The input setup (Is) command is used to set the functionality of all inputs, digital and analog. The parameters define the input point to be configured, the desired functionality, and the active response state high or low.

Digital inputs

Usage

When applied to the digital inputs 1 – 4 the input setup command is utilized thus:

Is=<input #>, <function>, <active>

Example:

Digital input functions

All digital input parameters are listed in the table below.

Inputs
Input Notes
1 May be programmed to any function, not available in NEMA 17 sizes
2 Maybe programmed to any function except capture
3 Maybe programmed to any function except capture
4 Maybe programmed to any function except capture
Functions
Function Description
0 General purpose input (default)
1 Homing function will function as specified by the homing command (HM).
2 Limit + will function as specified by the limit command (LM).
3 Limit —, will function as specified by the limit command (LM).
4 G0 input, will run program at address 1 upon activation.
5 Soft stop, stops motion with deceleration and halts program execution. If program is paused (PS), input is ignored.
6 Pause, pause/resume program with motion
7 Jog +, Will Jog motor in the positive direction at Max. Velocity (VM). The Jog Enable (JE) Flag must be set for this to function.
8 Jog —, Will Jog motor in thenegative direction at max. velocity (VM). The jog enable (JE) flag must be set for this to function.
11 Reset, When set as RESET input, then the action is equivalent to a ^C entered into a terminal. Note: If setting the input to sourcing, active true, ground the input first or a reset will occur.
12 Capture input witll operate with the Trip Capture (TC) trip to run a subroutine when active NOTE: THIS FUNCTION APPLIES TO INPUT 1 ONLY!
Active
State Description
0 Active when LOW
1 Active when HIGH (default)

Analog Input

Usage

When used to setup the analog input, the Is command is used in this manner:

Is=5, <mode>, <level>

Example:

Analog input details

Modes
Description
9 Voltage mode (default)
10 Current mode
Levels
Description
0 0 to +5V (voltage mode), 0 to 20 mA (current mode) (default)
1 0 to 10V (voltage mode), 4 to 20 mA (current mode)

Encoder inputs

Usage and details

The encoder index mark only has one settable parameter, which is the active response state.

Is=6,0,<active>

This can be active when LOW (0, default) or active when HIGH (1).

General input usage commands

Mnemonic Function Usage example Description
Individual input point control commands
I<input> Read an individual input state as 1 or 0 PR I4 Read the state of input 4
CL k3, I4=1 Call subroutine k3 when I/O 4 is ACTIVE (1)
Binary coded decimal (BCD) commands
IN Read all logic inputs as a group. PR IN Read inputs1 – 4 as a group (response will be 0 – 15 based on I1 being LSb and I4 being MSb)
Note on NEMA 17 models the response range will be 0-7.
Input filtering commands
D<input>=<0-255> Set the input filtering to time in milliseconds D1=150 Set the filter for input 1 to 150 milliseconds. Input must be stable for 150 msec before the change will be detected.
Input trip
TI=<input>, <subroutine> Sets the operation of an input trip TI=2, K3 Execute subroutine labeled K3 when input 2 is active.

Topics

Lexium MDrive Absolute Encoder setup notes

 

Changing the Lexium MDrive TCP/IP parameters

Before the Lexium MDrive can be installed into a network, the TCP/IP parameters, namely the IP address and the subnet mask must be changed to match the network settings.

Before you begin you should have completed the steps found in the following tutorial: Setting up your Ethernet adapter for MDrive Ethernet TCP/IP products

 

Setting up your Ethernet adapter for MDrive Ethernet TCP/IP products

Lexium MDrive Ethernet products ship from the factory with the TCP/IP parameters defaulted to the following settings:

  • IP Address: 192.168.33.1
  • Subnet mask: 255.255.0.0

These need to be changed to meet the configuration of the network that these will be installed into. This procedure covers setting up the adapter card in your PC to initially connect to your Lexium MDrive TCP/IP product.

 

Creating and exporting user-defined data types

This procedure provides an example of exporting user-defined data types using the Lexium MDrive
Ethernet Interface, version 1.2.1.1(part of Lexium MDrive Software Suite version 1.0.1.5) and Lexium
MDrive, part number LMDCE571.

 

Units “Stuck” in Party Mode or Checksum Mode

 

SEM MD-CC30x-001 driver installation

 

Transitioning to MDrivePlus Motion Control from Legacy MDrive

The MDrivePlus Motion Control products represent significant improvements over the legacy MDrives. Based on new patented technology, they feature a richer software command set, improved current control, and enhanced thermal dissipation.

Along with these improvements, there may be situations where the MDrivePlus are not “drop-in replacements” for existing legacy MDrives. Some customers may have software that will not run on MDrivePlus units without syntax modifications. There may be timing differences in some command executions that could affect system response. Additionally, it is recommended that customers with close tolerance or clearance situations study the mechanical drawings for the MDrivePlus units.

 

Detection and shielding of noise in stepper motor systems

“Noise” or “Interference” consists of unwanted electrical signals which superimposes on and masks the desired signal. Designing a control system is challenging enough, but designing a control system that has noise immunity adds a whole other dimension. Ideally, you want the noise-to-signal ratio to be as small as possible. Noise is always present in a system that involves high power and small signal circuitry. The key is to manage the noise so that it does not interfere with the performance of the system at hand.

 

MCode: Configuring Lexium MDrive Outputs

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.

 

MCode: Configuring Lexium MDrive Inputs

The input setup (Is) command is used to set the functionality of all inputs, digital and analog. The parameters define the input point to be configured, the desired functionality, and the active response state high or low.