Status/Quality Formatting

(also used by PicsRPG)

The Quality Format setting is blank by default, indicating the 'standard' single character quality code. The new, improved quality format string may include any of the following replacement symbols, along with any constant text desired:

Short Long Description Possible Values
%a %A Alarm Level, highest by precedence: exception, validity, eu, roc, inhibit, normal (blank) 'SX', 'MX', 'OT', 'LV', 'HV', 'LC', 'LA', 'LW', 'HW', 'HA', 'HC', 'RD', 'RA', 'IN', ' ' long alarm name
%e %E EU Alarm 'IN', 'LC', 'LA', 'LW', '  ', 'HW', 'HA', 'HC' long alarm name
%v %V Validity Alarm 'IN', 'LV', '  ', 'HV' long alarm name
%r %R Rate of Change Alarm 'IN', 'RD', '  ', 'RA' long alarm name
%s %S Scan State ' ', 'S', 's' ' ', 'OffScan', 'AutoOffScan'
%m %M Manual Entry State ' ', 'M' ' ', 'MANUAL'
%x %X Exception Flag ' ', 'X' ' ', 'EXCEPTION'
%t %T Point In Test Flag ' ', 'T' ' ', 'TEST'
%i %I Alarm Inhibit Flag ' ', 'I' ' ', 'INHIBIT'
%f %F Fresh Data Flag ' ', 'f' 'fresh', 'stale'
%z %Z Data Valid Flag ' ', 'v' 'invalid', 'valid'
%~ Value Unknown Flag ' ', '*'
%Q   primary quality SMXT blanks/dots for unset bits
%q   secondary quality smxt blanks/dots for unset bits
%P   Primary Provider ' ', 'P' set when PICS Test provides point
%p   Secondary Provider ' ', 'p' set when PICS Test provides an input point
%d %D Data/Point Type AI, AO, etc.  
%n %N source Node side A or B or 0 or 3  
%y %Y Proxied flag '   ', 'PXY' 'Live', 'Proxied'
%?   Single character quality the way quality USED TO BE displayed
%c %C Clamping state no, low, high, error  
%w Raw PS/PSX hexadecimal values: 0x00000000 0x0000
%i %I EU Value is the point's initial EU value from the database. ' ', 'I' ' ','init'
%h %H Hardware error type '00'..'15' HWT text
%o %O Not scanned reason '0'.'7' Reason text
%u %U Raw value type 'rvf','rdw' 'RVfloat','RVdword'
%K SubSystem Status, Side A (PT_SS only) '8PL status'
%k SubSystem Status, Side B (PT_SS only) '8PL status'
%%   Percent sign  %

Prefix with decimal digits to specify a fixed width for long strings

e.g. "%a" could yield "High Critical"
while "%16a" could yield "High Critical  " (note the trailing spaces)

Negative numbers cause short strings to be LEFT justified in the fixed length. Positive numbers cause short strings to be RIGHT justified.

Prefix with '.' to have dots replace spaces in unset fields in short strings

e.g. "%.s%.m%.x%.t" is the same as "%.Q" and might yield ".MX.". whereas using "%s%m%x%t" (or "%Q") would yield " MX " for the same status.