respostas exercicios.pdf

97
RSLogix500 Project Report

Upload: marcos-rezende

Post on 06-Feb-2016

36 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Respostas Exercicios.pdf

RSLogix500 Project Report

Page 2: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Processor Information

Page 1 Friday, June 09, 2006 - 09:27:36

�Processor Type: 1747-L542B 5/04 CPU - 32K Mem. OS401

�Processor Name: RIO

�Total Memory Used: 1367 Instruction Words Used - 733 Data Table Words Used

�Total Memory Left: 27305 Instruction Words Left

�Program Files: 35

�Data Files: 18

�Program ID: 50d2

Page 3: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

I/O Configuration

Page 1 Friday, June 09, 2006 - 09:27:36

�0 1747-L542B 5/04 CPU - 32K Mem. OS401 �1 1746-IB16 16-Input (SINK) 24 VDC �2 1746-OB16 16-Output (TRANS-SRC) 10/50 VDC �3 1746-IB16 16-Input (SINK) 24 VDC �4 1746-OB16 16-Output (TRANS-SRC) 10/50 VDC �5 1746-IB16 16-Input (SINK) 24 VDC �6 1746-OB16 16-Output (TRANS-SRC) 10/50 VDC �-- --------------- ----------------------------------- �7 1746-NIO4V Analog 2 Ch In/2 Ch Voltage Out �8 1746-NIO4V Analog 2 Ch In/2 Ch Voltage Out �9 �10 �11 �12 �13

Page 4: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Channel Configuration

Page 1 Friday, June 09, 2006 - 09:27:36

�GENERAL� Channel 1 Write Protected: No� Channel 1 Edit Resource/Owner Timeout: 60� Channel 1 Passthru Link ID: 2

� Channel 0 Write Protected: No� Channel 0 Edit Resource/Owner Timeout: 60� Channel 0 Passthru Link ID: 1� Channel 0 Current Mode: System� Channel 0 Mode Change Enabled: No� Channel 0 Mode Change Attention Character: \1b� Channel 0 Mode Change System Character: S� Channel 0 Mode Change User Character: U

�CHANNEL 1 (SYSTEM) - Driver: DH+� Node : 2 (octal)� Baud: 57.6K

�CHANNEL 0 (SYSTEM) - Driver: DF1 Full Duplex� Source ID: 0 (decimal)� Baud: 19200� Parity: NONE� Stop Bits: 1� Control Line : No Handshaking� Error Detection: CRC� Embedded Responses: Enabled� Duplicate Packet Detect: Yes� ACK Timeout: 50� NAK Retries: 3� ENQ Retries: 3

�CHANNEL 0 (USER) - Driver: ASCII� Baud: 19200� Parity: NONE� Stop Bits: 1� Data Bits: 8� Control Line : No Handshaking� Delete mode: Ignore� Echo: No� XON/XOFF: No� Termination Character 1: \d� Termination Character 2: \ff� Append Character 1: \d� Append Character 2: \a

Page 5: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Program File List

Page 1 Friday, June 09, 2006 - 09:27:36

Name Number Type Rungs Debug Bytes

�[SYSTEM] 0 SYS 0 No 0 1 SYS 0 No 0PRINCIPAL 2 LADDER 2 No 19FURADEIRA 3 LADDER 5 No 107SEMAFORO 4 LADDER 11 No 192MOTORES 5 LADDER 7 No 259TAXA 6 LADDER 6 No 131RELOGIO 7 LADDER 12 No 203�RELOGIO2 8 LADDER 19 No 349�RELOGIO3 9 LADDER 22 No 433�RELOGIO4 10 LADDER 38 No 802�SEMAFORO2 11 LADDER 5 No 103�FLIP-FLOP 12 LADDER 3 No 69PID 13 LADDER 7 No 155�MSG_WR 14 LADDER 4 No 122�PID2 15 LADDER 16 No 397INDIRETO 16 LADDER 3 No 40INDEXADO 17 LADDER 4 No 49�REL-ANA 18 LADDER 41 No 969�SCP-SCL 19 LADDER 19 No 582MOTOR ADV 20 LADDER 12 No 175�MOTOR ADV1 21 LADDER 13 No 184SEL MOTOR 22 LADDER 6 No 146�COP / FLL 23 LADDER 3 No 59�COP_FLL EX 24 LADDER 5 No 90�FIFO/LIFO 25 LADDER 5 No 115MÉDIA 26 LADDER 8 No 241BSL 27 LADDER 3 No 47BSR 28 LADDER 3 No 47GARRAFAS 29 LADDER 10 No 225SQO 30 LADDER 2 No 37SQL 31 LADDER 3 No 60SQC 32 LADDER 2 No 37�MOTOR-SQO 33 LADDER 11 No 370STI 34 LADDER 2 No 24

Page 6: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File List

Page 1 Friday, June 09, 2006 - 09:27:36

Name Number Type Scope Debug Words Elements Last

OUTPUT 0 O Global No 21 7 �O:6INPUT 1 I Global No 21 7 �I:6STATUS 2 S Global No 0 164 �S:163BINARY 3 B Global No 3 3 �B3:2TIMER 4 T Global No 39 13 �T4:12COUNTER 5 C Global No 21 7 �C5:6CONTROL 6 R Global No 42 14 �R6:13INTEGER 7 N Global No 18 18 �N7:17FLOAT 8 F Global No 2 1 �F8:0PID 9 N Global No 23 23 �N9:22�PV_STD 10 N Global No 20 20 �N10:19FILE 11 N Global No 100 100 �N11:99�FILE2 12 N Global No 100 100 �N12:99 13 N Global No 100 100 �N13:99MOTORES 14 N Global No 100 100 �N14:99OFF MOTOR 15 N Global No 9 9 �N15:8�MSG-WR 16 N Global No 100 100 �N16:99�N17 17 N Global No 14 14 �N17:13

Page 7: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 2 - PRINCIPAL - PROGRAMA PRINCIPAL --- Total Rungs in File = 2

Page 1 Friday, June 09, 2006 - 09:27:37

0000I:3

15 1746-IB16

Habilitar BRPETROBRAS

JSRJump To SubroutineSBR File Number U:32

JSR

0001 END

Page 8: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 3 - FURADEIRA - exercício D --- Total Rungs in File = 5

Page 1 Friday, June 09, 2006 - 09:27:37

0000I:3

0 1746-IB16

CHAVE LIGACH1

I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

LO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

LO:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0001I:3

2 1746-IB16

seta relogioSETA_RELOGIO

LO:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

UO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0002I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

UO:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

UO:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

0003RET

ReturnRET

0004 END

Page 9: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 4 - SEMAFORO - exercício E --- Total Rungs in File = 11

Page 1 Friday, June 09, 2006 - 09:27:38

0000I:3

0 1746-IB16

CHAVE LIGACH1

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

EN

DN

TONTimer On DelayTimer T4:0Time Base 1.0Preset 100<Accum 0<

TON

TIMER 1TIMER_VERMELHO

0001T4:0

TT

TIMER 1TIMER_VERMELHO/TT

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0002T4:0

DN

TIMER 1TIMER_VERMELHO/DN

REST4:0

TIMER 1TIMER_VERMELHO

0003I:3

0 1746-IB16

CHAVE LIGACH1

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

EN

DN

TONTimer On DelayTimer T4:1Time Base 1.0Preset 10<Accum 0<

TON

TIMER 2TIMER_VERDE

0004T4:1

TT

TIMER 2TIMER_VERDE/TT

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

0005T4:1

DN

TIMER 2TIMER_VERDE/DN

REST4:1

TIMER 2TIMER_VERDE

0006I:3

0 1746-IB16

CHAVE LIGACH1

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

EN

DN

TONTimer On DelayTimer T4:2Time Base 1.0Preset 3<Accum 0<

TON

TIMER 3TIMER_AMARELO

0007T4:2

TT

TIMER 3TIMER_AMARELO/TT

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0008T4:2

DN

TIMER 3TIMER_AMARELO/DN

REST4:2

TIMER 3TIMER_AMARELO

Page 10: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 4 - SEMAFORO - exercício E --- Total Rungs in File = 11

Page 2 Friday, June 09, 2006 - 09:27:38

0009RET

ReturnRET

0010 END

Page 11: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 5 - MOTORES - Exercício F --- Total Rungs in File = 7

Page 1 Friday, June 09, 2006 - 09:27:38

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:3

DN

Timer 1TIMER_LIGA/DN

I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

EN

DN

TONTimer On DelayTimer T4:3Time Base 1.0Preset 2<Accum 0<

TON

Timer 1TIMER_LIGA

0001I:3

0 1746-IB16

CHAVE LIGACH1

I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

LO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0002T4:3

DN

Timer 1TIMER_LIGA/DN

O:4

3 1746-OB16

motor 4MOTOR4

LO:4

4 1746-OB16

motor 5MOTOR5

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

LO:4

3 1746-OB16

motor 4MOTOR4

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

LO:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

LO:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0003I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

T4:4

DN

TIMER 2TIMER_DESLIGA/DN

I:3

0 1746-IB16

CHAVE LIGACH1

EN

DN

TONTimer On DelayTimer T4:4Time Base 1.0Preset 3<Accum 0<

TON

TIMER 2TIMER_DESLIGA

0004I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

I:3

0 1746-IB16

CHAVE LIGACH1

UO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

Page 12: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 5 - MOTORES - Exercício F --- Total Rungs in File = 7

Page 2 Friday, June 09, 2006 - 09:27:38

0005T4:4

DN

TIMER 2TIMER_DESLIGA/DN

O:4

3 1746-OB16

motor 4MOTOR4

UO:4

4 1746-OB16

motor 5MOTOR5

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

UO:4

3 1746-OB16

motor 4MOTOR4

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

UO:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

UO:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0006 END

Page 13: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 6 - TAXA - Exercício de exemplo --- Total Rungs in File = 6

Page 1 Friday, June 09, 2006 - 09:27:38

Exercício de exemplo de verificação da variação da taxa do preset

0000T4:0

DN

TIMER 1TIMER_VERMELHO/DN

EN

DN

TONTimer On DelayTimer T4:0Time Base 1.0Preset 100<Accum 0<

TON

TIMER 1TIMER_VERMELHO

0001SCP

Scale w/ParametersInput I:7.0 32560<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 100 100<Output N7:5 0<

SCP

0002T4:0

DN

TIMER 1TIMER_VERMELHO/DN

