2-21
Part 2: Connections and Interface
configured by the second parameter of the I/O Setup (S1-4, S9-12) variable. The goal of this I/O configuration scheme is to
maximize compatibility between the MForce MicroDrive and standard sensors and switches.
MForce MicroDrive Digital Input Functions
The MForce MicroDrive inputs may be interfaced to a variety of sinking or sourcing devices. An input may be programmed to
be a general purpose user input, or to one of nine dedicated input functions. These may then be programmed to have an active
state of either HIGH or LOW.
The inputs are configured using the “S” Variable (See MCode Software Reference Manual for precise details on this command).
The command is entered into the IMS terminal or program file as S<IO point>=<IO Type>,<Active State><Sink/Source>.
Example:
S9=3,1,0
‘set IO point 9 to be a Limit- input, Active HIGH, Sourcing
S3=0,0,1
‘set IO Point 3 to be a General Purpose input, Active LOW,
‘Sinking
Input Functions (I/O Points 1-4, 9-12)
The following table lists the programmable input functions of the MForce.
Function
Description
Parameter
(S1-S4, S9-S12)
Active
Sink/
Source
General Purpose
General Purpose Input function
used to control program branches,
subroutine calls or BCD functions
when input bank is used as a
group
0
0/1
0/1
Home
Homing input. Will function as
specified by the Home (HM)
command.
1
0/1
0/1
Limit +
Positive Limit Input. Will function
as specified by the Limit (LM)
Command.
2
0/1
0/1
Limit –
Negative Limit Input. Will function
as specified by the Limit (LM)
Command.
3
0/1
0/1
G0
G0 Input. Will run program located
at address 1 on activation.
4
0/1
0/1
Soft Stop
Soft Stop input. Stops motion with
deceleration and stops program
execution.
5
0/1
0/1
Pause
Pause/Resume program with
motion.
6
0/1
0/1
Jog +
Will Jog motor in the positive
direction at Max. Velocity (VM).
The Jog Enable (JE) Flag must be
set for this to function.
7
0/1
0/1
Jog –
Will Jog motor in the negative
direction at Max. Velocity (VM).
The Jog Enable (JE) Flag must be
set for this to function.
8
0/1
0/1
Reset
When set as RESET input, then
the action is equivalent to a ^C
entered into a terminal.
11
0/1
0/1
Table 2.4.1: Programmable Input Functions