Galil Motion Control optcom Page 159
Optima DMC-1xxx and DMC-18x2 Command Reference
@OUT[n]
i
148
@OUT[n]
FUNCTION: Read digital output
DESCRIPTION:
Returns the value of the given digital output (either 0 or 1)
ARGUMENTS: @OUT[n] where
n is an unsigned integer in the range 1 to 16
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
@AN
Read
analog
input
@IN
Read digital input
SB
Set digital output bit
CB
Clear digital output bit
OF
Set analog output offset
EXAMPLES:
:MG @OUT[1] ;'print digital output 1
1.0000
:x = @OUT[1] ;'assign digital output 1 to a variable