LESLess Than (A<B)Source A N7:5 0<Source B F8:0 87.0<

LESL

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0003T4:0

DN

TIMER 1TIMER_VERMELHO/DN

SUBSubtractSource A N7:5 0<Source B 3.0 3.0<Dest F8:0 87.0<

SUB

0004I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

UO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0005 END

Page 14: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 7 - RELOGIO - exercício G --- Total Rungs in File = 12

Page 1 Friday, June 09, 2006 - 09:27:38

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:5

DN

tempo de clock dorelogioCLOCK/DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:5Time Base 1.0Preset 1<Accum 0<

TON

tempo de clock dorelogioCLOCK

0001T4:5

DN

tempo de clock dorelogioCLOCK/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0002C5:0

DN

contador segundosSEGUNDOS/DN

CU

DN

CTUCount UpCounter C5:1Preset 60<Accum 4<

CTU

contador minutosMINUTOS

0003C5:1

DN

contador minutosMINUTOS/DN

CU

DN

CTUCount UpCounter C5:2Preset 24<Accum 10<

CTU

contador horaHORA

0004C5:0

DN

contador segundosSEGUNDOS/DN

RESC5:0

contador segundosSEGUNDOS

0005C5:1

DN

contador minutosMINUTOS/DN

RESC5:1

contador minutosMINUTOS

0006C5:2

DN

contador horaHORA/DN

RESC5:2

contador horaHORA

0007I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource I:5.0 0000h<Dest C5:1.ACC 4<

FRD

MinutoMINUTOS.ACC

Page 15: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 7 - RELOGIO - exercício G --- Total Rungs in File = 12

Page 2 Friday, June 09, 2006 - 09:27:38

0008I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource I:1.0 5115h<Dest C5:2.ACC 10<

FRD

HoraHORA.ACC

0009TOD

To BCDSource C5:1.ACC 4<Dest O:6.0 0042h<

TOD

MinutoMINUTOS.ACC

0010TOD

To BCDSource C5:2.ACC 10<Dest O:2.0 1004h<

TOD

HoraHORA.ACC

0011 END

Page 16: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 8 - RELOGIO2 - exercício H --- Total Rungs in File = 19

Page 1 Friday, June 09, 2006 - 09:27:38

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:5

DN

tempo de clock dorelogioCLOCK/DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:5Time Base 1.0Preset 1<Accum 0<

TON

tempo de clock dorelogioCLOCK

0001I:3

0 1746-IB16

CHAVE LIGACH1

T4:6

DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:6Time Base 0.01Preset 1<Accum 0<

TON

0002T4:6

DNCU

DN

CTUCount UpCounter C5:3Preset 99<Accum 88<

CTU

0003T4:5

DN

tempo de clock dorelogioCLOCK/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0004C5:0

DN

contador segundosSEGUNDOS/DN

CU

DN

CTUCount UpCounter C5:1Preset 60<Accum 4<

CTU

contador minutosMINUTOS

0005C5:1

DN

contador minutosMINUTOS/DN

CU

DN

CTUCount UpCounter C5:2Preset 24<Accum 10<

CTU

contador horaHORA

0006C5:0

DN

contador segundosSEGUNDOS/DN

RESC5:0

contador segundosSEGUNDOS

0007C5:1

DN

contador minutosMINUTOS/DN

RESC5:1

contador minutosMINUTOS

Page 17: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 8 - RELOGIO2 - exercício H --- Total Rungs in File = 19

Page 2 Friday, June 09, 2006 - 09:27:38

0008C5:2

DN

contador horaHORA/DN

RESC5:2

contador horaHORA

0009C5:3

DNRESC5:3

0010I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource I:5.0 0000h<Dest C5:1.ACC 4<

FRD

MinutoMINUTOS.ACC

0011I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource I:1.0 5115h<Dest C5:2.ACC 10<

FRD

HoraHORA.ACC

0012MUL

MultiplySource A C5:2.ACC 10<Source B 100 100<Dest N7:0 11<

MUL

variavel auxiliarhoraAUX_HORA

0013ADD

AddSource A N7:0 11<Source B C5:1.ACC 4<Dest N7:0 11<

ADD

variavel auxiliarhoraAUX_HORA

0014TOD

To BCDSource N7:0 11<Dest O:2.0 1004h<

TOD

variavel auxiliarhoraAUX_HORA

Page 18: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 8 - RELOGIO2 - exercício H --- Total Rungs in File = 19

Page 3 Friday, June 09, 2006 - 09:27:39

0015MUL

MultiplySource A 100 100<Source B C5:0.ACC 1<Dest N7:1 0<

MUL

variavel auxiliarsegundosAUX_SEGUNDOS

0016ADD

AddSource A N7:1 0<Source B C5:3.ACC 88<Dest N7:1 0<

ADD

variavel auxiliarsegundosAUX_SEGUNDOS

0017TOD

To BCDSource N7:1 0<Dest O:6.0 0042h<

TOD

variavel auxiliarsegundosAUX_SEGUNDOS

0018 END

Page 19: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22

Page 1 Friday, June 09, 2006 - 09:27:39

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:5

DN

tempo de clock dorelogioCLOCK/DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:5Time Base 1.0Preset 1<Accum 0<

TON

tempo de clock dorelogioCLOCK

0001I:3

0 1746-IB16

CHAVE LIGACH1

T4:6

DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:6Time Base 0.01Preset 1<Accum 0<

TON

0002T4:6

DNCU

DN

CTUCount UpCounter C5:3Preset 99<Accum 88<

CTU

0003T4:5

DN

tempo de clock dorelogioCLOCK/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0004C5:0

DN

contador segundosSEGUNDOS/DN

CU

DN

CTUCount UpCounter C5:1Preset 60<Accum 4<

CTU

contador minutosMINUTOS

0005C5:1

DN

contador minutosMINUTOS/DN

CU

DN

CTUCount UpCounter C5:2Preset 24<Accum 10<

CTU

contador horaHORA

0006C5:0

DN

contador segundosSEGUNDOS/DN

RESC5:0

contador segundosSEGUNDOS

0007C5:1

DN

contador minutosMINUTOS/DN

RESC5:1

contador minutosMINUTOS

Page 20: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22

Page 2 Friday, June 09, 2006 - 09:27:39

0008C5:2

DN

contador horaHORA/DN

RESC5:2

contador horaHORA

0009C5:3

DNRESC5:3

0010I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 00FFh 255<Dest N7:2 3<

MVM

0011I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 0FF00h -256<Dest N7:3 1<

MVM

0012I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:3 0001h<Dest N7:4 3<

FRD

0013I:3

2 1746-IB16

seta relogioSETA_RELOGIO

DIVDivideSource A N7:4 3<Source B 100 100<Dest C5:2.ACC 10<

DIV

HoraHORA.ACC

0014I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:2 0003h<Dest C5:1.ACC 4<

FRD

MinutoMINUTOS.ACC

Page 21: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22

Page 3 Friday, June 09, 2006 - 09:27:39

0015MUL

MultiplySource A C5:2.ACC 10<Source B 100 100<Dest N7:0 11<

MUL

variavel auxiliarhoraAUX_HORA

0016ADD

AddSource A N7:0 11<Source B C5:1.ACC 4<Dest N7:0 11<

ADD

variavel auxiliarhoraAUX_HORA

0017TOD

To BCDSource N7:0 11<Dest O:2.0 1004h<

TOD

variavel auxiliarhoraAUX_HORA

0018MUL

MultiplySource A 100 100<Source B C5:0.ACC 1<Dest N7:1 0<

MUL

variavel auxiliarsegundosAUX_SEGUNDOS

0019ADD

AddSource A N7:1 0<Source B C5:3.ACC 88<Dest N7:1 0<

ADD

variavel auxiliarsegundosAUX_SEGUNDOS

Page 22: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22

Page 4 Friday, June 09, 2006 - 09:27:39

0020TOD

To BCDSource N7:1 0<Dest O:6.0 0042h<

TOD

variavel auxiliarsegundosAUX_SEGUNDOS

0021 END

Page 23: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 1 Friday, June 09, 2006 - 09:27:39

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:5

DN

tempo de clock dorelogioCLOCK/DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:5Time Base 1.0Preset 1<Accum 0<

TON

tempo de clock dorelogioCLOCK

0001I:3

0 1746-IB16

CHAVE LIGACH1

T4:6

DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:6Time Base 0.01Preset 1<Accum 0<

TON

0002T4:6

DNCU

DN

CTUCount UpCounter C5:3Preset 99<Accum 88<

CTU

0003T4:5

DN

tempo de clock dorelogioCLOCK/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0004C5:0

DN

contador segundosSEGUNDOS/DN

CU

DN

CTUCount UpCounter C5:1Preset 60<Accum 4<

CTU

contador minutosMINUTOS

0005C5:1

DN

contador minutosMINUTOS/DN

CU

DN

CTUCount UpCounter C5:2Preset 24<Accum 10<

CTU

contador horaHORA

0006I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 00FFh 255<Dest N7:2 3<

MVM

Page 24: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 2 Friday, June 09, 2006 - 09:27:39

0007I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 0FF00h -256<Dest N7:3 1<

MVM

0008I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:3 0001h<Dest N7:4 3<

FRD

0009I:3

2 1746-IB16

seta relogioSETA_RELOGIO

DIVDivideSource A N7:4 3<Source B 100 100<Dest C5:2.ACC 10<

DIV

HoraHORA.ACC

0010I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:2 0003h<Dest C5:1.ACC 4<

FRD

MinutoMINUTOS.ACC

0011MUL

MultiplySource A C5:2.ACC 10<Source B 100 100<Dest N7:0 11<

MUL

variavel auxiliarhoraAUX_HORA

Page 25: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 3 Friday, June 09, 2006 - 09:27:39

0012ADD

AddSource A N7:0 11<Source B C5:1.ACC 4<Dest N7:0 11<

ADD

variavel auxiliarhoraAUX_HORA

0013TOD

To BCDSource N7:0 11<Dest O:2.0 1004h<

TOD

variavel auxiliarhoraAUX_HORA

0014MUL

MultiplySource A 100 100<Source B C5:0.ACC 1<Dest N7:1 0<

MUL

variavel auxiliarsegundosAUX_SEGUNDOS

0015ADD

AddSource A N7:1 0<Source B C5:3.ACC 88<Dest N7:1 0<

ADD

variavel auxiliarsegundosAUX_SEGUNDOS

0016TOD

To BCDSource N7:1 0<Dest O:6.0 0042h<

TOD

variavel auxiliarsegundosAUX_SEGUNDOS

Page 26: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 4 Friday, June 09, 2006 - 09:27:39

0017I:3

3 1746-IB16

MVMMasked MoveSource I:5.0 0<Mask 00FFh 255<Dest N7:8 48<

MVM

0018I:3

3 1746-IB16

MVMMasked MoveSource I:5.0 0<Mask 0FF00h -256<Dest N7:9 2304<

MVM

0019I:3

3 1746-IB16

FRDFrom BCDSource N7:9 0900h<Dest N7:10 900<

FRD

0020I:3

3 1746-IB16

DIVDivideSource A N7:10 900<Source B 100 100<Dest N7:6 9<

DIVACHORA

0021I:3

3 1746-IB16

FRDFrom BCDSource N7:8 0030h<Dest N7:7 30<

FRDACMINUTO

0022EQU

EqualSource A N7:6 9<Source B C5:2.ACC 10<

EQUACHORA

B3:0

1

hora igualHORAIGUAL

0023EQU

EqualSource A N7:7 30<Source B C5:1.ACC 4<

EQUACMINUTO

B3:0

2

minuto igualMINUTOIGUAL

Page 27: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 5 Friday, June 09, 2006 - 09:27:39

0024I:3

4 1746-IB16

botão LigaBL1

C5:1

DN

contador minutosMINUTOS/DN

LB3:0

5

Desaciona alarmeDESALARME

0025C5:1

DN

contador minutosMINUTOS/DN

UB3:0

5

Desaciona alarmeDESALARME

0026T4:8

DN

turn offOFF/DN

B3:0

2

minuto igualMINUTOIGUAL

B3:0

1

hora igualHORAIGUAL

EN

DN

TONTimer On DelayTimer T4:7Time Base 1.0Preset 1<Accum 0<

TON

Turn onON

0027T4:7

DN

Turn onON/DN

B3:0

2

minuto igualMINUTOIGUAL

B3:0

1

hora igualHORAIGUAL

EN

DN

TONTimer On DelayTimer T4:8Time Base 1.0Preset 1<Accum 0<

TON

turn offOFF

0028T4:7

TT

Turn onON/TT

LB3:0

4

B4

0029T4:8

TT

turn offOFF/TT

B3:0

5

Desaciona alarmeDESALARME

UB3:0

4

B4

0030B3:0

4

B4MOV

MoveSource -1 -1<Dest O:4.0 0<

MOVSAIDA1

Page 28: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38

Page 6 Friday, June 09, 2006 - 09:27:39

0031B3:0

4

B4MOV

MoveSource 0 0<Dest O:4.0 0<

MOVSAIDA1

0032C5:0

DN

contador segundosSEGUNDOS/DN

RESC5:0

contador segundosSEGUNDOS

0033C5:1

DN

contador minutosMINUTOS/DN

RESC5:1

contador minutosMINUTOS

0034C5:2

DN

contador horaHORA/DN

RESC5:2

contador horaHORA

0035C5:3

DNRESC5:3

0036RET

ReturnRET

0037 END

Page 29: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 11 - SEMAFORO2 - Exercício Semaforo com LIM --- Total Rungs in File = 5

Page 1 Friday, June 09, 2006 - 09:27:39

0000T4:0

DN

TIMER 1TIMER_VERMELHO/DN

EN

DN

TONTimer On DelayTimer T4:0Time Base 1.0Preset 100<Accum 0<

TON

TIMER 1TIMER_VERMELHO

0001LIM

Limit TestLow Lim 0 0<Test T4:0.ACC 0<High Lim 8 8<

LIM

TIMER 1TIMER_VERMELHO.ACC

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0002LIM

Limit TestLow Lim 9 9<Test T4:0.ACC 0<High Lim 11 11<

LIM

TIMER 1TIMER_VERMELHO.ACC

O:4

2 1746-OB16

MOTOR 3 / VerdeMOTOR3_VERDE

0003LIM

Limit TestLow Lim 12 12<Test T4:0.ACC 0<High Lim 18 18<

LIM

TIMER 1TIMER_VERMELHO.ACC

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0004 END

Page 30: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 12 - FLIP-FLOP - Exercício L --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:39

0000I:3

4 1746-IB16

botão LigaBL1

OSRB3:0

6

B3:0

7L

B3:0

7

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

UB3:0

7

0001B3:0

7

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0002 END

Page 31: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 13 - PID - Exemplo de PID --- Total Rungs in File = 7

Page 1 Friday, June 09, 2006 - 09:27:39

0000SCP

Scale w/ParametersInput I:7.0 32560<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 16383 16383<Output N7:11 2<

SCP

0001SCP

Scale w/ParametersInput I:7.0 32560<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 100 100<Output N7:13 0<

SCP

0002PID

PIDControl Block N9:0Process Variable N7:11Control Variable N7:12Control Block Length 23

Setup Screen <

PIDN

0003MOV

MoveSource N7:13 0<Dest N9:2 2000<

MOV

0004GRT

Greater Than (A>B)Source A N7:12 0<Source B 5000 5000<

GRTL

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0005I:3

0 1746-IB16

CHAVE LIGACH1

UO:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

Page 32: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 13 - PID - Exemplo de PID --- Total Rungs in File = 7

Page 2 Friday, June 09, 2006 - 09:27:39

0006 END

Page 33: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 14 - MSG_WR --- Total Rungs in File = 4

Page 1 Friday, June 09, 2006 - 09:27:39

0000N16:0

15EN

DN

ER

MSGRead/Write MessageType Peer-To-PeerRead/Write WriteTarget Device 500CPULocal/Remote LocalControl Block N16:0Control Block Length 14

Setup Screen <

MSG

0001N17:0

15EN

DN

ER

MSGRead/Write MessageType Peer-To-PeerRead/Write ReadTarget Device 500CPULocal/Remote LocalControl Block N17:0Control Block Length 14

Setup Screen <

MSG

0002RET

ReturnRET

0003 END

Page 34: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 15 - PID2 - Exercício Cáp.14 --- Total Rungs in File = 16

Page 1 Friday, June 09, 2006 - 09:27:39

0000SCP

Scale w/ParametersInput I:7.0 32560<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 16383 16383<Output N7:11 2<

SCP

0001PID

PIDControl Block N9:0Process Variable N7:11Control Variable N7:12Control Block Length 23

Setup Screen <

PIDN

0002SCP

Scale w/ParametersInput N7:12 0<Input Min. 0 0<Input Max. 16383 16383<Scaled Min. 0 0<Scaled Max. 32767 32767<Output O:7.0 4<

SCP

0003SCP

Scale w/ParametersInput N7:11 2<Input Min. 0 0<Input Max. 16383 16383<Scaled Min. 0 0<Scaled Max. 8000 8000<Output N7:14 0<

SCP

Page 35: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 15 - PID2 - Exercício Cáp.14 --- Total Rungs in File = 16

Page 2 Friday, June 09, 2006 - 09:27:39

0004SCP

Scale w/ParametersInput N7:12 0<Input Min. 0 0<Input Max. 16383 16383<Scaled Min. 0 0<Scaled Max. 100 100<Output N7:15 90<

SCP

0005TOD

To BCDSource N7:14 0<Dest O:2.0 1004h<

TOD

0006TOD

To BCDSource N7:15 90<Dest O:6.0 0042h<

TOD

0007I:3

4 1746-IB16

botão LigaBL1

FRDFrom BCDSource I:1.0 5115h<Dest N9:2 2000<

FRD

0008I:3

0 1746-IB16

CHAVE LIGACH1

N9:0

1

N/1

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0009I:3

0 1746-IB16

CHAVE LIGACH1

MOVMoveSource I:7.0 32560<Dest O:7.0 4<

MOV

Page 36: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 15 - PID2 - Exercício Cáp.14 --- Total Rungs in File = 16

Page 3 Friday, June 09, 2006 - 09:27:39

0010I:3

2 1746-IB16

seta relogioSETA_RELOGIO

N9:0

2

N/2

0011I:3

3 1746-IB16

O:4

3 1746-OB16

motor 4MOTOR4

MOVMoveSource 90 90<Dest N9:11 90<

MOV

MOVMoveSource 10 10<Dest N9:12 10<

MOV

0012N9:0

8

N/8

O:4

13 1746-OB16

0013N9:0

9

N/9

O:4

15 1746-OB16

0014N9:0

10

N/10

O:4

10 1746-OB16

0015 END

Page 37: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 16 - INDIRETO - Exemplo de endereçamento indireto --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:39

0000I:3

0 1746-IB16

CHAVE LIGACH1

CU

DN

CTUCount UpCounter C5:4Preset 5<Accum 0<

CTU

0001MOV

MoveSource 1735 1735<Dest N11:[C5:4.ACC] 0<

MOV

0002 END

Page 38: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 17 - INDEXADO - Exemplo de endereçamento indexado --- Total Rungs in File = 4

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

CU

DN

CTUCount UpCounter C5:5Preset 5<Accum 0<

CTU

0001MOV

MoveSource C5:5.ACC 0<Dest S:24 1<

MOV

IndexRegister

0002MOV

MoveSource 1735 1735<Dest #N11:0 0<

MOV

0003 END

Page 39: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:5

DN

tempo de clock dorelogioCLOCK/DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:5Time Base 1.0Preset 1<Accum 0<

TON

tempo de clock dorelogioCLOCK

0001I:3

0 1746-IB16

CHAVE LIGACH1

T4:6

DN

I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

TONTimer On DelayTimer T4:6Time Base 0.01Preset 1<Accum 0<

TON

0002T4:6

DNCU

DN

CTUCount UpCounter C5:3Preset 99<Accum 88<

CTU

0003T4:5

DN

tempo de clock dorelogioCLOCK/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0004C5:0

DN

contador segundosSEGUNDOS/DN

CU

DN

CTUCount UpCounter C5:1Preset 60<Accum 4<

CTU

contador minutosMINUTOS

0005C5:1

DN

contador minutosMINUTOS/DN

CU

DN

CTUCount UpCounter C5:2Preset 24<Accum 10<

CTU

contador horaHORA

0006I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 00FFh 255<Dest N7:2 3<

MVM

Page 40: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 2 Friday, June 09, 2006 - 09:27:40

0007I:3

2 1746-IB16

seta relogioSETA_RELOGIO

MVMMasked MoveSource I:1.0 20757<Mask 0FF00h -256<Dest N7:3 1<

MVM

0008I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:3 0001h<Dest N7:4 3<

FRD

0009I:3

2 1746-IB16

seta relogioSETA_RELOGIO

DIVDivideSource A N7:4 3<Source B 100 100<Dest C5:2.ACC 10<

DIV

HoraHORA.ACC

0010I:3

2 1746-IB16

seta relogioSETA_RELOGIO

FRDFrom BCDSource N7:2 0003h<Dest C5:1.ACC 4<

FRD

MinutoMINUTOS.ACC

0011MUL

MultiplySource A C5:2.ACC 10<Source B 100 100<Dest N7:0 11<

MUL

variavel auxiliarhoraAUX_HORA

Page 41: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 3 Friday, June 09, 2006 - 09:27:40

0012ADD

AddSource A N7:0 11<Source B C5:1.ACC 4<Dest N7:0 11<

ADD

variavel auxiliarhoraAUX_HORA

0013TOD

To BCDSource N7:0 11<Dest O:2.0 1004h<

TOD

variavel auxiliarhoraAUX_HORA

0014MUL

MultiplySource A 100 100<Source B C5:0.ACC 1<Dest N7:1 0<

MUL

variavel auxiliarsegundosAUX_SEGUNDOS

0015ADD

AddSource A N7:1 0<Source B C5:3.ACC 88<Dest N7:1 0<

ADD

variavel auxiliarsegundosAUX_SEGUNDOS

0016TOD

To BCDSource N7:1 0<Dest O:6.0 0042h<

TOD

variavel auxiliarsegundosAUX_SEGUNDOS

Page 42: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 4 Friday, June 09, 2006 - 09:27:40

0017I:3

3 1746-IB16

MVMMasked MoveSource I:5.0 0<Mask 00FFh 255<Dest N7:8 48<

MVM

0018I:3

3 1746-IB16

MVMMasked MoveSource I:5.0 0<Mask 0FF00h -256<Dest N7:9 2304<

MVM

0019I:3

3 1746-IB16

FRDFrom BCDSource N7:9 0900h<Dest N7:10 900<

FRD

0020I:3

3 1746-IB16

DIVDivideSource A N7:10 900<Source B 100 100<Dest N7:6 9<

DIVACHORA

0021I:3

3 1746-IB16

FRDFrom BCDSource N7:8 0030h<Dest N7:7 30<

FRDACMINUTO

0022EQU

EqualSource A N7:6 9<Source B C5:2.ACC 10<

EQUACHORA

B3:0

1

hora igualHORAIGUAL

0023EQU

EqualSource A N7:7 30<Source B C5:1.ACC 4<

EQUACMINUTO

B3:0

2

minuto igualMINUTOIGUAL

Page 43: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 5 Friday, June 09, 2006 - 09:27:40

0024I:3

4 1746-IB16

botão LigaBL1

C5:1

DN

contador minutosMINUTOS/DN

LB3:0

5

Desaciona alarmeDESALARME

0025C5:1

DN

contador minutosMINUTOS/DN

UB3:0

5

Desaciona alarmeDESALARME

0026T4:8

DN

turn offOFF/DN

B3:0

2

minuto igualMINUTOIGUAL

B3:0

1

hora igualHORAIGUAL

EN

DN

TONTimer On DelayTimer T4:7Time Base 1.0Preset 1<Accum 0<

TON

Turn onON

0027T4:7

DN

Turn onON/DN

B3:0

2

minuto igualMINUTOIGUAL

B3:0

1

hora igualHORAIGUAL

EN

DN

TONTimer On DelayTimer T4:8Time Base 1.0Preset 1<Accum 0<

TON

turn offOFF

0028T4:7

TT

Turn onON/TT

LB3:0

4

B4

0029T4:8

TT

turn offOFF/TT

B3:0

5

Desaciona alarmeDESALARME

UB3:0

4

B4

0030B3:0

4

B4MOV

MoveSource -1 -1<Dest O:4.0 0<

MOVSAIDA1

Page 44: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 6 Friday, June 09, 2006 - 09:27:40

0031B3:0

4

B4MOV

MoveSource 0 0<Dest O:4.0 0<

MOVSAIDA1

0032I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

SCPScale w/ParametersInput I:7.0 32560<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 59 59<Output C5:1.ACC 4<

SCP

MinutoMINUTOS.ACC

0033I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

SCPScale w/ParametersInput I:7.1 0<Input Min. 0 0<Input Max. 32767 32767<Scaled Min. 0 0<Scaled Max. 23 23<Output C5:2.ACC 10<

SCP

HoraHORA.ACC

0034SCP

Scale w/ParametersInput C5:1.ACC 4<Input Min. 0 0<Input Max. 59 59<Scaled Min. 0 0<Scaled Max. 20160 20160<Output O:7.0 4<

SCP

Page 45: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41

Page 7 Friday, June 09, 2006 - 09:27:40

0035SCP

Scale w/ParametersInput C5:0.ACC 1<Input Min. 0 0<Input Max. 59 59<Scaled Min. 0 0<Scaled Max. 20160 20160<Output O:8.0 0<

SCP

0036C5:0

DN

contador segundosSEGUNDOS/DN

RESC5:0

contador segundosSEGUNDOS

0037C5:1

DN

contador minutosMINUTOS/DN

RESC5:1

contador minutosMINUTOS

0038C5:2

DN

contador horaHORA/DN

RESC5:2

contador horaHORA

0039C5:3

DNRESC5:3

0040 END

Page 46: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 19 - SCP-SCL - Exercício Cap. 13 --- Total Rungs in File = 19

Page 1 Friday, June 09, 2006 - 09:27:40

0000T4:8

DN

turn offOFF/DN

EN

DN

TONTimer On DelayTimer T4:7Time Base 1.0Preset 1<Accum 0<

TON

Turn onON

0001T4:7

DN

Turn onON/DN

EN

DN

TONTimer On DelayTimer T4:8Time Base 1.0Preset 1<Accum 0<

TON

turn offOFF

0002T4:7

TT

Turn onON/TT

B3:0

0

aciona o relogioLIGA_RELOGIO

I:3

0 1746-IB16

CHAVE LIGACH1

B3:0

1

hora igualHORAIGUAL

B3:0

3

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0003T4:7

TT

Turn onON/TT

I:3

0 1746-IB16

CHAVE LIGACH1

B3:0

2

minuto igualMINUTOIGUAL

B3:0

3

O:4

1 1746-OB16

MOTOR 2 / amareloMOTOR2_AMARELO

0004T4:7

TT

Turn onON/TT

B3:0

4

B4I:3

0 1746-IB16

CHAVE LIGACH1

B3:0

3

O:4

15 1746-OB16

0005I:3

0 1746-IB16

CHAVE LIGACH1

EN

DN

TONTimer On DelayTimer T4:9Time Base 1.0Preset 60<Accum 0<

TON

Page 47: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 19 - SCP-SCL - Exercício Cap. 13 --- Total Rungs in File = 19

Page 2 Friday, June 09, 2006 - 09:27:40

0006LIM

Limit TestLow Lim 0 0<Test T4:9.ACC 0<High Lim 10 10<

LIM SCLScaleSource T4:9.ACC 0<Rate [/10000] 20000 20000<Offset 0 0<Dest N7:16 0<

SCL

0007LIM

Limit TestLow Lim 11 11<Test T4:9.ACC 0<High Lim 20 20<

LIM MOVMoveSource 20 20<Dest N7:16 0<

MOV

0008LIM

Limit TestLow Lim 21 21<Test T4:9.ACC 0<High Lim 30 30<

LIM SCLScaleSource T4:9.ACC 0<Rate [/10000] 30000 30000<Offset -40 -40<Dest N7:16 0<

SCL

0009LIM

Limit TestLow Lim 31 31<Test T4:9.ACC 0<High Lim 40 40<

LIM MOVMoveSource 50 50<Dest N7:16 0<

MOV

UB3:0

1

hora igualHORAIGUAL

0010LIM

Limit TestLow Lim 41 41<Test T4:9.ACC 0<High Lim 60 60<

LIM SCLScaleSource T4:9.ACC 0<Rate [/10000] -25000 -25000<Offset 150 150<Dest N7:16 0<

SCL

B3:0

4

B4

Page 48: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 19 - SCP-SCL - Exercício Cap. 13 --- Total Rungs in File = 19

Page 3 Friday, June 09, 2006 - 09:27:40

0011LIM

Limit TestLow Lim 30 30<Test T4:9.ACC 0<High Lim 40 40<

LIM

B3:0

2

minuto igualMINUTOIGUAL

0012EQU

EqualSource A T4:9.ACC 0<Source B 60 60<

EQU

B3:0

3

0013GEQ

Grtr Than or Eql (A>=B)Source A N7:16 0<Source B 20 20<

GEQ

B3:0

1

hora igualHORAIGUAL

0014LES

Less Than (A<B)Source A N7:16 0<Source B 20 20<

LES

B3:0

0

aciona o relogioLIGA_RELOGIO

0015SCP

Scale w/ParametersInput N7:16 0<Input Min. 0 0<Input Max. 50 50<Scaled Min. 0 0<Scaled Max. 16383 16383<Output O:7.0 4<

SCP

0016TOD

To BCDSource N7:16 0<Dest O:2.0 1004h<

TOD

Page 49: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 19 - SCP-SCL - Exercício Cap. 13 --- Total Rungs in File = 19

Page 4 Friday, June 09, 2006 - 09:27:40

0017TOD

To BCDSource T4:9.ACC 0<Dest O:6.0 0042h<

TOD

0018 END

Page 50: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 20 - MOTOR ADV - Exercício de motores com end. indireto --- Total Rungs in File = 12

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

EN

DN

TONTimer On DelayTimer T4:10Time Base 1.0Preset 8<Accum 0<

TON

Temporizador doacionamento dosmotores porendereçamentoindiretoTIMER_INDIRETO

0001MOV

MoveSource 0 0<Dest N12:0 0<

MOV

0002MOV

MoveSource 1 1<Dest N12:1 0<

MOV

0003MOV

MoveSource 3 3<Dest N12:2 0<

MOV

0004MOV

MoveSource 7 7<Dest N12:3 0<

MOV

0005MOV

MoveSource 15 15<Dest N12:4 0<

MOV

0006MOV

MoveSource 31 31<Dest N12:5 0<

MOV

Page 51: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 20 - MOTOR ADV - Exercício de motores com end. indireto --- Total Rungs in File = 12

Page 2 Friday, June 09, 2006 - 09:27:40

0007MOV

MoveSource 63 63<Dest N12:6 0<

MOV

0008MOV

MoveSource 127 127<Dest N12:7 0<

MOV

0009MOV

MoveSource 255 255<Dest N12:8 0<

MOV

0010MOV

MoveSource N12:[T4:10.ACC] 0<Dest O:4.0 0<

MOVSAIDA1

0011 END

Page 52: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 21 - MOTOR ADV1 - Exercício dos motores com end. indexado --- Total Rungs in File = 13

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

EN

DN

TONTimer On DelayTimer T4:10Time Base 1.0Preset 8<Accum 0<

TON

Temporizador doacionamento dosmotores porendereçamentoindiretoTIMER_INDIRETO

0001MOV

MoveSource 0 0<Dest N12:0 0<

MOV

0002MOV

MoveSource 1 1<Dest N12:1 0<

MOV

0003MOV

MoveSource 3 3<Dest N12:2 0<

MOV

0004MOV

MoveSource 7 7<Dest N12:3 0<

MOV

0005MOV

MoveSource 15 15<Dest N12:4 0<

MOV

0006MOV

MoveSource 31 31<Dest N12:5 0<

MOV

Page 53: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 21 - MOTOR ADV1 - Exercício dos motores com end. indexado --- Total Rungs in File = 13

Page 2 Friday, June 09, 2006 - 09:27:40

0007MOV

MoveSource 63 63<Dest N12:6 0<

MOV

0008MOV

MoveSource 127 127<Dest N12:7 0<

MOV

0009MOV

MoveSource 255 255<Dest N12:8 0<

MOV

0010MOV

MoveSource T4:10.ACC 0<Dest S:24 1<

MOV

IndexRegister

0011MOV

MoveSource #N12:0 0<Dest O:4.0 0<

MOVSAIDA1

0012 END

Page 54: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 22 - SEL MOTOR - Exercício de cap.5 Sel de motores --- Total Rungs in File = 6

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

4 1746-IB16

botão LigaBL1

MOVMoveSource I:1.0 20757<Dest O:2.0 4100<

MOV

0001TOD

To BCDSource I:1.0 20757<Dest N7:17 0006h<

TOD

entrada tw1TW1

0002I:3

5 1746-IB16

sensor superiorFC1

I:3

4 1746-IB16

botão LigaBL1

I:3

6 1746-IB16

sensor inferiorFC2

TODTo BCDSource N11:[N7:17] 0<Dest O:6.0 0042h<

TOD

0003I:3

5 1746-IB16

sensor superiorFC1

MOVMoveSource 1 1<Dest N11:[N7:17] 0<

MOV

0004I:3

6 1746-IB16

sensor inferiorFC2

MOVMoveSource 0 0<Dest N11:[N7:17] 0<

MOV

0005 END

Page 55: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 23 - COP / FLL - Exemplo de utilização da instrução --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

COPCopy FileSource #N12:0Dest #N12:10Length 10

COP

0001I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

FLLFill FileSource 0Dest #N12:10Length 10

FLL

0002 END

Page 56: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 24 - COP_FLL EX - Exercício Cap. 6 Pg. 63 --- Total Rungs in File = 5

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

4 1746-IB16

botão LigaBL1

FLLFill FileSource I:1.0Dest #N13:0Length 50

FLL

0001I:3

5 1746-IB16

sensor superiorFC1

COPCopy FileSource #N13:0Dest #N13:50Length 50

COP

0002I:3

6 1746-IB16

sensor inferiorFC2

FLLFill FileSource 0Dest #N13:0Length 100

FLL

0003RET

ReturnRET

0004 END

Page 57: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 25 - FIFO/LIFO - Exemplo de utilização FIFO e LIFO --- Total Rungs in File = 5

Page 1 Friday, June 09, 2006 - 09:27:40

0000I:3

0 1746-IB16

CHAVE LIGACH1

EN

DN

EM

FFLFIFO LoadSource N7:0FIFO #N13:0Control R6:11Length 16<Position 0<

FFL

0001I:3

1 1746-IB16

BOTÃO DESLIGADESLIGA

EU

DN

EM

FFUFIFO UnloadFIFO #N13:0Dest N7:1Control R6:11Length 16<Position 0<

FFU

0002I:3

2 1746-IB16

seta relogioSETA_RELOGIO

EN

DN

EM

LFLLIFO LoadSource N7:2LIFO #N13:10Control R6:12Length 10<Position 0<

LFL

0003I:3

3 1746-IB16

EU

DN

EM

LFULIFO UnloadLIFO #N13:10Dest N7:3Control R6:12Length 10<Position 0<

LFU

0004 END

Page 58: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 26 - MÉDIA - Exercício do Cáp.7 --- Total Rungs in File = 8

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

4 1746-IB16

botão LigaBL1

FRDFrom BCDSource I:1.0 5115h<Dest N7:0 11<

FRD

variavel auxiliarhoraAUX_HORA

0001I:3

4 1746-IB16

botão LigaBL1

EN

DN

EM

FFLFIFO LoadSource N7:0FIFO #N13:30Control R6:13Length 5<Position 0<

FFL

0002I:3

5 1746-IB16

sensor superiorFC1

CPTComputeDest N7:1 0<Expression ( ( ( N13:30 + N13:31 ) + N13:32 ) + N13:33

) + N13:34

CPT

variavel auxiliarsegundosAUX_SEGUNDOS

0003I:3

5 1746-IB16

sensor superiorFC1

DIVDivideSource A N7:1 0<Source B 5 5<Dest N7:1 0<

DIV

variavel auxiliarsegundosAUX_SEGUNDOS

0004I:3

5 1746-IB16

sensor superiorFC1

TODTo BCDSource N7:1 0<Dest O:2.0 1004h<

TOD

variavel auxiliarsegundosAUX_SEGUNDOS

0005I:3

0 1746-IB16

CHAVE LIGACH1

T4:12

DNEN

DN

TONTimer On DelayTimer T4:12Time Base 0.01Preset 4<Accum 0<

TON

Page 59: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 26 - MÉDIA - Exercício do Cáp.7 --- Total Rungs in File = 8

Page 2 Friday, June 09, 2006 - 09:27:41

0006T4:12

DNEU

DN

EM

FFUFIFO UnloadFIFO #N13:30Dest N7:4Control R6:13Length 5<Position 0<

FFU

0007 END

Page 60: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 27 - BSL - Exemplo de funcionamento da instrução BSL --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

0 1746-IB16

CHAVE LIGACH1

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0001I:3

4 1746-IB16

botão LigaBL1

EN

DN

BSLBit Shift LeftFile #B3:0Control R6:0Bit Address I:3/0Length 18<

BSL

0002 END

Page 61: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 28 - BSR - Exemplo da instrução BSR --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

0 1746-IB16

CHAVE LIGACH1

O:4

0 1746-OB16

MOTOR 1 / vermelhoMOTOR1_RED

0001I:3

4 1746-IB16

botão LigaBL1

EN

DN

BSRBit Shift RightFile #B3:0Control R6:1Bit Address I:3/0Length 16<

BSR

0002 END

Page 62: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 29 - GARRAFAS --- Total Rungs in File = 10

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

0 1746-IB16

CHAVE LIGACH1

T4:1

TT

TIMER 2TIMER_VERDE/TT

MOVMoveSource 1 1<Dest O:2.0 4100<

MOV

T4:0

DN

TIMER 1TIMER_VERMELHO/DN

EN

DN

TONTimer On DelayTimer T4:0Time Base 0.01Preset 100<Accum 0<

TON

TIMER 1TIMER_VERMELHO

0001I:3

0 1746-IB16

CHAVE LIGACH1

T4:1

TT

TIMER 2TIMER_VERDE/TT

CLRClearDest O:2.0 4100<

CLR

0002T4:0

DN

TIMER 1TIMER_VERMELHO/DN

T4:1

TT

TIMER 2TIMER_VERDE/TT

EN

DN

BSLBit Shift LeftFile #O:4.0Control R6:11Bit Address I:3/4Length 16<

BSL

0003R6:11

UL

T4:0

DN

TIMER 1TIMER_VERMELHO/DN

CU

DN

CTUCount UpCounter C5:6Preset 255<Accum 5<

CTU

0004I:3

6 1746-IB16

sensor inferiorFC2

RESC5:6

0005TOD

To BCDSource C5:6.ACC 5<Dest O:6.0 0042h<

TOD

Page 63: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 29 - GARRAFAS --- Total Rungs in File = 10

Page 2 Friday, June 09, 2006 - 09:27:41

0006R6:11

UL

T4:0

DN

TIMER 1TIMER_VERMELHO/DN

CU

DN

CTUCount UpCounter C5:0Preset 4<Accum 1<

CTU

contador segundosSEGUNDOS

0007T4:1

DN

TIMER 2TIMER_VERDE/DN

RESC5:0

contador segundosSEGUNDOS

0008C5:0

DN

contador segundosSEGUNDOS/DN

EN

DN

TONTimer On DelayTimer T4:1Time Base 1.0Preset 10<Accum 0<

TON

TIMER 2TIMER_VERDE

0009 END

Page 64: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 30 - SQO - Exemplo de utilização SQO --- Total Rungs in File = 2

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

5 1746-IB16

sensor superiorFC1

EN

DN

SQOSequencer OutputFile #N7:0Mask 0FFFFhDest B3:0Control R6:2Length 4<Position 1<

SQO

0001 END

Page 65: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 31 - SQL - Exemplo de funcionamento da instrução SQL --- Total Rungs in File = 3

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

4 1746-IB16

botão LigaBL1

CLRClearDest R6:3.POS 0<

CLR

0001I:3

4 1746-IB16

botão LigaBL1

I:3

5 1746-IB16

sensor superiorFC1

EN

DN

SQLSequencer LoadFile #N7:0Source B3:0Control R6:3Length 4<Position 0<

SQL

0002 END

Page 66: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 32 - SQC - Exemplo de funcionamento da função SQC --- Total Rungs in File = 2

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

5 1746-IB16

sensor superiorFC1

EN

DN

FD

SQCSequencer CompareFile #N7:0Mask 0FFFFhSource B3:0Control R6:4Length 4<Position 1<

SQC

0001 END

Page 67: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 33 - MOTOR-SQO - Exercício do Cáp. 9 --- Total Rungs in File = 11

Page 1 Friday, June 09, 2006 - 09:27:41

0000I:3

0 1746-IB16

CHAVE LIGACH1

I:3

7 1746-IB16

OSRB3:2

1

B3:2

2L

B3:2

2

B3:2

3U

B3:2

2

0001B3:2

2

B3:2

3

0002B3:2

3

T4:11

DNEN

DN

TONTimer On DelayTimer T4:11Time Base 1.0Preset 3<Accum 0<

TON

0003T4:11

DN

B3:2

0EN

DN

SQOSequencer OutputFile #N14:0Mask 0FFFFhDest O:4.0Control R6:5Length 8<Position 0<

SQO

0004EQU

EqualSource A R6:5.POS 0<Source B 8 8<

EQU

B3:2

0

0005B3:2

0L

B3:2

5

0006B3:2

3

T4:12

DN

B3:2

5EN

DN

TONTimer On DelayTimer T4:12Time Base 1.0Preset 4<Accum 0<

TON

0007T4:12

DN

B3:2

4EN

DN

SQOSequencer OutputFile #N15:0Mask 0FFFFhDest O:4.0Control R6:6Length 8<Position 0<

SQO

Page 68: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 33 - MOTOR-SQO - Exercício do Cáp. 9 --- Total Rungs in File = 11

Page 2 Friday, June 09, 2006 - 09:27:41

0008EQU

EqualSource A R6:6.POS 0<Source B 8 8<

EQU

B3:2

4

UB3:2

5

CLRClearDest R6:5.POS 0<

CLR

CLRClearDest R6:6.POS 0<

CLR

0009I:3

7 1746-IB16

MOVMoveSource 0 0<Dest O:4.0 0<

MOVSAIDA1

B3:2

4

UB3:2

5

CLRClearDest R6:5.POS 0<

CLR

CLRClearDest R6:6.POS 0<

CLR

0010 END

Page 69: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

LAD 34 - STI --- Total Rungs in File = 2

Page 1 Friday, June 09, 2006 - 09:27:41

0000ADD

AddSource A 1 1<Source B N7:0 11<Dest N7:0 11<

ADD

variavel auxiliarhoraAUX_HORA

0001 END

Page 70: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File O0 (bin) -- OUTPUT

Page 1 (Radix Binary) Friday, June 09, 2006 - 09:27:41

Offset 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

O:2.0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1746-OB16 - 16-Output (TRANS-SRC) 10/50 VDCO:4.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-OB16 - 16-Output (TRANS-SRC) 10/50 VDCO:6.0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1746-OB16 - 16-Output (TRANS-SRC) 10/50 VDCO:7.0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutO:7.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutO:8.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutO:8.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage Out

Page 71: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File I1 (bin) -- INPUT

Page 1 (Radix Binary) Friday, June 09, 2006 - 09:27:41

Offset 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

I:1.0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 0 1 1746-IB16 - 16-Input (SINK) 24 VDCI:3.0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1746-IB16 - 16-Input (SINK) 24 VDCI:5.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-IB16 - 16-Input (SINK) 24 VDCI:7.0 0 1 1 1 1 1 1 1 0 0 1 1 0 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutI:7.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutI:8.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage OutI:8.1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1746-NIO4V - Analog 2 Ch In/2 Ch Voltage Out

Page 72: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File S2 (hex) -- STATUS

Page 1 Friday, June 09, 2006 - 09:27:41

�Main

First Pass S:1/15 = No Index Register S:24 = 1 Free Running Clock S:4 = 0000-1001-0101-1101 Index Across Data Files S:2/3 = No CIF Addressing Mode S:2/8 = 0 Online Edits S:33/11 - S:33/12 = No online edits exist

DD / MM / YYYY Date S:39-37 = 9 / 6 / 2005

HH : MM : SS Time S:40-42 = 9 : 15 : 59

�Proc

OS Catalog Number S:57 = 401 OS Series S:58 = B OS FRS S:59 = 7 Processor Catalog Number S:60 = 542 Processor Series S:61 = B Processor FRN S:62 = 3

User Program Type S:63 = 1025 User Program Functionality Index S:64 = 35 User RAM Size S:66 = 32 OS Memory Size S:66 = 512

�Scan Times

Maximum (x10 ms) S:22 = 1 Average (x10 ms) S:23 = 0 Current (x10 ms) S:3 (low byte) = 1 Watchdog (x10 ms) S:3 (high byte) = 10 Last 1ms Scan Time S:35 = 3 Scan Toggle Bit S:33/9 = 1 Time Base Selection S:33/13 = 0�Math

Math Overflow Selected S:2/14 = 0 Overflow Trap S:5/0 = 0 Carry S:0/0 = 0 Overflow S:0/1 = 0 Zero Bit S:0/2 = 1 Sign Bit S:0/3 = 0 Floating Point Flag Disable S:34/2 = 0

Math Register (lo word) S:13 = 100 Math Register (high word) S:14-S:13 = 0 Math Register (32 Bit) S:14-S:13 = 100

�IO

I/O Interrupt Executing S:32 = 0 Interrrupt Latency Control S:33/8 = 0Event Interrupt 10 uS Time Stamp S:44 = 0

I/O Slot Enables: S:11 S:120 10 20 3011111111 11111111 11111111 11111111

I/O Slot Interrupt Enables: S:27 S:280 10 20 3011111111 11111111 11111111 11111111

I/O Slot Interrupt Pending: S:25 S:260 10 20 3000000000 00000000 00000000 00000000�Chan 0

Processor Mode S:1/0- S:1/4 = Remote Run Channel Mode S:33/3 = 1 Comms Active S:33/4 = 0 Incoming Cmd Pending S:33/0 = 0 Msg Reply Pending S:33/1 = 0 DH485 Pass-Thru Disabled Bit S:34/0 = 0 DF1 Pass-Thru Enable Bit S:34/5 = 0

DTR Control Bit S:33/14 = 0 DTR Force Bit S:33/15 = 0 Outgoing Msg Cmd Pending S:33/2 = 0 Comms Servicing Sel S:33/5 = 0 Msg Servicing Sel S:33/6 = 0 Modem Lost S:5/14 = 1

Page 73: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File S2 (hex) -- STATUS

Page 2 Friday, June 09, 2006 - 09:27:42

�Chan 1

Processor Mode S:1/0- S:1/4 = Remote Run Comms Active S:1/7 = 0 Incoming Cmd Pending S:2/5 = 0 Msg Reply Pending S:2/6 = 0

Active Nodes (Octal): S:83 - S:86

Outgoing Msg Cmd Pending S:2/7 = 0 Comms Servicing Sel S:2/15 = 1 Msg Servicing Sel S:33/7 = 0 Monitor DH+ Active Node Table S:34/1 = No

0 10 20 3000000000 00000000 00000000 0000000000000000 00000000 00000000 00000000�Debug

Suspend Code S:7 = 0 Suspend File S:8 = 0 Compiled For Single Step S:2/4 = Yes

