CY545 Stepper System Controller
www.ControlChips.com
© 2002 Cybernetic Micro Systems
Chapter 10 - Miscellaneous Commands
38
Message Display Command
The CY545 also provides a mechanism for displaying messages that you define. This is done
by:
"String"
Display all characters between quotes
Normally, these messages would be part of a program in external memory, and can announce
specific items on the display. The messages can also be prompts to an operator to turn
something on or off at particular points in a program, with the CY545 then delaying, or waiting
for a signal before continuing with the program.
The string format is very general. Any character is allowed between the quotes (except another
quote), including ASCII control codes and carriage returns. The only character that terminates a
display string is the double quote character (ASCII 22H), also used to start the string. This is the
only character that may not be part of the string.
Strings are stored in external memory if they are received following an Enter command, just as
regular CY545 commands. Every part of the string, including the starting and ending quotes is
saved. The next CY545 command immediately follows the ending quote of the string. In Binary
mode, strings do not include data counts, they are treated like ASCII mode for the duration of
the string.
Embedded Control Characteristics and Their Use:
The string command allows any 8-bit characters (except ") to be transmitted as part of the
string. This will allow embedded control codes and special "setup" commands to be issued to
peripheral devices, such as the CY325 LCD windows controller. For example, the string:
"<Ctrl-C>V 0D6h<cr>
<Ctrl-D>Hello<cr>"
puts the CY325 into the command mode (Ctrl-C character), then issues a Viewport command,
which defines a currently active window for display. The window selected uses one quarter of
the 711 display, from the middle. The Ctrl-D character then places the CY325 back into the
display mode, and the message “Hello” is written to the selected window. The carriage return
advances the cursor to the line directly below the “Hello” message.
The above sequence is sent as one string message by the CY545, since all the commands and
control codes are embedded within one character sequence, between the double quote
characters.
Hewlett Packard (HP) LED 8 Digit Display
Finally, the CY545 has a special command for controlling the Hewlett Packard display. The
command is:
[Addr,Cnt,D1,...,Dn
.....
Special Hewlett Packard display support
This HP Display command allows you to manipulate some special features of the HP display,
such as brightness control or custom character fonts. Use of this command is optional, since it
changes the defaults as set by the CY545. It is not required for normal operation of the HP
display.