VTScada Constants
The following constants are defined in VTScada and may be used in your code where convenient.
To use, precede with a backslash (\pi)
| Constant PI = 3.14159265358979; | |
| Constant CR = MakeBuff(1, 13) | { Carriage return }; |
| Constant LF = MakeBuff(1, 10) | { Line feed }; |
| Constant CRLF = Concat(CR, LF) | { CR/LF pair }; |
| Constant ESC = MakeBuff(1, 27) | { Escape key }; |
| Constant SecInMin = 60 | { Number of seconds in a minute }; |
| Constant MinInHr = 60 | { Number of minutes in an hour }; |
| Constant SecInHr = 3600 | { Number of seconds in an hour }; |
| Constant MinInDay = 1440 | { Number of minutes in a day }; |
| Constant SecInDay = 86400 | { Number of seconds in a day }; |
| Constant SecInWeek = 86400*7 | { Number of seconds in a week }; |
This is a partial list; the full list is not documented.