P R O G R A M M I N G E X A M P L E S
CUT-TO-LENGTH
Programming Examples
115
A plastic strip is pulled from a feedroll and must be cut at a
specified length. Also, the number of pieces must be pro-
grammable. The operation is done by advancing the web to a
specified distance and activating the cutter.
The operation must be stand-alone. The operator has a
hand-held terminal for selecting the length and number of
cuts.
Requirements
Range of cut: 6" to 36"
System resolution: 0.0002" or 5000 counts per inch
Slew speed: 12 inches/sec
Acceleration/deceleration: 200 in/s
2
Cutting time interval: 200 ms
Required accuracy: ±0.001"
Stand-alone
Components Selected
DMC-1510: 1-axis, industrial controller
AMP-1110: Power amplifier
Motor-500-1000: Servo motor with encoder
TERM-1500H: Hand-held terminal
WSDK: Servo design software for setup
Operation
The DMC-1510 stand-alone controller prompts the operator
to enter the length in inches, L, and the number of cuts, N.
To start the operation, a switch connected to input 1 is
turned on. The cutting cycle includes the motion interval fol-
lowed by the cutting interval. The actual cutting tool is con-
trolled by toggling output 2 on the DMC-1510. The opera-
tion ends when the number of cuts is completed or when
input 1 is turned off, whichever occurs first.
As the operation is stand-alone with a single axis of
motion, the controller DMC-1510 and the terminal TERM-
1500-H were selected. The control program below is down-
loaded to the DMC-1510 via the RS232 port and stored in
non-volatile memory permitting stand-alone operation.
Cut-to-Length
time
200 msec
VELOCITY
0V
INPUT 1
OUTPUT 2
Cut-to Length Example
Instruction Interpretation
#AUTO Label for autostart
IN "ENTER CUT LENGTH IN INCHES", L Prompt for operator
IN "ENTER NUMBER OF CUTS", N
Prompt for operator
#WAIT Label for wait
JP #WAIT, @IN[1]=0
Wait until input 1 is high
C=0
Initialize cut counter
#LOOP
Label for loop
PR L*5000
Convert inches to counts
SP 60000 Speed in counts/sec
AC 1000000
Acceleration in counts/sec
2
BGX Begin motion
AMX Wait for motion complete
SB2 Activate cutter, set output 2 high
WT 200 Wait 200 msec
CB2 Deactivate cutter, clear output 2
C=C+1
Increment cut counter
JP #E,C=N
Exit if done
JP #LOOP,@IN[1]=1
Repeat if input 1 is still high
#E
Exit
EN End program