Rockwell Automation D17846.2.4 CONTROLNET KT EMULA User Manual

Page 7

Advertising
background image

Table of Contents

Publication 1784-6.2.4 - March 1997

Overview of the KTCX Card
Environment

Chapter 1

What This Chapter Covers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
ControlNet Network Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1

The ControlNet System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Node Addressing and Node Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Control and Configuration of Programmable Logic Controllers . . . . . . . . . . 1-3
Off-link Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3

Data Flow: Application to Dual-port Interface to Network. . . . . . . . . . . . . . . . 1-3

Reserved Sections for System Memory and Mailboxes . . . . . . . . . . . . . . . 1-4

LTCX Card Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4

Selected Hardware Interrupt and Address . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Selected I/O Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Segment:Offset Notation and Base Address . . . . . . . . . . . . . . . . . . . . . . . 1-5

Operating States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6

KTCX States and Transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6

What Your Driver Must Do at
Start-up

Chapter 2

What This Chapter Covers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Using the KTCX Memory-Mapped Hardware . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Initializing the KTCX Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2

Usage With Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
KTCX Card Shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Restarting the KTCX Card After Shutdown. . . . . . . . . . . . . . . . . . . . . . . 2-3

How Your Driver Operates the
KTCX Card

Chapter 3

What This Chapter Covers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
General Communication Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1

Message Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Data Transmission and Reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Typical Communications Methodology . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Solicited Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Unsolicited Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Multi-Message Queuing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

Send and Receive Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

Operating the Send and Receive Flags . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

General Packet Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Send Mailbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

Procedure for Sending Data to the KTCX Send Mailbox . . . . . . . . . . . . . 3-4
Send Packet Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Send Data Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6

Receive Mailbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7

Procedure for Receiving Data from the KTCX Receive Box. . . . . . . . . . . 3-7
Receive Processes: Polled and Interrupt . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Code Examples for Polled and Interrupt Messaging. . . . . . . . . . . . . . . . 3-8

Advertising