Fault/Powerdown Fault/Powerdown (Rung #) S:20 = 1 (File #) S:21 = 2

Test Single Step Breakpoint Rung # S:18 = 0 File # S:19 = 0

Test Single Step Rung # S:16 = 0 File # S:17 = 2

�Errors

Fault Override At Power Up S:1/8 = 0 Startup Protection Fault S:1/9 = 0 Major Error Halt S:1/13 = 0 Overflow Trap S:5/0 = 0 Control Register Error S:5/2 = 0 Major Error Executing User Fault Rtn. S:5/3 = 0 M0/M1 Referenced On Disabled Slot S:5/4 = 0 Battery Low S:5/11 = 0 Fault/Powerdown (Rung #) S:20 = 1 (File #) S:21 = 2

ASCII String Manipulation error S:5/15 = 0 Fault Routine S:29 = 0 Major Error S:6 = 0h

Error Description:

�STI

Setpoint (x10ms) S:30 = 100 File Number S:31 = 0 10 uS Time Stamp S:43 = 11463 Pending Bit S:2/0 = 0 Enable Bit S:2/1 = 1

Resolution Select Bit S:2/10 = 0 Executing Bit S:2/2 = 0 Overflow Bit S:5/10 = 0 Lost S:36/9 = 0 Interrrupt Latency Control S:33/8 = 0

�DII

Preset S:50 = 0 Accumulator S:52 = 0 Pending Bit S:2/11 = 0 Enable Bit S:2/12 = 1 Executing Bit S:2/13 = 0 Reconfiguration Bit S:33/10 = 0 Overflow Bit S:5/12 = 0 Lost S:36/8 = 0 10 uS Time Stamp S:45 = 0

File Number S:46 = 0 Slot Number S:47 = 0 Bit Mask S:48 = 0h Compare Value S:49 = 0h Return Mask S:51 = 0h Last Scan Time (x1 ms) S:55 = 0 Max Observed Scan Time (x1 ms) S:56 = 0 Interrrupt Latency Control S:33/8 = 0

�Protection

Deny Future Access S:1/14 = No�Mem Module

Memory Module Loaded On Boot S:5/8 = 0 Password Mismatch S:5/9 = 0 Load Memory Module On Memory Error S:1/10 = 0 Load Memory Module Always S:1/11 = 0 Load Memory Module and RUN S:1/12 = 0 Program Compare S:2/9 = 0 Data File Overwrite Protection Lost S:36/10 = 0

Page 74: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File S2 (hex) -- STATUS

Page 3 Friday, June 09, 2006 - 09:27:42

�Forces

Forces Enabled S:1/5 = No Forces Installed S:1/6 = No�Global Data

Global Status Word S:99 = 0h Transmit Control Bit S:34/3 = 0 Receive Control Bit S:34/4 = 0

Node 0 1 2 3 4 5 6 7S:100 0 0h 0h 0h 0h 0h 0h 0h 0hS:108 10 0h 0h 0h 0h 0h 0h 0h 0hS:116 20 0h 0h 0h 0h 0h 0h 0h 0hS:124 30 0h 0h 0h 0h 0h 0h 0h 0hS:132 40 0h 0h 0h 0h 0h 0h 0h 0hS:140 50 0h 0h 0h 0h 0h 0h 0h 0hS:148 60 0h 0h 0h 0h 0h 0h 0h 0hS:156 70 0h 0h 0h 0h 0h 0h 0h 0h

Page 75: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File B3 (bin) -- BINARY

Page 1 (Radix Binary) Friday, June 09, 2006 - 09:27:42

Offset 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (Symbol) Description

B3:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 B3:1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 B3:2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Page 76: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File T4 -- TIMER

Page 1 Friday, June 09, 2006 - 09:27:42

Offset EN TT DN BASE PRE ACC (Symbol) Description

T4:0 0 0 0 .01 sec 100 0 (TIMER_VERMELHO) TIMER 1 T4:1 0 0 0 1.0 sec 10 0 (TIMER_VERDE) TIMER 2 T4:2 0 0 0 1.0 sec 3 0 (TIMER_AMARELO) TIMER 3 T4:3 0 0 0 1.0 sec 2 0 (TIMER_LIGA) Timer 1 T4:4 0 0 0 1.0 sec 3 0 (TIMER_DESLIGA) TIMER 2 T4:5 0 0 0 1.0 sec 1 0 (CLOCK) tempo de clock do relogio T4:6 0 0 0 .01 sec 1 0 T4:7 0 0 0 1.0 sec 1 0 (ON) Turn on T4:8 0 0 0 1.0 sec 1 0 (OFF) turn off T4:9 0 0 0 1.0 sec 60 0 T4:10 0 0 0 1.0 sec 8 0 (TIMER_INDIRETO) Temporizador do acionamento dos motores por endereçamento indireto T4:11 0 0 0 1.0 sec 3 0 T4:12 0 0 0 1.0 sec 4 0

Page 77: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File C5 -- COUNTER

Page 1 Friday, June 09, 2006 - 09:27:42

Offset CU CD DN OV UN UA PRE ACC (Symbol) Description

C5:0 1 0 0 0 0 0 4 1 (SEGUNDOS) contador segundos C5:1 1 0 0 0 0 0 60 4 (MINUTOS) contador minutos C5:2 1 0 0 0 0 0 24 10 (HORA) contador hora C5:3 1 0 0 0 0 0 99 88 C5:4 1 0 0 0 0 0 5 0 C5:5 1 0 0 0 0 0 5 0 C5:6 1 0 0 0 0 0 255 5

Page 78: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File R6 -- CONTROL

Page 1 Friday, June 09, 2006 - 09:27:42

Offset EN EU DN EM ER UL IN FD LEN POS (Symbol) Description

R6:0 0 0 0 0 0 0 0 0 18 0 R6:1 0 0 0 0 0 0 0 0 16 0 R6:2 1 0 0 0 0 0 0 0 4 1 R6:3 1 0 0 0 0 0 0 0 4 0 R6:4 0 0 0 0 0 0 0 0 4 1 R6:5 1 0 0 0 0 0 0 0 8 0 R6:6 1 0 0 0 0 0 0 0 8 0 R6:7 0 0 0 0 0 0 0 0 0 0 R6:8 0 0 0 0 0 0 0 0 0 0 R6:9 0 0 0 0 0 0 0 0 0 0 R6:10 0 0 0 0 0 0 0 0 0 0 R6:11 0 1 0 1 0 0 0 0 16 0 R6:12 1 1 0 1 0 0 0 0 10 0 R6:13 1 1 0 1 0 0 0 0 5 0

Page 79: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N7 (dec) -- INTEGER

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N7:0 11 0 3 1 3 0 9 30 48 2304 N7:10 900 2 0 0 0 90 0 6

Page 80: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File F8 -- FLOAT

Page 1 Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4

F8:0 87

Page 81: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N9 (dec) -- PID -- Para exercício de PID

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N9:0 521 0 2000 20 3 0 0 8000 0 0 N9:10 0 90 10 2 0 2000 90 0 0 0 N9:20 0 5319 2000

Page 82: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N10 (dec) -- PV_STD

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N10:0 0 0 0 0 0 0 0 0 0 0 N10:10 0 0 0 0 0 0 0 0 0 0

Page 83: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N11 (dec) -- FILE -- Arquivo

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N11:0 0 0 0 1 1 1 0 0 0 0 N11:10 0 0 0 0 0 0 0 0 0 0 N11:20 0 0 0 0 0 0 0 0 0 0 N11:30 0 0 0 0 0 0 0 0 0 0 N11:40 0 0 0 0 0 0 0 0 0 0 N11:50 0 0 0 0 0 0 0 0 0 0 N11:60 0 0 0 0 0 0 0 0 0 0 N11:70 0 0 0 0 0 0 0 0 0 0 N11:80 0 0 0 0 0 0 0 0 0 0 N11:90 0 0 0 0 0 0 0 0 0 0

Page 84: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N12 (dec) -- FILE2 -- Para exercício dos motores

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N12:0 0 0 0 0 0 0 0 0 0 0 N12:10 0 0 0 0 0 0 0 0 0 0 N12:20 0 0 0 0 0 0 0 0 0 0 N12:30 0 0 0 0 0 0 0 0 0 0 N12:40 0 0 0 0 0 0 0 0 0 0 N12:50 0 0 0 0 0 0 0 0 0 0 N12:60 0 0 0 0 0 0 0 0 0 0 N12:70 0 0 0 0 0 0 0 0 0 0 N12:80 0 0 0 0 0 0 0 0 0 0 N12:90 0 0 0 0 0 0 0 0 0 0

Page 85: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N13 (dec)

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N13:0 0 0 0 0 0 0 0 0 0 0 N13:10 0 0 0 0 0 0 0 0 0 0 N13:20 0 0 0 0 0 0 0 0 0 0 N13:30 0 0 0 0 0 0 0 0 0 0 N13:40 0 0 0 0 0 0 0 0 0 0 N13:50 0 0 0 0 0 0 0 0 0 0 N13:60 0 0 0 0 0 0 0 0 0 0 N13:70 0 0 0 0 0 0 0 0 0 0 N13:80 0 0 0 0 0 0 0 0 0 0 N13:90 0 0 0 0 0 0 0 0 0 0

Page 86: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N14 (dec) -- MOTORES

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N14:0 0 1 3 7 15 31 63 127 255 0 N14:10 0 0 0 0 0 0 0 0 0 0 N14:20 0 0 0 0 0 0 0 0 0 0 N14:30 0 0 0 0 0 0 0 0 0 0 N14:40 0 0 0 0 0 0 0 0 0 0 N14:50 0 0 0 0 0 0 0 0 0 0 N14:60 0 0 0 0 0 0 0 0 0 0 N14:70 0 0 0 0 0 0 0 0 0 0 N14:80 0 0 0 0 0 0 0 0 0 0 N14:90 0 0 0 0 0 0 0 0 0 0

Page 87: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N15 (dec) -- OFF MOTOR

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N15:0 255 127 63 31 15 7 3 1 0

Page 88: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N16 (dec) -- MSG-WR

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:42

Offset 0 1 2 3 4 5 6 7 8 9

N16:0 0 0 1 0 139 2 0 0 5 0 N16:10 0 2 0 0 0 0 0 0 0 0 N16:20 0 0 0 0 0 0 0 0 0 0 N16:30 0 0 0 0 0 0 0 0 0 0 N16:40 0 0 0 0 0 0 0 0 0 0 N16:50 0 0 0 0 0 0 0 0 0 0 N16:60 0 0 0 0 0 0 0 0 0 0 N16:70 0 0 0 0 0 0 0 0 0 0 N16:80 0 0 0 0 0 0 0 0 0 0 N16:90 0 0 0 0 0 0 0 0 0 0

Page 89: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Data File N17 (dec) -- N17 -- MSG-RD

Page 1 (Radix Decimal) Friday, June 09, 2006 - 09:27:43

Offset 0 1 2 3 4 5 6 7 8 9

N17:0 0 1 1 1 140 7 0 0 5 0 N17:10 0 2 0 0

Page 90: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

CDM 0 - Untitled

Page 1 Friday, June 09, 2006 - 09:27:43

� Address (Symbol) = Value [Description]

� I:1.0 (TW1) = 0101 0001 0001 0101 [entrada tw1]

Page 91: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Address/Symbol Database

Page 1 Friday, June 09, 2006 - 09:27:43

Address Symbol Scope Description Sym Group

�0F Global�B3:0�B3/0 �LIGA_RELOGIO Global aciona o relogio �B3/1 HORAIGUAL Global hora igual �B3/2 MINUTOIGUAL Global minuto igual �B3/3�B3/4 �B4 Global�B3/5 DESALARME Global Desaciona alarme �B3/6�B3/7�B3/32�B3/33�B3/34�B3/35�B3/36�B3/37�C5:0 SEGUNDOS Global contador segundos �C5:0.ACC Segundo �C5:0/DN�C5:1 MINUTOS Global contador minutos �C5:1.ACC Minuto �C5:1/DN�C5:2 HORA Global contador hora �C5:2.ACC Hora �C5:2/DN�C5:3�C5:3.ACC�C5:4�C5:5�C5:5.ACC�C5:6�C5:6.ACC�F8:0�I:0�I:1.0 �TW1 Global �entrada tw1 �I:2/0 Chave Liga �I:2/1 Sensor superior �I:2/2 Sensor inferior �I:2/3 �CH_DESLIGA Global Chave desliga �I:2/4 �LOAD_TW1 Global �Carrega dados TW1 �I:2/5 �LOAD_TW2 Global �Carrega dados TW2 �I:2/6 SOMA Global Somar elemento por elemento �I:3/0 �CH1 Global CHAVE LIGA �I:3/1 DESLIGA Global BOTÃO DESLIGA �I:3/2 �SETA_RELOGIO Global seta relogio �I:3/3�I:3/4 �BL1 Global botão Liga �I:3/5 �FC1 Global sensor superior �I:3/6 �FC2 Global sensor inferior �I:3/7�I:3/8 �EXE_D Global Habilitar exercício furadeira �I:3/9 �EXE_E Global Habilitar exercício semaforo �I:3/10 �EXE_E_2 Global �Habilitar exercício semaforo 2 �I:3/11 �EXE_F Global Habilitar exercício motores �I:3/12 �EXE_G Global Habilitar execício relogio �I:3/13 �EXE_H Global �Habilitar exercício relogio 2 �I:3/14 �EXE_I Global �Habilitar exercício relogio 3 �I:3/15 PETROBRAS Global Habilitar BR �I:5.0 �TW2 Global �tw2 �I:7.0�I:7.1�N7:0 �AUX_HORA Global variavel auxiliar hora �N7:0/15�N7:1 �AUX_SEGUNDOS Global variavel auxiliar segundos �N7:2�N7:3�N7:4�N7:5�N7:6 ACHORA Global�N7:7 ACMINUTO Global�N7:8�N7:9�N7:10�N7:11�N7:12�N7:13�N7:14�N7:15�N7:16�N7:17�N9:0 N Global�N9:0/1�N9:0/2�N9:0/8�N9:0/9

Page 92: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Address/Symbol Database

Page 2 Friday, June 09, 2006 - 09:27:43

Address Symbol Scope Description Sym Group

�N9:0/10�N9:1�N9:2�N9:11�N9:12�N11:0�N11:[I:1.0]�N11:[N7:17]�N12:0�N12:1�N12:2�N12:3�N12:4�N12:5�N12:6�N12:7�N12:8�N12:10�N12:[T4:10.ACC] �BANCO_DE_DADOS Global �Move os dados para acionamento pelo banco de dados N12 �N13:0�N13:10�N13:30�N13:34�N13:50�N14:0�N15:0�N16:0�N16:0/15�N16:1�N16:1/15�N17:0�N17:0/15�N17:1/15�O:1�O:2.0�O:3�O:4.0 �SAIDA1 Global�O:4/0 �MOTOR1_RED Global �MOTOR 1 / vermelho �O:4/1 �MOTOR2_AMARELO Global �MOTOR 2 / amarelo �O:4/2 �MOTOR3_VERDE Global �MOTOR 3 / Verde �O:4/3 �MOTOR4 Global �motor 4 �O:4/4 �MOTOR5 Global �motor 5 �O:4/10�O:4/13�O:4/15�O:6.0 �DISPLAYS_MINUTOS Global �led 2 �O:7.0�O:7.1�O:8.0�O:13�O:13/51 �MOTOR_1 Global �MOTOR 1 �O:13/52 �MOTOR_2 Global �MOTOR 2 �O:13/53 �MOTOR_3 Global �MOTOR 3 �O:13/54 �MOTOR_4 Global �MOTOR 4 �O:13/55 �MOTOR_5 Global �MOTOR 5 �R6:0�R6:1�R6:2�R6:3�R6:3.POS�R6:4�R6:5�R6:5.POS�R6:6�R6:6.POS�R6:11�R6:12�R6:13�R6:14�R6:15�R6:16�S:0 Arithmetic Flags �S:0/0 Processor Arithmetic Carry Flag �S:0/1 �Processor Arithmetic Underflow/ Overflow Flag �S:0/2 Processor Arithmetic Zero Flag �S:0/3 Processor Arithmetic Sign Flag �S:1 �Processor Mode Status/ Control �S:1/0 �Processor Mode Bit 0 �S:1/1 �Processor Mode Bit 1 �S:1/2 �Processor Mode Bit 2 �S:1/3 �Processor Mode Bit 3 �S:1/4 �Processor Mode Bit 4 �S:1/5 Forces Enabled �S:1/6 Forces Present �S:1/7 Comms Active

Page 93: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Address/Symbol Database

Page 3 Friday, June 09, 2006 - 09:27:43

Address Symbol Scope Description Sym Group

�S:1/8 Fault Override at Powerup �S:1/9 Startup Protection Fault �S:1/10 Load Memory Module on Memory Error �S:1/11 Load Memory Module Always �S:1/12 Load Memory Module and RUN �S:1/13 Major Error Halted �S:1/14 Access Denied �S:1/15 First Pass �S:2/0 STI Pending �S:2/1 STI Enabled �S:2/2 STI Executing �S:2/3 Index Addressing File Range �S:2/4 Saved with Debug Single Step �S:2/5 �DH-485 Incoming Command Pending �S:2/6 �DH-485 Message Reply Pending �S:2/7 �DH-485 Outgoing Message Command Pending �S:2/15 Comms Servicing Selection �S:3 �Current Scan Time/ Watchdog Scan Time �S:4 Time Base �S:5/0 Overflow Trap �S:5/2 Control Register Error �S:5/3 Major Err Detected Executing UserFault Routine �S:5/4 �M0-M1 Referenced on Disabled Slot �S:5/8 Memory Module Boot �S:5/9 Memory Module Password Mismatch �S:5/10 STI Overflow �S:5/11 Battery Low �S:6 Major Error Fault Code �S:7 Suspend Code �S:8 Suspend File �S:9 Active Nodes �S:10 Active Nodes �S:11 �I/O Slot Enables �S:12 �I/O Slot Enables �S:13 Math Register �S:14 Math Register �S:15 �Node Address/ Baud Rate �S:16 Debug Single Step Rung �S:17 Debug Single Step File �S:18 Debug Single Step Breakpoint Rung �S:19 Debug Single Step Breakpoint File �S:20 �Debug Fault/ Powerdown Rung �S:21 �Debug Fault/ Powerdown File �S:22 Maximum Observed Scan Time �S:23 Average Scan Time �S:24 Index Register �S:25 �I/O Interrupt Pending �S:26 �I/O Interrupt Pending �S:27 �I/O Interrupt Enabled �S:28 �I/O Interrupt Enabled �S:29 User Fault Routine File Number �S:30 STI Setpoint �S:31 STI File Number �S:32 �I/O Interrupt Executing �S:33 Extended Proc Status Control Word �S:33/0 Incoming Command Pending �S:33/1 Message Reply Pending �S:33/2 Outgoing Message Command Pending �S:33/3 �Selection Status User/DF1 �S:33/4 Communicat Active �S:33/5 Communicat Servicing Selection �S:33/6 �Message Servicing Selection Channel 0 �S:33/7 �Message Servicing Selection Channel 1 �S:33/8 Interrupt Latency Control Flag �S:33/9 Scan Toggle Flag �S:33/10 Discrete Input Interrupt Reconfigur Flag �S:33/11 Online Edit Status �S:33/12 Online Edit Status �S:33/13 Scan Time Timebase Selection �S:33/14 DTR Control Bit �S:33/15 DTR Force Bit �S:34 �Pass-thru Disabled �S:34/0 �Pass-Thru Disabled Flag �S:34/1 �DH+ Active Node Table Enable Flag �S:34/2 �Floating Point Math Flag Disable,Fl �S:35 �Last 1 ms Scan Time �S:36 Extended Minor Error Bits �S:36/8 DII Lost �S:36/9 STI Lost �S:36/10 Memory Module Data File Overwrite Protection �S:37 Clock Calendar Year �S:38 Clock Calendar Month �S:39 Clock Calendar Day �S:40 Clock Calendar Hours �S:41 Clock Calendar Minutes

Page 94: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Address/Symbol Database

Page 4 Friday, June 09, 2006 - 09:27:43

Address Symbol Scope Description Sym Group

�S:42 Clock Calendar Seconds �S:43 STI Interrupt Time �S:44 �I/O Event Interrupt Time �S:45 DII Interrupt Time �S:46 �Discrete Input Interrupt- File Number �S:47 �Discrete Input Interrupt- Slot Number �S:48 �Discrete Input Interrupt- Bit Mask �S:49 �Discrete Input Interrupt- Compare Value �S:50 Processor Catalog Number �S:51 �Discrete Input Interrupt- Return Number �S:52 �Discrete Input Interrupt- Accumulat �S:53 �Reserved/ Clock Calendar Day of the Week �S:55 Last DII Scan Time �S:56 Maximum Observed DII Scan Time �S:57 Operating System Catalog Number �S:58 Operating System Series �S:59 Operating System FRN �S:61 Processor Series �S:62 Processor Revision �S:63 User Program Type �S:64 User Program Functional Index �S:65 User RAM Size �S:66 Flash EEPROM Size �S:67 �Channel 0 Active Nodes �S:68 �Channel 0 Active Nodes �S:69 �Channel 0 Active Nodes �S:70 �Channel 0 Active Nodes �S:71 �Channel 0 Active Nodes �S:72 �Channel 0 Active Nodes �S:73 �Channel 0 Active Nodes �S:74 �Channel 0 Active Nodes �S:75 �Channel 0 Active Nodes �S:76 �Channel 0 Active Nodes �S:77 �Channel 0 Active Nodes �S:78 �Channel 0 Active Nodes �S:79 �Channel 0 Active Nodes �S:80 �Channel 0 Active Nodes �S:81 �Channel 0 Active Nodes �S:82 �Channel 0 Active Nodes �S:83 �DH+ Active Nodes �S:84 �DH+ Active Nodes �S:85 �DH+ Active Nodes �S:86 �DH+ Active Nodes �T4:0 �TIMER_VERMELHO Global �TIMER 1 �T4:0.ACC�T4:0/DN�T4:0/TT�T4:1 �TIMER_VERDE Global �TIMER 2 �T4:1/DN�T4:1/TT�T4:2 �TIMER_AMARELO Global �TIMER 3 �T4:2/DN�T4:2/TT�T4:3 �TIMER_LIGA Global �Timer 1 �T4:3/DN�T4:4 �TIMER_DESLIGA Global �TIMER 2 �T4:4/DN�T4:5 CLOCK Global tempo de clock do relogio �T4:5.ACC�T4:5/DN�T4:6/DN�T4:7 ON Global Turn on �T4:7/DN�T4:7/TT�T4:8 OFF Global turn off �T4:8/DN�T4:8/TT�T4:9�T4:9.ACC�T4:9/DN�T4:10 �TIMER_INDIRETO Global Temporizador do acionamento dos motores por endereçamento indireto �T4:10.ACC�T4:11�T4:11/DN�T4:12�T4:12/DN�U:3 FURADEIRA Global Exercício da furadeira �U:4 SEMAFORO Global Exercício do Semaforo �U:5 �AC_MOTORES Global �Exercício motores 2 �U:6 BR Global Exercício BR �U:7 RELOGIO Global Exercicio relogio �U:8 �RELOGIO2 Global �Exercício relogio 2- exe-H �U:9 �RELOGIO3 Global �Exercício relogio 3 �U:10 �RELOGIO4 Global �Exercício do Relogio 4 �U:11 �SEMAFORO2 Global �Exercício do semaforo 2

Page 95: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Address/Symbol Database

Page 5 Friday, June 09, 2006 - 09:27:43

Address Symbol Scope Description Sym Group

�U:12 �FLIP_FLOP Global �Exercício do Flip- Flop �U:14�U:15�U:16�U:17�U:18�U:19�U:22�U:24�U:26�U:27�U:28�U:29�U:30�U:31�U:32�U:33

Page 96: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Instruction Comment Database

Page 1 Friday, June 09, 2006 - 09:27:43

Address Instruction Description

Page 97: Respostas Exercicios.pdf

PROGRAMACAO1.RSS

Symbol Group Database

Page 1 Friday, June 09, 2006 - 09:27:43

�Group_Name Description