EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #516 background imageLoading...
Page #516 background image
26: S
CRIPT
26-14 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
â– 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 .
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
|
|
Calculates the logical sum (OR) of each bit of and .
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
^
^
Calculates the exclusive logical sum (XOR) of each bit of and .
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
~
~
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.
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
<<
<<
Shifts each bit of to the left for bit(s).
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
>>
>>
Shifts each bit of to the right for bit(s).
Data types W (word), I (integer), D (double word), and L (long) can be used. F (float)
cannot be used.
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).

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals