Typedef struct { signed char unused1[4]; signed ch, Typedef union { unsigned char byte[sizeof(dp_comm), Endif – Rockwell Automation D17846.2.4 CONTROLNET KT EMULA User Manual
Page 37

Publication 1784-6.2.4 - September 1997
Defined Statements for the KTCX Card
B-3
typedef struct
{
signed char
unused1[4];
signed char
online;
// Online/offline indicator
signed char
nodeaddr;
// Node address set by the application
signed char
unused2[9];
signed char
reset_ctrs;
// Reset diagnostic counters command
signed char
unused3[2]
signed char
heartbeat;
// Alive heartbeat
signed char
dupnode;
// Dupe node notification
signed char
shutdown_trig;
// Trigger to make KT shutdown
signed char
shutdown_stat; // Response to shutdown_trig
signed char
unused_ctrs1[22];
unsigned
ctr_msgsent;
// Number of messages sent (16-bit)
unsigned
ctr_msgrcvd;
// Number of messages received (16-bit)
signed char
unused_ctrs2[9];
signed char
num_nodes
// Number of active nodes
signed char
ac_stat;
// ACK Confirm - status
signed char
ac_dst;
// ACK Confirm - dst of msg.
signed char
ac_lsap;
// ACK Confirm - lsap of msg.
signed char
ac_err;
// ACK Confirm - error
unsigned
ac_tns
// ACK Confirm - tns of msg.
char
ant_low[64];
// Low ANT, nodes 0-63
SENDBOX
send;
// Send mailbox
RCVBOX
rev;
// Receive mailbox
signed char
termname[8];
// Terminal name string (8-byte ASCII)
signed char
termid;
// Terminal ID (0x1B is the KT)
signed char
version;
// KT firmware version
signed char
unused7[6];
// This goes to the end of 2K
signed char
unused8;
// dp + 0x800
signed char
kt_intmask;
// dp + 0x801
signed char
unused9[14];
// Reserved
}DP COMM;
typedef union
{
unsigned char
byte[sizeof(DP_COMM)];
DP_COMM
comm;
} DP;
#endif