IDEC SmartAXIS FT9Z-1A01 User Manual page 320

Table of Contents

Advertisement

13: S
CR I P TS
■Bit operator
Operator
&
|
^
~
~
<<
>>
Function
Device, constant, and temporary device are described as
■Bit function
Function
Bit set
SET(
Bit reset
RST(
Bit reverse
REV(
■Word function
Arithmetic operation
Function
Maximum value
MAX(
Mininum value
MIN(
Exponential
EXP(
function
Natural logarithm
LOGE(
(base: e)
Common logarithm
LOG10(
(Base: 10)
Exponentiation
POW(
Square root
ROOT(
Sine
SIN(
Cosine
COS(
Tangent
TAN(
13-12
Format
Calculates the logical product (AND) of each bit of
&
Calculates the logical sum (OR) of each bit of
|
Calculates the exclusive logical sum (XOR) of each bit of
^
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
<<
Shifts each bit of
>>
Format
Turns bit device
);
This is the same result as
Turns bit device
);
This is the same result as
Reverses the 1 and 0 of bit device
);
This is the same result as
Format
Maximum value out of
This can be used for all data types.
,
,
)
Up to 15 arguments can be defined.
Minimum value out of
This can be used for all data types.
,
,
)
Up to 15 arguments can be defined.
Exponential function of
)
This can only be used for data type F (float).
Natural logarithm (base is e) for
This can only be used for data type F (float).
)
Set a value larger than 0 for argument.
Common logarithm (base is 10) for
This can only be used for data type F (float).
)
Set a value larger than 0 for argument.
,
)
This can only be used for data type F (float).
Square root of
)
This can only be used for data type F (float).
Sine of
Specify arbitrary formula to represent angle (units in radian) for argument
)
This can only be used for data type F (float).
Cosine of
Specify arbitrary formula to represent angle (units in radian) for argument
)
This can only be used for data type F (float).
Tangent of
Specify arbitrary formula to represent angle (units in radian) for argument
)
This can only be used for data type F (float).
S
A XI S P
M AR T
R O
to the left for
to the right for
,
,
,
... here.
to 1.
= 1;.
to 0.
= 0;.
= ~
,
,
,
is returned.
to the
power is returned.
is returned.
(-1 to +1) is returned.
(-1 to +1) is returned.
(-1 to +1) is returned.
/ L
U
'
M
FT9Y-B 1378
I TE
SER
S
ANUAL
Description
and
and
.
and
.
bit(s).
bit(s).
Description
.
;.
Description
,
is returned.
is returned.
is returned.
is returned.
.
.
.
.
.

Advertisement

Table of Contents
loading

Table of Contents