6 - data encoding and addressing, General, Data encoding – Rockwell Automation 1770-KF2 Data Highway or Highway Plus Interface Module User Manual User Manual

Page 138: Data encoding and addressing

Advertising
background image

Chapter

6

6-1

Data Encoding and Addressing

This chapter explains two areas of special concern when you are
transmitting messages between computers and PCs:

Data Encoding
Addressing Formats

The information contained in this chapter gives some application details
that relate to the data and address fields of the message formats in
Chapter 5.

In general, PCs store binary data (1s and 0s) in 16-bit groups called
words. If you are looking at this data from a computer, however, you may
interpret it in a number of different ways, depending on your application
needs.

Number Systems

You may use any one of the following number systems to represent data
in your computer application programs:

Binary
Binary Coded Decimal
Decimal
Hexadecimal
Octal

You must design your computer application programs to make any
necessary conversions from one number system to another. Once you
have selected the number system that is best for your applications, try to
use only that one system and convert all data values to that base to avoid
confusion.

General

Data Encoding

Advertising