Infosys在阅读器中打开 / AI 翻译

PLC · 0 次阅读

OR

The IEC operator is used for bitwise OR of bit operands.

If at least one of the input bits is 1, the output bit is 1, otherwise 0.

Permitted data types: BOOL, BYTE, WORD, DWORD, LWORD

Examples:

Result: nVar is 2#1001_1011.

ST:

nVar := 2#1001_0011 OR 2#1000_1010 

FBD:

OR 1: