CDN36X User Manual
revision 1.30
Serial Receive Process
STX ‘TEMP = 64 C’ CR ETX
I/O RESPONSE MESSAGE
DeviceNet
Master
CDN36X
Gateway
Serial
Device
I/O COMMAND MESSAGE
1) Serial Device transmits message.
Serial Data (ASCII)
<STX> T E M P <SP> = <SP>
6 4
<SP> C <CR> <ETX>
Serial Data (hex)
0x02 0x54 0x45 0x4D 0x50 0x20 0x3D 0x20
0x36 0x34
0x20 0x43 0x0D 0x03
2)
Serial Stream Object
receives message and
loads into rx buffer without delimiters.
Delimiter Mode = List
0x54 0x45 0x4D 0x50 0x20 0x3D 0x20
0x36 0x34
0x20 0x43
Pre-Delimiter = [ 0x01 0x02 ]
Post-Delimiter = [ 0x02 0x0D 0x03 ]
3)
Serial Receive Object
Instance 1 processes
message packet.
Pre-String = [ 0x07, ‘TEMP = ’ ]
0x54 0x45 0x4D 0x50 0x20 0x3D 0x20
0x36 0x34
0x20 0x43
Data = [ ‘64’ ]
Post-String = [ 0x02, ‘ C’ ]
4) Instance 1 converts ASCII data to
Data
Type
value.
Data Type = SINT, Width = 2, Conversion = D
0x36 0x34
0x36 0x34
⇒
‘64’
⇒
64 decimal
⇒
0x40 hex
0x40
5) Instance 1
Receive Data
value sent to DeviceNet master.
I/O RESPONSE MESSAGE
TA RT=xxxxxxx
1
0x40
SRO3 Data SRO6 Data
TA = Transmit Acknowledge bits
RT = Receive Toggle bits (Instance 1 bit toggled 0-1)
0x40 = Instance 1 Receive Data
6) Application acknowledges reading new
Receive Data
.
I/O COMMAND MESSAGE
TT RA=xxxxxxx
1
STO Data …
TT = Transmit Toggle bits
RA = Receive Acknowldege bits (Instance 1 bit set to 1)
MKS Instruments, Inc.
D.I.P. Products Group
23