Lenze DDS v2.3 Manual do Utilizador Página 275

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 340
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 274
Drive PLC Developer Studio
IEC 61131-3 Operators
12-5
l DDS EN 2.3
12.2.2 OR
Bit-by-bit OR of bit operands
Examples
IL Var1 : BYTE;
LD 2#1001_0011
OR 2#1000_1010
ST Var1 (* Var1 = 2#1001_1011 *)
FBD
ST Var1 := 2#1001_0011 OR 2#1000_1010
Note!
Make sure to observe the following when using 68xxx or C-code generators in the FBD for the
illustrated program sequence.
As soon as the input variable a assumes the value TRUE, the assignment of the value of the second
input variable at the OR operator organization unit to the variable z will no longer be performed as
a consequence of the optimized processing procedure within the FBD.
12.2.3 XOR
Bit-by-bit XOR of bit operands
Examples
IL Var1 : BYTE;
LD 2#1001_0011
XOR 2#1000_1010
ST Var1 (* Var1 = 2#0001_1001 *)
FBD
ST Var1 := 2#1001_0011 XOR 2#1000_1010
12.2.4 NOT
Bit-by-bit inversion of a bit operand
The operand should be of type BOOL, BYTE, WORD or DWORD.
Examples
IL Var1 : BYTE;
LD 2#1001_0011
NOT
ST Var1 (* Result = 2#0110_1100 *)
FBD
ST Var1 := NOT 2#1001_0011
Show/Hide Bookmarks
Vista de página 274
1 2 ... 270 271 272 273 274 275 276 277 278 279 280 ... 339 340

Comentários a estes Manuais

Sem comentários