beautypg.com

Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 93

background image

Formatting Data in Report Generation

Chapter 9

9Ć5

You can specify a base format specifier to format data in a specific
numbering system. The base format specifiers are given below:

Format Specifiers

Format

H
O
D
B
S

Hexidecimal
Octal
Decimal
Binary
String

If you do not specify a format, the following base conversions occur:

Integers default to decimal.
Strings default to strings.

On a command line, once you specify a format, the rest of the line in the
procedure defaults to that format until you specify a new format.

The following sections explain these base format specifiers.

By using the following specifiers, you can display data in different
numbering systems:

B—Binary
H—Hexadecimal
D—Decimal
O—Octal

As an example, suppose you have the following procedure:

If you enter:

A=1234
P A!016B
P A!16H
P A!16D
P A!16O

9.1.4
Specifying a Base Format

9.1.4.1
Base Formatting Examples