CY545 Stepper System Controller
www.ControlChips.com
© 2002 Cybernetic Micro Systems
Chapter 19 - Circuits and Examples
88
Y 100<cr>
Select external memory or location
E<cr>
Write the following commands to memory
100
R 175<cr>
Commands will start at address 100
106
F 12<cr>
First set up stepping parameters
111
S 200<cr>
117
A 0<cr>
Declare current position as zero
121
W 3<cr>
Wait for Bit 3 high, stock is available
125
N 200<cr>
131
+<cr>
133
G<cr>
Move 200 steps before first hole punch
135
N #<cr>
Read hole spacing from external switches
139
D 250<cr>
Delay 250 msec, let stock settle into place
145
/B 1<cr>
Activate punch with Bit 1 low
150
D 1000<cr>
Delay 1 sec to punch hole
157
B 1<cr>
Turn off punch
161
D 100<cr>
Wait for punch to clear work stock
167
G<cr>
Move to next hole position
169
L #,139<cr>
Repeat punches as set by external switches
177
D 250<cr>
Delay 250 msec, let stock settle into place
183
/B 1<cr>
Activate punch for last hole in piece
188
D 1000<cr>
Delay 1 sec to punch hole
195
B 1<cr>
Turn off punch
199
D 100<cr>
Wait for punch to clear work stock
205
N 200<cr>
211
G<cr>
Move 200 steps after last hole punch
213
D 250<cr>
Delay 250 msec, let stock settle into place
219
/B 2<cr>
Cut stock off with Bit 2 low
224
D 1500<cr>
Delay 1.5 sec to cut stock
231
B 2<cr>
Turn off cutter
235
D 150<cr>
Wait for cutter to clear work stock
241
P 0<cr>
Return to starting location
245
T 4,121<cr>
Repeat operation until Bit 4 is high
253
0<cr>
Stop running program now
Q<cr>
Quit saving commands to memory
Y 100<cr>
Reset memory address to start of program
X<cr>
Execute the above program