AND Logical Operations

Inputs/Outputs Operands Data Types
IN1, IN2 VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW, AIW, T, C, LW, VD, ID, QD, MD, SD, SMD, LD, HC, AC, Constant, *VD, *AC, *LD BYTE, WORD, DWORD
OUT VB, IB, QB, MB, SB, SMB, LB, VW, IW, QW, MW, SW, SMW, T, C, LW, VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD BYTE, WORD, DWORD

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
The AND function ANDs the corresponding bits of IN1 and IN2 and loads the result into OUT.

The input and output data types can vary, but must be of the same type.

Error Conditions that Set ENO = 0:

SM4.3 (run-time), 0006 (indirect address)

This function affects the following Special Memory bits:

SM1.0 (zero)


See Also:

Using IEC Overloaded Instructions