
CHAPTER 3 – Points
OMRON
Page 42
Release 2.0
Refer to chapter 2, Pages regarding the use of the Print dialog.
Point Substitution
Overview
As well as using point names in expressions, in many cases where text is entered this can be made
dynamic by using point substitution. Part or all of the text may be a point name, enclosed in the Point
Substitution characters (double round brackets by default).
Examples of the way in which text is changed:
The shift foreman was ((ShiftForeman))
becomes:
The shift foreman was Fred Smith
and
The shift output was ((ShiftOutput)) litres
becomes:
The shift output was 5000 litres
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:
Summary of Contents for CX-SUPERVISOR - V2.0
Page 2: ...CX Supervisor User Manual Software Release 2 0...
Page 3: ......
Page 5: ...CX Supervisor User Manual OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor User Manual OMRON Page iv Revision 2 0...
Page 11: ...CX Supervisor User Manual OMRON Page viii Revision 2 0...
Page 13: ...CX Supervisor User Manual OMRON Page x Revision 2 0...
Page 15: ...CX Supervisor User Manual OMRON Page xii Revision 2 0...
Page 17: ...CX Supervisor User Manual OMRON Page xiv Revision 2 0...
Page 19: ...CX Supervisor User Manual OMRON Page xvi Revision 2 0...
Page 21: ...CX Supervisor User Manual OMRON Page xviii Revision 2 0...
Page 23: ......
Page 67: ......
Page 97: ......
Page 137: ...CHAPTER 7 Graphics Library OMRON Page 114 Release 2 0...
Page 183: ...CHAPTER 9 Animation OMRON Page 160 Release 2 0...
Page 215: ......
Page 263: ......
Page 269: ......
Page 274: ...OMRON CHAPTER 16 Connecting to Omron Industrial Components Release 2 0 Page 251...
Page 275: ......
Page 285: ......
Page 319: ......
Page 331: ......
Page 351: ......
Page 359: ...GLOSSARY OF TERMS CX Supervisor User Manual OMRON Page 336 Release 2 0...