Cw (copyright), General, N is a number, either 0,1 or 2 – Yaskawa LEGEND-MC User Manual

Page 97: M is 0 or 1 (optional)

Advertising
background image

87

LEGEND-MC User’s Manual

CW (Copyright)

[General]

DESCRIPTION:

The CW command has a dual usage. The CW command will return the copyright information when the
argument, n is 0. Otherwise, the CW command is used as a communications enhancement. When CW = 1,
the communication enhancement sets the MSB of unsolicited, returned ASCII characters to 1. Unsolicited
ASCII characters are those characters which are returned from the controller without being directly queried
from an external source. This is the case when a program has a command that requires the controller to
return a value or string. The benefit of this is that two-way unsolicited messages can be filtered by an
external source to retrieve answers to strings that were sent by the external source.

ARGUMENTS: CW n,m

where

n is a number, either 0,1 or 2:

0

Causes the controller to return the copyright information

1

Causes the controller to set the MSB of unsolicited returned characters to 1

2

Causes the controller to not set the MSB of unsolicited characters.

“?”Returns the copyright information for the controller

m is 0 or 1 (optional)

0

Causes the controller to pause program execution when output FIFO is full until FIFO

no longer full.

1

Causes the controller to continue program execution when output FIFO is full - output
characters after FIFO is full will be lost.

USAGE:

OPERAND USAGE:

_CW contains the value of the data adjustment bit. 1 =on, 2 = off

*NOTE: The CW command can cause garbled characters to be returned by the controller. The
default state of the controller is to disable the CW command, however, the Yaskawa Y-Term soft-
ware may sometimes enable the CW command for internal usage. If the controller is reset while
the Yaskawa software is running, the CW command could be reset to the default value which
would create difficulty for the software. It may be necessary to re-enable the CW command. The
CW command status can be stored in EEPROM.

While Moving

Yes

*

Default Value

2

In a Program

Yes

Default Format

n/a

Command Line

Yes

Can be Interrogated

No

Used as an Operand

Yes

Distributed Control

No, Local

Advertising