Using CitectSCADA > Using Devices > Formatting Data in the Device > Printer and ASCII devices format

Printer and ASCII devices format

The format specifies how each line of data is printed on the printer or written to the ASCII file, for example:

RFP3   Raw Feed pump 3	Overload	12:32:21
RFP9 Secondary Feed Overtemp 13:02:45

When producing reports, the device format is ignored. The format defined for the report (i.e. the report format file) is used to write the report to the device.

To include CitectSCADA data you need to specify the field name and (optionally a width for each field to be printed or written to the file. The format has the following syntax:

{<field name>, [width[, justification]]}

You need to enclose each field in braces {}, for example:

Format

{Tag,8}{Name,32}

In this case, two fields are printed or written to the file - Tag, with 8 characters, and Name, with 32 characters. The width specifier is optional - if you do not specify a width, the width of the field is determined by the number of characters between the braces, for example:

Format

{Name }

In this case, Name is followed by four spaces - the field is printed or written to the file with 8 characters.