Escolar Documentos
Profissional Documentos
Cultura Documentos
1 RLO 21 RLO
2 STA 22 Status
3 OR 23 Or (ou)
4 OS 24 Stored overflow
5 OV 25 Overflow
8 BR 28 Binary result
Verificação em LAD
Chamada de
Bloco
Operação Aritmética
• JN Label1) Salta se na palavra de status o bit "CC1" não for igual a "CC0"
(Resultado <> 0)
• JUO Label1) Salta se: número real inválido “desordenado” ou divisão por zero
Alternativa
#Recipe_Number
=0 =1 =2 outros
L …Bay[1] L …Bay[2] L …Bay[3] L W#16#EEEE
T "QW_DigDisp"
Transfere para o
NEXT: contador de voltas
NEXT: T MW10 // Início do loop
Sessão de códigos
a serem executados . // Código
diversas vezes
. // Código
Carrega o contador de
voltas no ACCU1. . // Código
CAW:
ACCU1-HH ACCU1-HL ACCU1-LH ACCU1-LL
V4 V3 V2 V1
V4 V3 V1 V2
CAD:
V4 V3 V2 V1
V1 V2 V3 V4
0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0
0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0
SLD 2 (Deslocar palavra dupla para a esquerda – “Shift Left Doubleword” – em 2 posições):
0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0
A1 0 (ACCU 1 – H) (ACCU 1 – L)
1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0
S7-300:
ACCU2 V2 V1
ACCU1 V1 V2
antes TAK depois
S7-400:
ACCU4 V4 V4
ACCU3 V3 V3
ACCU2 V2 V1
ACCU1 V1 V2
antes TAK depois
S7-300:
ACCU2 V2 V1 V2 V2
ACCU1 V1 V1 V1 V2
antes PUSH depois antes POP depois
S7-400:
ACCU4 V4 V3 V4 V4
ACCU3 V3 V2 V3 V4
ACCU2 V2 V1 V2 V3
ACCU1 V1 V1 V1 V2
antes PUSH depois antes POP depois
ENT:
ACCU4 V4 V3
ACCU3 V3 V2
ACCU2 V2 V2
ACCU1 V1 V1
antes depois
LEAVE:
ACCU4 V4 V4
ACCU3 V3 V4
ACCU2 V2 V3
ACCU1 V1 V1
antes depois
S7- 300:
ACCU2 V2 V2
ACCU1 V1 V2 op V1
antes op: +., -., *., /. depois
S7- 400:
ACCU4 V4 V4
ACCU3 V3 V4
ACCU2 V2 V3
ACCU1 V1 V2 op V1
antes op: +., -., *., /. depois
S7- 300:
ACCU2 V2 V2
ACCU1 V1 V2 op V1
antes op: A.., O.., X.., depois
S7- 400:
ACCU4 V4 V4
ACCU3 V3 V3
ACCU2 V2 V2
ACCU1 V1 V2 op V1
antes op: A.., O.., X.., depois
0 0 0 5 0 0 3 3
(IN_OUT)
OnOff = 0 ?
sim não
OnOff 0->1 ?
ou
Running light =0 ?
QB 8
sim não
Pulso 0 -> 1 ?
sim não
Running light Set Set Shift running light
após warm running running
light light em 1 posição /
restart =0 =1 para a esquerda
Y2 P2
Y1 P1
X
X1 X2