Rockwell Automation D17846.2.4 CONTROLNET KT EMULA User Manual
Page 7

Table of Contents
Publication 1784-6.2.4 - March 1997
Overview of the KTCX Card
Environment
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
Selected Hardware Interrupt and Address . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Selected I/O Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Segment:Offset Notation and Base Address . . . . . . . . . . . . . . . . . . . . . . . 1-5
What Your Driver Must Do at
Start-up
What This Chapter Covers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Using the KTCX Memory-Mapped Hardware . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Initializing the KTCX Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
How Your Driver Operates the
KTCX Card
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
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
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