Embedding Point Values in Text
SECTION 3 Points
51
The shift foreman was Fred Smith
and
The shift output was ((ShiftOutput)) litres
becomes:
The shift output was 5000 litres
3-13-1 Using Format specifiers
Format specifiers can be used, similar to the Format script command:
%s for text string points;
%d for integer points;
%f for real floating points.
Where 'MyTextpoint="Hello"':
The text of (("My text point is %s",Mypoint))
becomes:
The text of My text point is Hello
Where MyRealpoint=5467.7658:
To two decimal places the value of MyRealpoint is
(("%4.2f",MyRealpoint))
becomes:
To two decimal places the value of MyRealpoint is
5467.76
Combinations of format specifiers are possible:
((%s to two decimal places the value of MyRealpoint is
%4.2f",MyTextpoint,MyRealpoint))
becomes:
Hello to two decimal places the value of MyRealpoint
is 5467.76
The can be used in various fields, for example:
•
In Alarm Raised and Cleared Messages e.g.
Alarm Raised: "Boiler Temperature too high. Current
value is (("%.1d", BoilerTemp))"
•
As captions for popup edit box animations. This is useful as the captions
are then dynamically translated e.g.
Caption: "((CaptionString))"
•
As parameter to MessageBox. This is useful to help convert numbers to
strings e.g.
MessageBox("Error ((ErrorNum)) occurred")
•
As parameter to LogError or LogEvent. This too is useful to help convert
numbers to strings e.g.
LogError("Error ((ErrorNum)) occurred", priority)
•
Titles in Graphs and Charts (useful for translations again) e.g.
Title: "((TitleString))"
•
In Tooltips, for dynamic information
Tooltip text: "((ToolTipString))"
•
In Report templates. See Script Reference GenerateReport() for more
information.
Содержание CX-Supervisor
Страница 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Страница 3: ...Copyright Notice 2...
Страница 16: ...15...
Страница 17: ...16...
Страница 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Страница 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Страница 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Страница 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Страница 181: ...Data Logging SECTION 11 Data Logging 180...
Страница 201: ...Examples SECTION 12 Databases 200...
Страница 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Страница 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Страница 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Страница 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Страница 271: ...Data Logging SECTION 20 Best Practices 270...
Страница 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Страница 277: ...Appendix B Frequently Asked Questions 276...
Страница 296: ...Appendix B Frequently Asked Questions 295...
Страница 297: ...Appendix B Frequently Asked Questions 296...
Страница 298: ...Appendix B Frequently Asked Questions 297...
Страница 299: ...Appendix B Frequently Asked Questions 298...
Страница 333: ...Revision history 332...