Siemens NAN 67 Series Manual de Serviço Página 207

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 206
16-3
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
15... ...8 7... ...0
0 1 0 1
0 1 0 1 0 1 0 10 0 0 0
0 1 0 01 1 0 1
IN
N
OUT 0 0 0 0
1 1 1 1
0 0 0 0 1 1
6 places
Parameters:
The signal state of the bit that is shifted out
last is stored in bit CC 1 of the status word
(same as the signal state of ENO).
These five bits
are lost.
The vacated places
are filled with zeros.
Table 16-1 Shift Left Word Box and Parameters
LAD Box
Parameter Data Type Memory Area Description
SHL W
EN BOOL I, Q, M, D, L Enable input
SHL
_
W
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN
EN
OU
T
ENO
IN WORD I, Q, M, D, L Value to shift
IN
N
OUT
N WORD I, Q, M, D, L Number of bit positions by which to shift
N
OUT WORD I, Q, M, D, L Result of shift operation
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x 0 x 1 x x
I 0.0
A signal state of 1 at input I 0.0
activates the instruction.
Memory word MW0 is shifted to the
left by the number of bits specified in
memory word MW2.
The result is put into memory word
MW4. If the signal state of the bit
shifted last was 1, output Q4.0 is set.
Q 4.0
SHL_W
N
OUT
EN ENO
MW2
IN
Function is executed (EN = 1):
MW4
MW0
S
Figure 16-1 Shift Left Word
Shift and Rotate Instructions
Vista de página 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 317 318

Comentários a estes Manuais

Sem comentários