108 ● IN DMC-1400 Series Command Reference
IN FUNCTION: Input Variable
DESCRIPTION:
The IN command allows a variable to be input from a keyboard. When the IN command is
executed in a program, the prompt message is displayed. The operator then enters the
variable value followed by a carriage return. The entered value is assigned to the
specified variable name.
The IN command holds up execution of following commands in a program until a carriage
return or semicolon is detected. If no value is given prior to a semicolon or carriage
return, the previous variable value is kept. Input Interrupts, Error Interrupts and Limit
Switch Interrupts will still be active.
ARGUMENTS: IN{P1 or P2} ”m” , n {So} where
"m" is the prompt message. May be letters, numbers, or symbols up to maximum line length
and must be placed in quotations. Make sure that maximum line length is not exceeded
(40 characters DMC-1410/1411/1412/1414, 80 characters DMC-1415/1416/1425).
n is the name of variable to hold value returned from input
{P1} specifies Port1, the MAIN serial port (optional-Main port by default) DMC-1412/1414
only.
{P2} specifies Port2, the AUX serial port (optional-Main port by default) DMC-1412/1414
only.
{So} specifies string data where o is the number of characters from 1 to 6
Note 1: The IN command can not be used over Ethernet. The IN command defaults to {P1}.
Note 2: Configure Port 2 communications w/ the CC command before using IN command w/
Port 2.
Note 3: The IN command can only be used in thread 0.
Note 4: Do not include a space between the comma at the end of the input message and the
variable name.
USAGE:
While Moving Yes Default Value
In a Program Yes Default Format Position Format
Command Line No
Can be Interrogated No
Used as an Operand No
Controller Usage ALL