AMX NetLinx NXM Series User Manual

Page 41

Advertising
background image

NXC-VAI4 Analog Voltage Control Card

35

NetLinx Cardframe, Control Cards, and NetModules

NXC-VAI4 Send_Commands (Cont.)

Command

Description

GAS
Sets the slowdown distance
and slowdown speed.

When these variables have been set, and a GL command is in progress, the
speed output on Output <x> will be reduced to that specified when the position
as read on Output <x+4> is within the distance specified away from the target
position.
Syntax:

SEND_COMMAND <DEV>,'G<OUTPUT>A<DISTANCE>S<SPEED>'

Variables:

OUTPUT: Any Output '1', '2', '3', or '4'
DISTANCE: 0-127
SPEED: 0-127

Example:

SEND_COMMAND <DEV>,'G1A127S127'

Sets Output 1 slowdown distance to 127 (max) at full speed.

GD
Sets the maximum allowable
deviation of final servo
position when executing the
GL command.

The level of the specified input or output will only be reported when a change
greater than this deviation occurs.
Deviation 0 is most accurate, but can have some oscillation, so the default is 2,
i.e. the position as read at corresponding input I/O <x+4> can be within +/-2
from the specified position.
Syntax:

SEND_COMMAND <DEV>,'G<I/O>D<DEVIATION>'

Variables:

I/O: Any input or output ('1', '2', '3', '4', '5', '6', '7'. '8')
DEVIATION: Number between 0 and 127 (default = 2)

Example:

SEND_COMMAND <DEV>,'G1D10'

Sets I/O 1 servo output to 10.

GL
This command puts the card
in servo (positional) control
mode.

The range of the position is 0-255 (if AD MODE is set to '8'), or 0-65535
(if AD MODE is set to '10'). See AD MODE earlier in this section for details.
Position 0 is the low end of the potentiometer (lowest voltage); position 255
(or 65535) is the high end of the potentiometer (highest voltage) with 128 (or
32768) as the middle of the range.
Syntax:

SEND_COMMAND <DEV>,'G<OUTPUT>L<POSITION>'

Variables:

I/O: Any Output ('1', '2, '3', 4')
POSITION: Number between 0-255 or 0-65535 (depends on AD MODE)

Example (Assuming the current position is 0):

SEND_COMMAND <DEV>,'G1L255'

Sets Output 1 to "CURRENT OUTPUT 1 SPEED" (positive) and waits until
Input 1 reads within "OUTPUT 1 MAXIMUM DEVIATION" of 255 and then
resets the output to zero speed. The speed output may have a more complex
profile than as set by the "GAS" command.

Advertising