beautypg.com

Ao (analog out) – Yaskawa LEGEND-MC User Manual

Page 73

background image

63

LEGEND-MC User’s Manual

AO (Analog Out)

[I/O]

DESCRIPTION:

The AO command sets the analog output voltage of the local analog output or ModBus devices connected
via Ethernet.

ARGUMENTS: AO m, n

where

m is either the local analog output voltage ranging from 9.9982 to -9.9982 or the I/O number calculated
using the following equations:

m = (SlaveAddress*1000) + (HandleNum*1000) + (Module-1)*4) + (Bitnum-1)

Slave Address is used when the ModBus device has slave devices connected to it and specified as
Addresses 0 to 225. Please note that the uses for ModBus are very rare and this number will usually be 0.

HandleNum is the handle specifier from A to P (1 - 16).

Module is the position of the module in the rack from 1 to 16.

BitNum is the I/O point in the module from 1 to 4.

n = the voltage which ranges from 9.9982 to –9.9982. If m is < 1000, n is omitted.

USAGE:

OPERAND USAGE: _AO returns the value of the local analog output in volts.

RELATED COMMANDS:

EXAMPLES:

While Moving

Yes

Minimum n Value

-9.9982

In a Program

Yes

Maximum n Value

9.9982

Command Line

Yes

Default Value

n/a

Can be Interrogated

No

Default Format

---

Used as Operand

Yes, local only

Distributed Control

Use SA

"SB" Set

Bit

"CB" Clear

Bit

"MB"

Modbus

AO -3.4

Sets local analog output to -3.4V

AO 6016, 8.2

Sets analog output on modbus device on
handle F to 8.2V

SAA=”AO”,2.7

Set analog output of slave on handle A to 2.7V

SAA=”MG”,”_AO”

Send command MG_AO to slave controller on
handle A

VAR1=_SAA

Store the returned value to VAR1