7 - data types, Chapter objectives, Output data types – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 143: Bit binary (4 hex digits), Data types

Advertising
background image

Chapter 7

Data Types

This chapter describes the data types and formats used by the BASIC
Module Data Conversion CALL routines. After reading this chapter you
should be able to interpret and manipulate the data values generated by
your module.

Converted data is exchanged with programmable controllers using
block-transfers. You can generate the following data types with the BASIC
Module:

16-bit binary (XXXX)

3-digit, signed, fixed decimal BCD (

" XXX.)

4-digit, unsigned, fixed decimal BCD (XXXX.)

4-digit, signed, octal (

" XXXX)

6-digit, signed, fixed decimal BCD (

" XXXXXX.)

3.3-digit, signed, fixed decimal BCD (

" XXX.XXX)

This value requires one word of the processor data table. The data is
represented by 16 straight binary bits (figure 7.1). The value ranges from 0
to 65,535. No sign, overflow or underflow bits are affected or decoded. If
you use a value larger than 65,535 or a negative number you get a BAD
ARGUMENT error.

Figure 7.1
16 Bit Binary Word (4 digit hex)

7.1
Chapter Objectives

7.2
Output Data Types

7.2.1
16-bit Binary (4 Hex Digits)

Advertising