Unsolicited Messages Generated By Controller; Rs-232 Port - Galil Motion Control DMC-21 5 Series User Manual

Table of Contents

Advertisement

Unsolicited Messages Generated by Controller

When the controller is executing a program, it may generate responses which will be sent via the RS-232 port or
Ethernet handles. This response could be generated as a result of messages using the
a command error. These responses are known as unsolicited messages since they are not generated as the direct
response to a command.
Messages can be directed to a specific port using the specific Port arguments – see the
the Command Reference. If the port is not explicitly given or the default is not changed with the
unsolicited messages will be sent to the default port. The default port is the serial port. When communicating via
an Ethernet connection, the unsolicited messages must be sent through a handle that is not the main
communication handle from the host. The GDK software automatically establishes this second communication
handle.
The controller has a special command, CW, which can affect the format of unsolicited messages. This command is
used by Galil Software to differentiate response from the command line and unsolicited messages. The command,
CW1
causes the controller to set the high bit of ASCII characters to 1 of all unsolicited characters. This may cause
characters to appear garbled to some terminals. This function can be disabled by issuing the command, CW2. For
more information, see the

RS-232 Port

The RS-232 port by default is an interpreted serial communication port for the DMC-21x5 and will receive and
respond to DMC commands. The controller can read and write generic data but the user must write their own
communication routines. A full description of the RS-232 default configuration settings can be found in the
following sections.
A straight through cable is required for interfacing to the RS-232 port. Baud rates are set via the
controller's jumpers.
Firmware can only be updated from the RS-232 port.
Baud Rate Selection
Handshaking
The RS-232 main port is set for hardware handshaking. Hardware Handshaking uses the RTS and CTS lines. The CTS
line will go high whenever the DMC-40x0 is not ready to receive additional characters. The RTS line will inhibit the
DMC-40x0 from sending additional characters. Note, the RTS line goes high for inhibit.
Chapter 4 Software Tools and Communication ▫ 25
CW
command in the Command Reference.
JP2 JUMPER SETTINGS
1200
9600
ON
OFF
OFF
Table 4.1: Baud Rate Selection
BAUD RATE
OFF
1200
ON
9600
OFF
19200
command or as a result of
MG
and
commands in
MG
CF
command,
CF
DMC-21x5 User Manual 1.0a1

Advertisement

Table of Contents
loading

Table of Contents