beautypg.com

9 - formatting data in report generation, Formatting data in report generation – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 89

background image

Chapter

9

9Ć1

Formatting Data in Report Generation

In the last three chapters, we discussed writing, editing, and using symbols
and expressions in procedures. After reading this chapter, you should be
able to:

Format input and output data
Use standard control characters
Use carriage and cursor control characters
Use special industrial terminal control characters
Use conversion table

These are the topics that we will discuss in this chapter.

Report generation for the 1775–S4B scanner uses a format specification
system which enables you to input and output data in many forms. This
formatting capability extends over all input and output commands (print
and inquire).

The formatting system allows you to alter aspects of the data. These
aspects include:

Justification—The margin style for each line of data.
Field width—The number of characters that make up the data display.
Base—The number base which expresses the data.

To specify a format, an exclamation point (!) should follow the input or
output data. Formatting is not essential; however, it gives you control over
the appearance of the data. The maximum format specification package
includes:

!JFWWWB

where:

! = formatting delimiter
J = justification instructions

9.0
Chapter Objectives

9.1
Formatting Input and
Output Data

9.1.1
Specifying a Format