Cn (configure limit switches), Configuration, M, n, o are integers – Yaskawa LEGEND-MC User Manual

Page 93: Cn0 contains the limit switch configuration, Cn1 contains the home switch configuration, Cn2 contains the latch input configuration

Advertising
background image

83

LEGEND-MC User’s Manual

CN (Configure Limit Switches)

[Configuration]

DESCRIPTION:

The CN command configures the polarity of the limit switches, the home switch and the latch input.

ARGUMENTS: CN m,n,o

where

m, n, o are integers .

*

NOTE: The latch function will occur within 25usec only when used in active low mode, the opto

isolator requires more time if active high.

USAGE:

OPERAND USAGE:

_CN0 Contains the limit switch configuration.

_CN1 Contains the home switch configuration.

_CN2 Contains the latch input configuration.

RELATED COMMANDS:

EXAMPLES:

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
upon initial HM execution. See HM and FE commands

-1

Home switch configured to drive motor in reverse direction when input is high
upon initial HM execution. See HM and FE commands

o =

1

*

Latch input is active high

-1

Latch input is active low

While Moving

Yes

Default Value

-1.-1.-1

In a Program

Yes

Default Format

2.0

Command Line

Yes

Can be Interrogated

No

Used as an Operand

Yes

Distributed Control

All Axes

"MT" Motor

Type

CN 1,1

Sets limit and home switches to active high

CN, -1

Sets input latch active low

MG_CN1

Returns Home input configuration

MG_CN2

Returns Latch input configuration

Advertising