Rockwell Automation 1403-NSC Smart Communication Card Instruction Sheet User Manual

Page 47

Advertising
background image

C–3

Serial Communication Protocol Tutorial

Publication 1403-5.1

Table C.3 Write Sequence

Transmitted from Serial

Network Master

Description/

Direction

Transmitted from

Smart

Communication

Card

[ DLE / SOH / STN / DLE /
STX / DST / SRC / 0x0F /
0x00 / 0x00 / 0x00 / 0xAA
/ data_size / 0x00 / 0x89 /
0x00 / 0x00 /
1st_dataword_lo /
1st_dataword_hi /.../
last_dataword_lo /
last_dataword_hi / DLE /
ETX / CRC ]

Write Data

DF1 Ack

[ DLE / ACK ]

[ DLE / ENQ / STN / BCC ]

(Note: should wait for
application ack, time-out,
and repeat poll until data
is received)

Poll

Application

Ack

[ DLE / STX / DST /
SRC / 0x4F / STS /
TNS / TNS /Ext_STS
(if error) / DLE / ETX
/ CRC ]

[ DLE / ACK ]

DF1 Ack

Table C.4 Read Sequence

Transmitted from Serial

Network Master

Description/

Direction

Transmitted from

Smart

Communication

Card

[ DLE / SOH / STN / DLE /
STX / DST / SRC / 0x0F /
0x00 / 0x00 / 0x00 / 0xA2 /
data_size / 0x00 / 0x89 /
0x00 / 0x00 / DLE / ETX /
CRC ]

Read

Request

DF1 Ack

[ DLE / ACK ]

[ DLE / ENQ / STN / BCC ]

(Note: should wait for
data, time-out, and repeat
poll until data is received)

Poll

Data

[ DLE / STX / DST /
SRC / 0x4F / STS /
TNS / TNS /
1st_dataword_lo /
1st_dataword_hi /.../
last_dataword_lo /
last_dataword_hi /
DLE / ETX / CRC ]

[ DLE / ACK ]

DF1 Ack

Advertising