Mitsubishi Electric MELSEC-Q/L Programming Manual page 144

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
Operation error
• No operation error occurs.
Program example
■AND_E
The program which performs Boolean AND on bit, word (unsigned)/16-bit string type data input to (s1) to (s28) bit by bit, and
outputs the operation result from (d) in the same data type as that of (s1) to (s28).
[Structured ladder/FBD]
[ST]
g_bool2 := AND_E(g_bool1, g_word1, g_word2, g_word3);
■OR_E
The program which performs Boolean OR on bit, word (unsigned)/16-bit string type data input to (s1) to (s28) bit by bit, and
outputs the operation result from (d) in the same data type as that of (s1) to (s28).
[Structured ladder/FBD]
[ST]
g_bool2 := OR_E(g_bool1, g_word1, g_word2, g_word3);
■XOR_E
The program which performs Boolean XOR on bit, word (unsigned)/16-bit string type data input to (s1) to (s28) bit by bit, and
outputs the operation result from (d) in the same data type as that of (s1) to (s28).
[Structured ladder/FBD]
[ST]
g_bool2 := XOR_E(g_bool1, g_word1, g_word2, g_word3);
5 APPLICATION FUNCTIONS
142
5.4 Standard Bitwise Boolean Functions
ENO
TRUE
*1
FALSE
(d)
Operation output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents