CY545 Stepper System Controller
www.ControlChips.com
© 2002 Cybernetic Micro Systems
Chapter 10 - Miscellaneous Commands
35
Initialize Command
Finally, the CY545 has several miscellaneous commands for general control purposes. One
command provides a software reset for the CY545. It is:
I
Initialize CY545
When the
Initialize
command is processed, it acts like a power-on reset. The CY545 command
mode is changed to direct command mode, all I/O signals are brought high, and the serial baud
rate is reset. Any program that was executing from external memory is stopped if an
I
-command
is read.
The
Initialize
command and the power-on reset will redefine the CY545 stepping parameters to
the following default values:
R
100
F
14
S
220
N
200
and the current position register is cleared to zero.
The current values of these registers will always be changed back to the defaults when a reset
is performed or an I-command is executed.
Time Delay Command
The CY545 also provides a time delay function, with:
D Del16
Delay for specified milliseconds
The parameter for the
Delay
command is a 16-bit value, calibrated in milliseconds when running
at 12 MHz. This command simply causes the CY545 to wait for the specified time before going
to the next command.
When used in an external memory program, the command allows you to pause for a known time
between program functions. For example, take a specified motion to move a part into place,
then delay for 3 seconds while some operation is performed, then remove the part.
The value of the Delay parameter allows a time delay between 1 millisecond and 65 seconds
when the CY545 is running at 12 MHz. Longer delays can be created by repeated delay
commands, or delay commands in a loop.
C
C
C
H
H
H
A
A
A
P
P
P
T
T
T
E
E
E
R
R
R
1
1
1
0
0
0
-
-
-
M
M
M
I
I
I
S
S
S
C
C
C
E
E
E
L
L
L
L
L
L
A
A
A
N
N
N
E
E
E
O
O
O
U
U
U
S
S
S
C
C
C
O
O
O
M
M
M
M
M
M
A
A
A
N
N
N
D
D
D
S
S
S