Logical Not - 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.4 Logical NOT

The logical NOT of the specified data is operated.
Function definition
Function definition
6 - 46
NOT
NOT_E
ANY_BIT NOT( ANY_BIT S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
ANY_BIT
Logical NOT operation result
Remarks:
Example of use
Argument Type
BOOL
b_result := NOT( b_data1 );
Word device
d0z2 := NOT( d1z3 );
BOOL NOT_E( BOOL EN, ANY_BIT S1, ANY_BIT D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the logical NOT of the data stored in
(*
D0 is found, and the result is stored into D100.
M0:=NOT_E( X0, D0, D100 );
Data to be logical NOT operated
ST Program
Conversion Result
LDI
OUT
LD
CML
Execution condition (Function is executed only when the result is TRUE)
Data to be logical NOT operated
Logical NOT operation result
For the usable data type, refer to "3.2.2 About ANY type".
Description
Description
Used Instruction
b_data1
LDI, OUT
b_result
SM400
LD, CML
D1Z3 D0Z2
Description
Description
*)
*)
6 - 46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents