Available Characters For Variable Names; Numeric Literals - Hitachi MICRO-EHV+ Applications Manual

Table of Contents

Advertisement

Chapter 3
Programming
3.6.3

Available characters for variable names

Available characters for variable names are only alphabet a to z, A to Z and number 0 to 9 and _ (underscore). The
first character must not be numeric characters. Several words like BOOL, WORD, IF, FOR etc. are reserved.
Supported characters
Types
Numerical
Alphabetical
Symbol
Examples for variable names
Allowed or not
Allowed
Not allowed
3.6.4

Numeric literals

Numeric literals are specified as follows.
Types
Integer
Real
Real with exponents
Base 2
Base 8
Base 16
Boolean zero and one
Time
Date
Supported
0 to 9
a to z, A to Z
_
Examples
Test_200
TEST
Test55
_Test
2test
test__200
test-5
test#3
test 3
IF
Examples
-12 0 123_456 +986 10#1234
-12.0 0.0 0.4560 3.14159_26
-1.34E-12 1.0E+6 1.23E6
2#1111_1111 2#1110_0000
8#377 8#340
16#FF 16#ff 16#1234_ABCD
0 1 FALSE TRUE
T#100ms, T#5.5s
DT#2012-12-31-12:34:56
Remarks
Not allowed to begin with numeric characters.
Trailing underscores are not allowed.
Descriptions
Starting with numeric character.
Trailing underscores are not allowed
Minus sign is not allowed.
Other signs than underscore are not allowed.
Space is not allowed.
Reserved word.
3 – 20
Applicable for
Underscore is ignored
Underscore is ignored
Underscore is ignored
Underscore is ignored
FALSE=0, TRUE=1
Timer (TON, etc.)
RTC (Realtime clock)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents