Galil Motion Control optcom Page 117
Optima DMC-1xxx and DMC-18x2 Command Reference
@IN[n]
i
106
@IN[n]
FUNCTION: Read digital input
DESCRIPTION:
Returns the value of the given digital input (either 0 or 1)
ARGUMENTS: @IN[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
@OUT
Read digital output
SB
Set digital output bit
CB
Clear digital output bit
OP Output
port
EXAMPLES:
:MG @IN[1] ;'print digital input 1
1.0000
:x = @IN[1] ;'assign digital input 1 to a variable