Advanced Communication Techniques - Galil Motion Control DMC-1000 User Manual

Table of Contents

Advertisement

Status Bit
5
5
4
4
To receive data from the DMC-1000, read the control register at address N+1 and check bit 5. If bit 5
is zero, the DMC-1000 has data to be read in the READ register at address N. Bit 5 must be checked
for every character read and should be read until it signifies empty. Reading data from the READ
register when the register is empty will result in reading an FF hex.
To send data to the DMC-1000, read the control register at address N+1 and check bit 4. If bit 4 is
zero, the DMC-1000 FIFO buffer is not almost full and up to 16 characters may be written to the
WRITE register at address N. If bit 4 is one, the buffer is almost full and no additional data should be
sent. The size of the buffer may be changed (see "Changing Almost Full Flags" on pg. 35).
Any high-level computer language such as C, Basic, Pascal or Assembly may be used to communicate
with the DMC-1000 as long as the READ/WRITE procedure is followed as described above.
Example software drivers are contained on the COM-DISK from Galil.
The Almost Full flag (Bit 4 of the control register) can be configured to change states at a different
level from the default level of 16 characters.
The level, m, can be changed from 16 up to 256 in multiples of 16 as follows:
For example, to extend the Almost Full level to 256 bytes, write a 5 to address N+1. Then write a 240
to address N+1.
The FIFO buffer may be cleared by writing the following sequence:
DMC-1000
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Name
Logic
Meaning
State
READ
0
Data to be read
READ
1
No data to be read
WRITE
0
Buffer not full, OK to write up to 16 characters
WRITE
1
Buffer almost full. Do not send data
Read Procedure
Write Procedure

Advanced Communication Techniques

Changing Almost Full Flags
1. Write a 5 to the control register at address N+1.
2. Write the number m-16 to the control register where m is the desired
Almost Full level between 16 and 256.
Clearing FIFO Buffer
Read N+1 address
Send 01H to N+1 address
Send 80H to N+1 address
Send 01H to N+1 address
Send 80H to N+1 address
Read N+1 address
(Bit 7 will be 1)
Chapter 4 Communication • 35

Advertisement

Table of Contents
loading

Table of Contents