Chapter 2, What your driver must do at start-up, What this chapter covers – Rockwell Automation D17846.2.4 CONTROLNET KT EMULA User Manual

Page 17: Using the ktcx memory-mapped hardware, Table 2.a initial state memory map of dual-port, Chapter

Advertising
background image

Publication 1784-6.2.4 - September 1997

Chapter

2

What Your Driver Must Do at
Start-up

What This Chapter Covers

This chapter explains the start-up requirements of the KTCX card.
Your driver must:

Use the KTCX Memory-Mapped Hardware

Initialize the KTCX Card

Using the KTCX
Memory-Mapped
Hardware

Before you begin building your driver, you must be familiar with the
KTCX card's memory-mapped hardware. There are seven memory-
mapped addresses, but byte :0800h is reserved. The KTCX maps the
dual-port just like the 1784-KT. However, some functions such as
diagnostics are not required. These unnecessary functions are desig-
nated by “N/A”, not applicable. The following sections describe
memory-mapped hardware bytes :0801h through :0806h.

Table 2.A Initial State Memory Map of dual-port

Byte

Description

Function

1

Contents = Meaning

Typical Access

2

KTCX Host

Comments

:0000h

KTCX KT
Emulation Mode

INI

C3h

R

W

Your application must set these bytes to initialize the
KTCX card.

:0001h

KTCX KT
Emulation Mode

INI

00h

R W

:0002h

KTCX KT
Emulation Mode

INI

00h

R W

:0003h

KTCX KT
Emulation Mode

INI

00h

R W

:0004h

KTCX Link State

INI

FFh = off-line
00h = on-line

R .

W

N/A

:0005h

Link Address

INI

(node address)

R

W

N/A

:0006h

Link Protocol

INI

N/A

N/A

N/A

:0007h

Link Baud Rate

INI

N/A

N/A

N/A

:0008h

Link Termination
Resistor

INI

N/A

N/A

N/A

:0009h

Reserved

---

---

---

All reserved bytes must be set to 00h.

:000Ah

Reserved

---

---

---

:000Bh

Reserved

---

---

---

:000Ch

Reserved

---

---

---

:000Dh

Reserved

---

---

---

:000Eh

Reserved

---

---

---

:000Fh

Reset Diagnostic
Counters

CMD

N/A

N/A

N/A

:0010h

Reserved

---

---

---

All reserved bytes must be set to 00h.

Advertising