Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 161

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
3) If there are 3 or more
and
" and
s2
If there is
s4
sum of
s1
required number of times for all input labels
Example: When the data type is bit
FALSE
s1
XOR
TRUE
s2
TRUE
Result
Cautions
When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different from
simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
Program example
In this program, the exclusive logical sum is obtained using each bit of word [unsigned]/bit string [16-bit] data
stored in devices specified in
using the data type of data stored in devices specified in
[Structured ladder]
g_bool1
g_word1=16#AAAA
g_word2=16#1BF0
[ST]
g_bool3:=XOR_E(g_bool1,g_word1,g_word2,g_word3);
, the exclusive logical sum is obtained using the "exclusive logical sum of
s
.
s3
, the exclusive logical sum is obtained using the "exclusive logical sum of "exclusive logical
and
" and "
"" and
s2
s3
When the number
of "_IN" is 3
TRUE
XOR
TRUE
s3
FALSE
Result
and
s1
s2
XOR_E
EN
ENO
_IN
_IN
. In this way, the exclusive logical sum is obtained the
s4
...
s5
s6
When the number
of "_IN" is 4
FALSE
XOR
TRUE
s4
TRUE
Result
Result
, and the operation result is output to a device specified in
and
.
s2
s1
g_bool3
g_word3=16#B15A
5.5 Standard Bitwise Boolean Functions
When the number
of "_IN" is 5
TRUE
XOR
TRUE
s5
After that, the exclusive
logical sum is obtained
the required number of
times.
FALSE
1
s1
2
3
4
5
d
6
A
159

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents