Bit Type Boolean Functions; Logical Product - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.7 Bit Type Boolean Functions

6.7.1 Logical product

The logical product of the specified multiple data is operated.
Function definition
6 - 43
AND_E
BOOL
AND_E( BOOL EN, ANY_BIT S1, ANY_BIT S2,...., ANY_BIT Sn, ANY_BIT
D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
Argument Type
BOOL
b_result := AND_E( b_select,
b_data1, b_data2, b_data3,
b_data4 );
Word device
b_result := AND_E( b_select,
d0, d1, d2, d3 );
Execution condition (Function is executed only when the result is TRUE)
Data to be ANDed
AND operation result
ST Program
Conversion Result
LD
AND
AND
OUT
LD
AND
SET
LD
ANI
RST
LD
OUT
LD
WAND
WAND
LD
OUT
For the usable data type, refer to "3.2.2 About ANY type".
Description
Description
Used Instruction
b_data1
LD,AND,OUT,SET,
ANI,RST
b_data2
b_data3
M8191
b_select
M8191
b_data4
b_select
M8191
b_data4
b_select
b_result
b_select
LD, WAND, OUT
D0
D1
D10239
D10239
D2
D3
b_select
b_result
6 - 43

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents