Documente Academic
Documente Profesional
Documente Cultură
MicroLogix
MicroLogix 1500
1000
1200
1-Input scan
2-Program scan
3-Output scan
1-Input scan
2-Program scan
3-Output scan
4-Service communications
5-Overhead
MEMRIA DO SLC
O0 - Sada
I1 - Entrada
S2 - Status
Dados
B3 - Bit
T4 - Temporizador
0C5System
- Contador
1R6Reservado
- Controle
2N7
Ladder
Principal
- Inteiro
Programa
3 Usurio
F8 - Flutuante
M
X9
M
255 X255
Usurio
CLP 5
3-999
3-999
3-999
3-999
3-999
3-999
3-999
3-999
3-999
B3
15
14
13
12
11
10
B3:1/4 = B3/20
B3/40 = B3:2/8
40 16
8 2
N7
xxxx
yyyy
xxxx
zzzz
yyyy
tttt
zzzz
bbbb
F8
ccccc
dddd
eeee
T4
aaaa
bbbb
ccccc
ENDEREAMENTO DIRETO.
O DADO ARMAZENADO NO ENDEREO ESPECIFICADO USADO NA
INSTRUO.
Exemplos:
N7:0
T4:10.ACC
I:1/0
O:3.0
N[N7:0]:[N7:1]
ENDEREAMENTO INDEXADO
O DADO ARMAZENADO NO ENDEREO INDEXADO (COM #
ANTECEDENDO O ENDEREO) SOMADO COM O VALOR DE S:24
(REGISTRO
DE
NDICE
=>ELEMENTO
OFFSET
ENDEREAMENTO).
Exemplos: #N52:938 se S:24 5 => #N52:938 =N52:943
UTILIZADO
NO
INSTRUES DE BIT
Aberto
Falsa
0.44 s
Fechado
Verdadeira
0.44 s
Modos de Endereamento
Parmetro
Endereamento vlido
Bit fonte
Direto
O,I,S,B,T,C e N
Exemplos: I:1/0
O:4/3
Aberto
Verdadeira
0.44 s
Fechado
Falsa
0.44 s
M odos de Endereamento
Parmetro
Endereamento vlido
Bit fonte
Direto
O,I,S,B,T,C e N
Exemplos: I:1/0
O:4/3
Estado do Bit
Disp. de Sada
Verdadeira
Energizado
0.63 s
Falsa
Desenergizado
0.63 s
Estado Bit
Disp. de Sada
1a varredura
2a varredura
inicial
final
inicial
Ligado
Ligado
Ligado
Ligado
final
Estado Bit
Disp. de Sada
1a varredura
2a varredura
inicial
final
inicial
Desligado
Desligado
Desligado
Desligado
final
Aplicao:
On
off
Bit
EN
On
off
Bit
TT
On
off
Bit
DN
On
off
9s
Tempo
acumulado
3s
TON
TIMER ON DELAY
Timer
Timer Base
Preset
Accum
T4:0
0.01
900
0
[EN]
[DN]
USO INTERNO
On
off
Bit
EN
On
off
Bit
TT
On
off
Bit
DN
On
off
9s
Tempo
acumulado
3s
TOF
TIMER OFF DELAY
Timer
Timer Base
Preset
Accum
T4:0
0.01
900
0
[EN]
[DN]
USO INTERNO
Condio
de entrada
On
off
Bit
EN
On
off
Bit
TT
On
off
Bit
DN
On
off
Instruo
de reset
On
off
9s
3s
Tempo
acumulado
RTO
RETENTIVE TIMER ON
Timer
Timer Base
Preset
Accum
T4:2
0.01
900
0
[EN]
[DN]
USO INTERNO
RES - RESET
Smbolo:
( RES )|
( RES )|
Essas instrues de sada contam acima ou abaixo para cada transio falsopara-verdadeiro das condies precedendo-a na linha e produz uma sada
quando o valor acumulado alcana o valor predefinido.
Counter
Preset
Accum
[EN]
C5:0
10
0
[DN]
CTD
COUNT DOWN
Counter
Preset
Accum
[EN]
C5:1
10
0
[DN]
Bits de Instruo:
O valor acumulado mantido aps a instruo CTU ou CTD ir para falso, e quando a
alimentao do processador removida e restaurada. E tambm, o status ativado ou
desativado de bits de fim de contagem, estouro e estouro negativo mantido. O valor
acumulado e os bits de controle so reinicializados quando uma RES ativada.
INSTRUES DE COMPARAO
EQU - EQUAL;
NEQ - DIFERENTE;
CMP - COMPARAO;
INSTRUES DE COMPARAO
EQU - EQUAL - (Igual)
Parmetro
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin - fmax
Exemplo:
EQU
EQUAL
Source A
Source B
N7:0
10
15
INSTRUES DE COMPARAO
NEQ - NOT EQUAL TO - (Diferente)
Endereamento vlido
Arquivos vlidos
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F none
Exemplo:
NEQ
NOT EQUAL
Source A
Source B
N7:1
10
15
Valor imediato
INSTRUES DE COMPARAO
Parmetro
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin a fmax
Exemplo:
LES
LESS THAN
Source A
Source B
N7:2
10
15
INSTRUES DE COMPARAO
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin a fmax
Exemplo:
LEQ
LESS THAN OR EQUAL
Source A
Source B
N7:1
10
15
INSTRUES DE COMPARAO
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin a fmax
Exemplo:
GRT
GREATER THAN
Source A
Source B
N7:1
10
15
INSTRUES DE COMPARAO
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin a fmax
GEQ
Exemplo:
Source A
Source B
N7:1
10
15
INSTRUES DE COMPARAO
Representao no RSLogix:
CMP
COMPARE
Expression
N7:5 = N7:10
Aplicao:
INSTRUES DE COMPARAO
Endereamento vlido
Arquivos vlidos
Valor imediato
Source A
Direto e Indireto
O,I,S,B,T,C,R,N,F
none
Source B
Direto e Indireto
O,I,S,B,T,C,R,N,F
-32.768 a 32.767
fmin a fmax
MEQ
MASKED EQUAL
Exemplo:
Source
B3:1
110010011001100
B3:2
Mask
FF00
B3:3
Compare
1100110011111111
INSTRUES DE COMPARAO
LIM
LIMIT TEST
Low Limit
Test
High Limit
N7:0
10
N7:1
45
N7:2
50
INSTRUES DE COMPARAO
LIM - LIMIT TEST
TESTE LIMITE: SE LOW LIMIT < HIGH LIMIT
A) TEST >=LOW LIMIT?
B) TEST <= HIGH LIMIT?
TEST = A and B
LOW
HIGH
Test >= Low Limit
Test <= High Limit
Test dentro do intervalo
INSTRUES DE COMPARAO
LIM - LIMIT TEST
TESTE LIMITE: SE LOW LIMIT > HIGH LIMIT
A) TEST >=LOW LIMIT?
B) TEST <= HIGH LIMIT?
TEST = A or B
HIGH
LOW
Test >= Low
INSTRUES DE COMPARAO
LIM - LIMIT TEST - Aplicao
INSTRUES MATEMTICAS
ADD - ADIO;
SUB - SUBTRAO;
MUL - MULTIPLICAO;
DIV - DIVISO;
SLC - ESCALONAMENTO;
INSTRUES MATEMTICAS
Bits de Estado Aritmticos
Bit
Descrio
S:0/0
S:0/1
S:0/2
S:0/3
S:5/0
Aplicao:
INSTRUES MATEMTICAS
ADD - SOMA
O VALOR DE SOURCE A COM SOURCE B E COLOCA NO ENDEREO
DE DESTINO (D=A+B);
ADD
ADD
Source A
Source B
Dest
INSTRUES MATEMTICAS
SUB - SUBTRAO
SUBTRAI O VALOR DE SOURCE B DO SOURCE A E ARMAZENA NO
ENDEREO DE DESTINO (D=A-B);
SUB
SUBTRACT
Source A
Source B
Dest
INSTRUES MATEMTICAS
MUL - MULTIPLICAO
O VALOR DE SOURCE A MULTIPLICADO POR SOURCE A E
ARMAZENADO NO DESTINO (D=AxB);
MUL
MULTIPLY
Source A
Source B
Dest
INSTRUES MATEMTICAS
DIV - DIVISO
O VALOR SOURCE A DIVIDIDO POR SOURCE B E O QUOCIENTE
ARREDODADO ARMAZENADO NO DESTINO (D=A/B);
DIV
DIVIDE
Source A
Source B
Dest
INSTRUES MATEMTICAS
SQ R
SQUARE ROOT
Source
Dest
N7:5
100
N7:6
10
Dest =
Source
INSTRUES MATEMTICAS
SCL - ESCALONAMENTO
SLC 5/02 OU MAIOR
MicroLogix
SCL
SCALE
Source
Rate [/10000]
Offset
Dest
Dest
= Source
Rate
10000
+ Offset
N7:0
25
18000
32
N7:1
77
77
F = 1.8 x C + 32
32
25
INSTRUES MATEMTICAS
SCL - SCALE - (Escalonamento)
Aplicao:
Range PT: -14,7 30 psi
-300 610,8 dinHg
Sinal: 4 a 20 mA;
Rep. Memria: 3277 a 16384
INSTRUES MATEMTICAS
SCP - ESCALONAMENTO COM PARMETROS
SLC 5/03 OS302, 5/04 OS401, 5/05 Micrologix 1200 e 1500.
Output (psi)
SCP
SCALE
Input
Input Min.
N7:0
3277
3277
Input Max.
16384
Scaled Min.
N7:1
-14.7
N7:2
30.0
N7:3
0
Scaled Max.
Output
30.0
-14.7
3277
16384
4mA
20mA
Input
MOV - MOVIMENTAO;
AND - E;
OR - OR;
XOR - OR EXCLUSIVO.
Dest
N7:0
300
N10:0
300
Dest
N7:2
00AB
AND
BITWISE AND
Source A
N7:5
0000111111111010
Source B
N7:6
0000000000001100
N7:7
Dest
0000000000001000
A
0
1
0
1
B
0
0
1
1
D
0
0
0
1
Onde: D = A AND B
OR
BITWISE INCLUS OR
Source A
Source B
Dest
N7:5
1010
N7:6
1100
N7:7
1110
A
0
1
0
1
B
0
0
1
1
D
0
1
1
1
Onde: D = A OR B
XOR
BITWISE EXCLUS OR
Source A
Source B
Dest
N7:5
1010
N7:6
1100
N7:7
0110
A
0
1
0
1
B
0
0
1
1
D
0
1
1
0
Onde: D = A XOR B
XOR - Aplicao:
INSTRUO DE CPIA
#N7:0
Dest
#N10:0
Length
N7
xxxx
xxxx
yyyy
yyyy
zzzz
zzzz
tttt
tttt
N10
INSTRUO DE CPIA
COP
COPY FILE
Source
Dest
Length
#N7:0
#F8:0
2
N7
xxxx
bbbb
yyyy
ccccc
zzzz
tttt
F8
dddd
eeee
COP
COPY FILE
Source
Dest
Length
#F8:10
#N10:10
2
F8
bbbb
ccccc
10
N10
xxxx
yyyy
INSTRUO DE CPIA
COP - Aplicao: