CDN36X User Manual
revision 1.30
Serial Receive Object Settings
There are eight identical
Serial Receive Object
instance attribute sets that can be configured in
the CDN36X gateway. This section describes how to configure a single
Serial Receive Object
instance. Repeat this step for each desired instance.
Serial Receive Object Instance Attributes (Class Code 65)
Number Name Data
Type
Value
3
Receive Data
Data Type Received message data. Returned in I/O Response Message.
4
Receive Toggle
BOOL
Gateway toggles (0-1, 1-0) to indicate new Receive Data value.
5
Receive Acknowledge
BOOL
When Sync Enabled, user application must set this bit to match
Receive Toggle before next message is processed.
6
Receive Mode
USINT
Bit 0 – use Data Field
Bit 1 – use Pre-String Field
Bit 2 – use Post-String Field
7
Pre-String
Short_String String of 1-9 bytes.
8
Post-String
Short_String String of 1-9 bytes.
9
Data Type
USINT
194 (0xC2) = SINT (1 byte)
195 (0xC3) = INT (2 bytes)
198 (0xC6) = USINT (1 byte)
199 (0xC7) = UINT (2 bytes)
202 (0xCA) = REAL (4 bytes)
218 (0xDA) = Short String (Data Size bytes)
10 Data
Size
USINT 1-128
11 Width
USINT 1-16
13
Conversion
USINT
‘D’ (0x44) = decimal integer.
‘X’ (0x58) = hexadecimal integer.
14
Pad Char
CHAR
Pad byte value. Pad Poll Response if Rx data does not fill up Poll
response message data.
15
Data in I/O Response
BOOL
0 = no, 1 = yes
16
Enabled
BOOL
0 = disabled, 1 = enabled
17
Sync Enabled
BOOL
0 = disabled, 1 = enabled
Receive Data –
Data from the last valid message packet. Returned in I/O Response Message.
Receive Toggle –
Toggles (0 to 1, or 1 to 0) when a message packet has been received,
processed, and saved as
Receive Data
. Indicates new input data in the I/O Response Message.
Receive Acknowledge –
When
Sync Enabled
is set, User Application must set this bit equal to
Receive Toggle
after it reads the Instance’s
Receive Data
from the I/O Response Message. The
Instance will not process the next message packet until the
Receive Acknowledge
bit equals the
Receive Toggle
bit.
Receive Mode
– Defines how the Instance processes message packet bytes. The Instance can
search for 3 fields –
Pre-String
,
Data
, and
Post-String
. Set associated bits (0, 1, 2) to use the
desired fields. Set the remaining bits 3 through 7 to zero.
[ Pre-String ] [ Data ] [ Post-String ]
MKS Instruments, Inc.
D.I.P. Products Group
34