
WindO/I-NV4 User’s Manual
20-23
4 Script Definition Method
20
Script
■
Bit operator
●
Function
Device address, constant, and temporary device are described as
,
,
,
... here.
■
Bit function
■
Word function
Arithmetic operation
(Continued to next page)
Operator
Format
Description
&
&
Calculates the logical product (AND) of each bit of
and
.
|
|
Calculates the logical sum (OR) of each bit of
and
.
^
^
Calculates the exclusive logical sum (XOR) of each bit of
and
.
~
~
Reverses the logic of each bits of
.
For word device and fixed values, 0 will be 65535, and 65535 will be 0.
For bit device, 0 will be 1, and 1 will be 0.
<<
<<
Shifts each bit of
to left for
bit(s).
>>
>>
Shifts each bit of
to right for
bit(s).
a
b
a
b
a
b
a
b
a
b
a
b
a
a
a
b
a
b
a
b
a
b
a
b
c
d
Function
Format
Description
Bit set
SET(
);
Turns bit device
to 1.
It will be same result as
= 1
;
.
Bit reset
RST(
);
Turns bit device
to 0.
It will be same result as
= 0
;
.
Bit reverse
REV(
);
Reverses the 1 and 0 of bit device
.
It will be same result as
= ~
;
.
a
a
a
a
a
a
a
a
a
a
Function
Format
Description
Maximum
value
MAX(
,
,
)
Maximum value out of
,
,
is returned.
• This can be used for all data types.
• Up to 15 arguments can be defined.
Minimum
value
MIN(
,
,
)
Minimum value out of
,
,
is returned.
• This can be used for all data types.
• Up to 15 arguments can be defined.
Exponential
function
EXP(
)
Exponential function of
is returned.
• This can only be used for data type Float32(F).
Natural
logarithm
(Base: e)
LOGE(
)
Natural logarithm (base is e) for
is returned.
• This can only be used for data type Float32(F).
• Set a value larger than 0 for argument.
Common
logarithm
(Base: 10)
LOG10(
)
Common logarithm (base is 10) for
is returned.
• This can only be used for data type Float32(F).
• Set a value larger than 0 for argument.
Exponentiation
POW(
,
)
to the
power is returned.
• This can only be used for data type Float32(F).
a
b
c
a
b
c
a
b
c
a
b
c
a
a
a
a
a
a
a
b
a
b
Summary of Contents for MICRO/I HG4G-CJT22 F-B Series
Page 1: ...B 1701 11 User s Manual ...
Page 26: ...Preface 25 WindO I NV4 User s Manual ...
Page 106: ...5 WindO I NV4 Common Operations and Settings 2 74 WindO I NV4 User s Manual ...
Page 254: ...7 BACnet Communication 3 148 WindO I NV4 User s Manual ...
Page 362: ...5 Screen Restrictions 5 28 WindO I NV4 User s Manual ...
Page 402: ...3 Text 7 30 WindO I NV4 User s Manual ...
Page 574: ...9 Potentiometer 8 172 WindO I NV4 User s Manual ...
Page 1052: ...4 Using the Data 15 22 WindO I NV4 User s Manual ...
Page 1170: ...6 Important Notes 20 60 WindO I NV4 User s Manual ...
Page 1200: ...5 Restrictions 22 18 WindO I NV4 User s Manual ...
Page 1260: ...5 Editing User Accounts on the MICRO I 23 60 WindO I NV4 User s Manual ...
Page 1322: ...2 Monitoring on the MICRO I 25 28 WindO I NV4 User s Manual ...
Page 1414: ...4 E mail Function 28 66 WindO I NV4 User s Manual ...
Page 1554: ...3 Settings 34 14 WindO I NV4 User s Manual ...
Page 1642: ...2 Handling Problems 36 6 WindO I NV4 User s Manual ...
Page 1652: ...5 Text Alignment A 10 WindO I NV4 User s Manual ...
Page 1664: ...Index 12 WindO I NV4 User s Manual ...