Usage with interrupts, Table 2.b bit values for configuring the dual-port, Ktcx card shutdown – Rockwell Automation D17846.2.4 CONTROLNET KT EMULA User Manual

Page 19: Write an ffh into byte offset 0004h (ktcx link, Write an 01h into byte offset 0014h (ktcx_off_k, Wait until byte offset 0015h (ktcx_stopped_flag, Write a 01h into byte offset 803h, Write a 04h into byte offset 0012h, Write a 00h into byte offset 014h, Restarting the ktcx card after shutdown

Advertising
background image

Publication 1784-6.2.4 - September 1997

What Your Driver Must Do at Start-up

2-3

Usage With Interrupts

The KTCX, by default, is set up to be poll operated even if the card
has been set up to interrupt the host. Bits 0 and 1 at byte offset 801h
must be set to configure the card for interrupts. Table 2.B show you
how to set bits 0 and 1 to in order to configure your card to meet your
specifications.

Table 2.B Bit Values for Configuring the dual-port

KTCX Card Shutdown

Use the following instructions to shutdown the KTCX card. (Refer to
example code for details):

1.

Write an FFh into byte offset 0004h (KTCX link state)

2.

Write an 01h into byte offset 0014h (KTCX_off_KTCX)

3.

Wait until byte offset 0015h (KTCX_stopped_flag) transitions to
an FFh. This should complete in 0.5 seconds. If not, there is a
critical error.

4.

Write a 01h into byte offset 803h.

5.

Write a 04h into byte offset 0012h.

6.

Write a 00h into byte offset 014h.

Restarting the KTCX Card After Shutdown

After card shutdown, the emulation can be restarted without hard
resetting the card by returning to step 2 in “Initializing the KTCX
Card”

Value=0

Value=1

Bit 0

do not interrupt when send
box is available

interrupt when send box is
available

Bit 1

do not interrupt when data is
available in receive box

interrupt when data is avail-
able in receive box

Advertising