Allen-Bradley 1784-KTX Reference Manual page 27

Table of Contents

Advertisement

Loading the Protocol
Since the entire protocol is longer than the 2K dual-port RAM can handle
in one operation, your driver must download the protocol file in multiple
iterations.
Refer to the algorithm below for loading the protocol into the K
1.
2.
3.
4.
5.
6.
7.
8.
Refer t o
completed the download.
Allen-Bradley Parts
Load one block of protocol cod e through the dual-port RAM and
into the Z80 RAM. Start at :0080h (do not go past :07FFh).
The maximum byte size is :0780h (1920 decimal).
Load size of bloc k into the Size Word locations. Low byte is :0072h;
high byte is :0073h.
On the first pass, release Z80 by writin
On all subsequent passes, reset handshake byte :0075h t
signal the K T x's Z80 that your driver has loaded the next block
into the dual port.
Wait for the loader to return handshake byte :0075h t
is loading the block of protocol code into its RAM.
Check error byte :0074h.
Status Code
00h
01h
02h
Correct any errors by fixing the problem and then resetting the Z80
and restarting.
Note: If you want to know how many bytes you had loaded,
calculate the number of bytes loaded so far (
checking bytes :0070h (low byte) and :0071h (high byte).
Repeat the loading blocks procedure (steps 1–6) until finished.
Reset the K T x card by writin g 01h to byte :0803h.
Table 2. E
to see what each address will contain once you have
Chapter 2
Start up and Shutdown
01h to byte :0802h.
g
Meaning of Code
No Error Detected
Block Too Large
Z80 RAM Too Full For Next Block
Total Word) by
x card.
T
00h to
o
01h. The Z80
o
2-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents