CDN36X User Manual
revision 1.30
Example 1
Serial Receive Object
instances 1, 4, 5, 7 are configured to use portions of a received message packet.
1)
Serial Stream Object
configured to capture a 15
byte message packet (Length Mode, Packet Length
= 15).
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45
2)
Serial Receive Object
Instance 1 configured to
convert 4 bytes into Short_String, Data Size = 5.
Short_String = [0x05 0x30 0x31 0x32 0x33].
Data
3)
Serial Receive Object
Instances 2 & 3 not enabled.
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45
4)
Serial Receive Object
Instance 4 configured to
convert 2 bytes into 8-bit unsigned integer. [0x34
0x35] are ASCII chars ‘45’. Converted data = [
0x2D ].
Data
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45
5)
Serial Receive Object
Instance 5 configured to
locate 2 bytes bracketed by Pre-String ‘7’ (0x01
0x37) and Post-String ‘AB’ (0x02 0x41 0x42), and
convert them to 8-bit unsigned integer. [0x38
0x39] are ASCII chars ‘89’. Converted data =
[0x59]. Note 0x36 byte not used, but still
consumed by Instance 5.
Data
Pre-String Post-String
6)
Serial Receive Object
Instance 6 not enabled.
0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x41 0x42 0x43 0x44 0x45
7)
Serial Receive Object
Instance 7 configured to
convert 2 bytes into Short_String, Data Size = 3.
Short_String = [0x02 0x43 0x44].
Data
8) Remaining message packet bytes are not used.
MKS Instruments, Inc.
D.I.P. Products Group
15