EasyManuals Logo

Galil DMC-1510 User Manual

Galil DMC-1510
203 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #119 background imageLoading...
Page #119 background image
DMC-1500 Chapter 7 Application Programming 107
Input of Data (Numeric and String)
Input of Data
The command, IN, is used to prompt the user to input numeric or string data. Using the IN command,
the user may specify a message prompt by placing a message in quotations. When the controller
executes an IN command, the controller will wait for the input of data. The input data is assigned to
the specified variable or array element.
Example - Inputting Numeric Data
Instruction Interpretation
#A Program label
IN "Enter Length", LENX Use input command, IN, to query the user
EN End the program
In this example, the message “Enter Length” is displayed on the computer screen. The controller waits
for the operator to enter a value. The operator enters the numeric value which is assigned to the
variable, LENX.
Cut-to-Length Example
In this example, a length of material is to be advanced a specified distance. When the motion is
complete, a cutting head is activated to cut the material. The length is variable, and the operator is
prompted to input it in inches. Motion starts with a start button which is connected to input 1.
The load is coupled with a 2 pitch lead screw. A 2000 count/rev encoder is on the motor, resulting in
a resolution of 4000 counts/inch. The program below uses the variable LEN, to length. The IN
command is used to prompt the operator to enter the length, and the entered value is assigned to the
variable LEN.
Instruction Interpretation
#BEGIN LABEL
AC 800000 Acceleration
DC 800000 Deceleration
SP 5000 Speed
LEN=3.4 Initial length in inches
#CUT Cut routine
AI1 Wait for start signal
IN "enter Length(IN)",
LEN
Prompt operator for length in inches
PR LEN *4000 Specify position in counts
BGX Begin motion to move material
AMX Wait for motion done
SB1 Set output to cut
WT100;CB1 Wait 100 msec, then turn off cutter
JP #CUT Repeat process
EN End program

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Galil DMC-1510 and is the answer not in the manual?

Galil DMC-1510 Specifications

General IconGeneral
BrandGalil
ModelDMC-1510
CategoryController
LanguageEnglish

Related product manuals