Rockwell-automation 1761 MicroLogix 1000 Programmable Controllers Manual de usuario Pagina 141

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 422
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 140
Using Math Instructions
8–9
Divide (DIV)
Use the DIV instruction to divide one value (source A) by another (source B), and
place the rounded quotient in the destination. If the remainder is 0.5 or greater, the
destination is rounded up.
Updates to Arithmetic Status Bits
With this Bit: The Controller:
S:0/0 Carry (C) always resets.
S:0/1 Overflow (V)
sets if division by zero or overflow is detected; otherwise
resets. On overflow, the minor error flag is also set. The value
32,767 is placed in the destination. If S:2/14 (math overflow
selection bit) is set, then the unsigned, truncated overflow
remains in the destination.
S:0/2 Zero (Z)
sets if result is zero; otherwise resets; undefined if overflow is
set.
S:0/3 Sign (S)
sets if result is negative; otherwise resets; undefined if
overflow is set.
Changes to the Math Register
The unrounded quotient is placed in the most significant word, the remainder is
placed in the least significant word.
Programming
Execution Times
(µsec) when:
True False
147.87 6.78
DIV
DIVIDE
Source A
Source B
Dest
Vista de pagina 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 421 422

Comentarios a estos manuales

Sin comentarios