SECTION 3
CIM PROTOCOL
PM055 Rev 2 00/08/31
Thomson Technology
54
7.
Data Types And Formats
The following table describes the possible return data types and formats for Modbus
registers defined in the CIM.
A register data value consists of two bytes: the most significant (MSB) and the least
significant (LSB). Data values are arranged with the MSB first (called big-endian).
Data
Type
Register
Count
Maximum
Range
Description
boolean 1
0 or non-
zero
boolean value: 0=false, non-zero=true
enum 1
0 to max-
range
enumeration: range from 0 to some maximum
uint8 1
0-255
unsigned 8-bit integer (allowable values can be
further limited)
uint16 1
0-65535
unsigned 16-bit integer (allowable values can be
further limited)
string n
special
character (0-255) string, ordered: MSB1, LSB1,
MSB2, LSB2, ...
struct n
special
structure; definition depends on register range;
ordered: MSB1=byte0, LSB1=byte1, MSB2=byte2,
LSB2=byte3, ...
8.
CIM Port Configuration
Field
Register
(decimal)
Address
(hex)
Register
Count
Data
Format
Value
Port#2
Bitrate
40257 100 1 enum
0=57600, 1=38400,
2=19200, 3=14400, 4=9600,
5=4800, 6=2400, 7=1200
Port#2
Bits/char
40258
101
1
uint8
7 to 8 (8)
Port#2
Stopbits
40259
102
1
uint8 1 to 2 (1)
Port#2
Parity
40260 103 1 enum
0=Odd, 1=Even, 2=None,
3=Mark, 4=Space
Port#2 Rx
Timeout
40261
104
1
uint16 0 to 65535 (20)
Port#2 Line
Protocol
40262 105 1 enum
0=RS-232, 1=RS-422,
2=RS-485, 3=auto-detect
Содержание CIM 3.0
Страница 2: ......
Страница 81: ...SECTION 3 CIM PROTOCOL PM055 Rev 2 00 08 31 Thomson Technology 75 20 NOTES...