DMC-100/1500 Command Reference
IN
•
71
DMC-1000
DMC-1500
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.
The IN command may only be used in thread
φ
.
ARGUMENTS:
IN "m",n
where
m is prompt message
n is the variable name
The limit on the number of characters for n and m are such that the total number of characters
per line are 40 characters or less.
USAGE: DEFAULTS:
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
EXAMPLES:
Operator specifies length of material to be cut in inches and speed in inches/sec (2 pitch lead
screw, 2000 counts/rev encoder).
#A Program
A
IN "Enter Speed(in/sec)",V1
Prompt operator for speed
IN "Enter Length(in)",V2
Prompt for length
V3=V1*4000
Convert units to counts/sec
V4=V2*4000
Convert units to counts
SP V3
Speed command
PR V4
Position command
BGX Begin
motion
AMX
Wait for motion complete
MG "MOVE DONE"
Print Message
EN End
Program