13: S
CRIPTS
13-12
S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
■
Bit operator
Function
Device, constant, and temporary device are described as
,
,
,
... here.
■
Bit function
■
Word function
Arithmetic operation
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
.
~
~
Inverse the logic of each bits of
.
For word devices and fixed values, 0 will be 65,535, and 65,535 will be 0.
For bit device, 0 will be 1, and 1 will be 0.
<<
<<
Shifts each bit of
to the left for
bit(s).
>>
>>
Shifts each bit of
to the right for
bit(s).
Function
Format
Description
Bit set
SET(
);
Turns bit device
to 1.
This is the same result as
= 1;.
Bit reset
RST(
);
Turns bit device
to 0.
This is the same result as
= 0;.
Bit reverse
REV(
);
Reverses the 1 and 0 of bit device
.
This is the same result as
= ~
;.
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.
Mininum 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 F (float).
Natural logarithm
(base: e)
LOGE(
)
Natural logarithm (base is e) for
is returned.
•
This can only be used for data type F (float).
•
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 F (float).
•
Set a value larger than 0 for argument.
Exponentiation
POW(
,
)
to the
power is returned.
•
This can only be used for data type F (float).
Square root
ROOT(
)
Square root of
is returned.
•
This can only be used for data type F (float).
Sine
SIN(
)
Sine of
(-1 to +1) is returned.
Specify arbitrary formula to represent angle (units in radian) for argument
.
•
This can only be used for data type F (float).
Cosine
COS(
)
Cosine of
(-1 to +1) is returned.
Specify arbitrary formula to represent angle (units in radian) for argument
.
•
This can only be used for data type F (float).
Tangent
TAN(
)
Tangent of
(-1 to +1) is returned.
Specify arbitrary formula to represent angle (units in radian) for argument
.
•
This can only be used for data type F (float).
Содержание FT1A-B12RA
Страница 1: ...FT9Y B1378 5 ...
Страница 2: ......
Страница 208: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 226: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 340: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 384: ...APPENDIX A 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 European Font ISO 8859 1 Cyrillic Font ANSI 1251 ...
Страница 385: ...SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 A 19 APPENDIX Japanese Font JIS X0201 ...
Страница 386: ...APPENDIX A 20 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...