68 ● CN DMC-40x0 Command Reference
CN
FUNCTION: Configure
DESCRIPTION:
The CN command configures the polarity of the limit switches, home switches, latch inputs and
the selective abort function.
ARGUMENTS: CN m,n,o,p,q where
m,n,o are integers with values 1 or -1.
p is an integer, 0 or 1.
m = 1 Limit switches active high
-1 Limit switches active low
n = 1
Home switch configured to drive motor in
forward direction when input is high. See HM
and FE commands.
-1
Home switch configured to drive motor in
reverse direction when input is high. See HM
and FE commands
o = 1 Latch input is active high
-1 Latch input is active low
p = 1
Configures inputs 5,6,7,8,13,14,15,16 as
selective abort inputs for axes
A,B,C,D,E,F,G,and H respectively. Will also
trigger #POSERR automatic subroutine if
program is running.
0
Inputs 5,6,7,8,13,14,15,16 are configured as
general use inputs
q= 1
Abort input will not terminate program
execution
0 Abort input will terminate program execution
USAGE: DEFAULTS:
While Moving Yes Default Value -1,-1,-1,0,0
In a Program Yes Default Format 2.0
Command Line Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_CN0 Contains the limit switch configuration
_CN1 Contains the home switch configuration
_CN2 Contains the latch input configuration
_CN3 Contains the state of the selective abort function (1 enabled, 0 disabled)
_CN4 Contains whether the abort input will terminate the program
RELATED COMMANDS:
AL Arm latch
EXAMPLES:
CN 1,1 Sets limit and home switches to active high
CN,, -1 Sets input latch active low