
CMC TECHNICAL REFERENCE MANUAL
1X36003 Version 2.52
1996-1999 Ingersoll-Rand Company
Date of Issue: 18-Oct-1999
123
Example: Reading a Discrete Value
Reading discrete values from file number 11 or higher is the same as reading analog data.
To read a digital output (Channel 3, 188h) as a two-byte integer, the following command is
sent:
DLE
STX
DST
SRC
CMD
STS
TNS
FN
C
Packet
Offset
Total
Trans
PLC5 System Address
Size
DLE
ETX
BCC
10
02
0D
11
0F
00
A1
C2
68
00
00
01
00
07
00
0B
BC
01
00
10
03
38
The response to this command is:
DLE
STX
DST
SRC
CMD
STS
TNS
A
B
DLE
ETX
BCC
10
02
11
0D
4F
00
A1
C2
99
09
03
42
01
00
10
03
48
Example: Reading Multiple Discrete Values
To read digital output channels 1-6 as integers, the following command is sent:
DLE
STX
DST
SRC
CMD
STS
TNS
FN
C
Packet
Offset
Total
Trans
PLC5 System Address
Size
DLE
ETX
BCC
10
02
0D
11
0F
00
41
17
68
00
00
0C
00
07
00
0B
BA
0C
00
10
03
2F
The response to this command is:
DLE
STX
DST
SRC
CMD
STS
TNS
A
B
10
02
11
0D
4F
00
41
17
99
09
19
42
00
00
00
00
00
00
00
00
01
00
00
00
B
DLE
ETX
BCC
00
00
00
00
00
00
00
00
00
00
00
00
10
03
3D
Example: Reading Bit-Packed Discrete Data
Reading discrete values from file number 10 is to read the 16 bit-packed discrete values in a
two-byte integer format. When the following command is sent,
DLE
STX
DST
SRC
CMD
STS
TNS
FN
C
Packet
Offset
Total
Trans
PLC5 System Address
Size
DLE
ETX
BCC
10
02
0D
11
0F
00
61
C4
68
00
00
01
00
07
00
0A
0B
01
00
10
03
28
the response from this command is:
DLE
STX
DST
SRC
CMD
STS
TNS
A
B
DLE
ETX
BCC
10
02
11
0D
4F
00
61
C4
99
09
03
42
28
10
10
10
03
4F
NOTE
The data value 10h in field B is transmitted as 10h 10h to be distinguished from the
control character DLE. Please see the
DF1 Full-Duplex Protocol Message Frames
section for more details.
In the above example, the local data file type can be either bit or integer types. Local data
element B10:11 covers CMC data table address 176-191. Bit 10-15 is for digital output
channels 1-6. You can determine the remote trouble contact (Channel 3, J15-P3,4) by bit 12
in the returned integer. The table below graphically depicts the individual bit value for the
returned two-byte integer.