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).
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...