• No results found

RSLogix500 Project Report

N/A
N/A
Protected

Academic year: 2021

Share "RSLogix500 Project Report"

Copied!
97
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

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

(3)

I/O Configuration 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

(4)

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

(5)

Program File List

Name Number Type Rungs Debug Bytes

[SYSTEM] 0 SYS 0 No 0 1 SYS 0 No 0 PRINCIPAL 2 LADDER 2 No 19 FURADEIRA 3 LADDER 5 No 107 SEMAFORO 4 LADDER 11 No 192 MOTORES 5 LADDER 7 No 259 TAXA 6 LADDER 6 No 131 RELOGIO 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 69 PID 13 LADDER 7 No 155 MSG_WR 14 LADDER 4 No 122 PID2 15 LADDER 16 No 397 INDIRETO 16 LADDER 3 No 40 INDEXADO 17 LADDER 4 No 49 REL-ANA 18 LADDER 41 No 969 SCP-SCL 19 LADDER 19 No 582

MOTOR ADV 20 LADDER 12 No 175

MOTOR ADV1 21 LADDER 13 No 184

SEL 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 115 MÉDIA 26 LADDER 8 No 241 BSL 27 LADDER 3 No 47 BSR 28 LADDER 3 No 47 GARRAFAS 29 LADDER 10 No 225 SQO 30 LADDER 2 No 37 SQL 31 LADDER 3 No 60 SQC 32 LADDER 2 No 37 MOTOR-SQO 33 LADDER 11 No 370 STI 34 LADDER 2 No 24

(6)

Name Number Type Scope Debug Words Elements Last

OUTPUT 0 O Global No 21 7 O:6

INPUT 1 I Global No 21 7 I:6

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

OFF MOTOR 15 N Global No 9 9 N15:8

MSG-WR 16 N Global No 100 100 N16:99

(7)

LAD 2 - PRINCIPAL - PROGRAMA PRINCIPAL --- Total Rungs in File = 2 0000 I:3 15 1746-IB16 Habilitar BR PETROBRAS JSR Jump To Subroutine

SBR File Number U:32

JSR

(8)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA L O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED L O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO 0001 I:3 2 1746-IB16 seta relogio SETA_RELOGIO L O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE U O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0002 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE U O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO U O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE

0003 ReturnRETRET

(9)

LAD 4 - SEMAFORO - exercício E --- Total Rungs in File = 11 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE EN DN TON Timer On Delay Timer T4:0 Time Base 1.0 Preset 100< Accum 0< TON TIMER 1 TIMER_VERMELHO 0001 T4:0 TT TIMER 1 TIMER_VERMELHO/TT O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0002 T4:0 DN TIMER 1 TIMER_VERMELHO/DN RES T4:0 TIMER 1 TIMER_VERMELHO 0003 I:3 0 1746-IB16 CHAVE LIGA CH1 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO EN DN TON Timer On Delay Timer T4:1 Time Base 1.0 Preset 10< Accum 0< TON TIMER 2 TIMER_VERDE 0004 T4:1 TT TIMER 2 TIMER_VERDE/TT O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE 0005 T4:1 DN TIMER 2 TIMER_VERDE/DN RES T4:1 TIMER 2 TIMER_VERDE 0006 I:3 0 1746-IB16 CHAVE LIGA CH1 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE EN DN TON Timer On Delay Timer T4:2 Time Base 1.0 Preset 3< Accum 0< TON TIMER 3 TIMER_AMARELO 0007 T4:2 TT TIMER 3 TIMER_AMARELO/TT O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO TIMER 3

(10)

0009 ReturnRETRET

(11)

LAD 5 - MOTORES - Exercício F --- Total Rungs in File = 7 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:3 DN Timer 1 TIMER_LIGA/DN I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA EN DN TON Timer On Delay Timer T4:3 Time Base 1.0 Preset 2< Accum 0< TON Timer 1 TIMER_LIGA 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA L O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0002 T4:3 DN Timer 1 TIMER_LIGA/DN O:4 3 1746-OB16 motor 4 MOTOR4 L O:4 4 1746-OB16 motor 5 MOTOR5 O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE L O:4 3 1746-OB16 motor 4 MOTOR4 O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO L O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED L O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO 0003 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA T4:4 DN TIMER 2 TIMER_DESLIGA/DN I:3 0 1746-IB16 CHAVE LIGA CH1 EN DN TON Timer On Delay Timer T4:4 Time Base 1.0 Preset 3< Accum 0< TON TIMER 2 TIMER_DESLIGA 0004 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA I:3 0 1746-IB16 CHAVE LIGA CH1 U O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED

(12)

0005 T4:4 DN TIMER 2 TIMER_DESLIGA/DN O:4 3 1746-OB16 motor 4 MOTOR4 U O:4 4 1746-OB16 motor 5 MOTOR5 O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE U O:4 3 1746-OB16 motor 4 MOTOR4 O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO U O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED U O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO 0006 END

(13)

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

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

0000 T4:0 DN TIMER 1 TIMER_VERMELHO/DN EN DN TON Timer On Delay Timer T4:0 Time Base 1.0 Preset 100< Accum 0< TON TIMER 1 TIMER_VERMELHO 0001 Scale w/ParametersSCP Input 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 0002 T4:0 DN TIMER 1 TIMER_VERMELHO/DN LES Less Than (A<B) Source A N7:5 0< Source B F8:0 87.0< LES L O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0003 T4:0 DN TIMER 1 TIMER_VERMELHO/DN SUB Subtract Source A N7:5 0< Source B 3.0 3.0< Dest F8:0 87.0< SUB 0004 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA U O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0005 END

(14)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:5 DN tempo de clock do relogio CLOCK/DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:5 Time Base 1.0 Preset 1< Accum 0< TON tempo de clock do relogio CLOCK 0001 T4:5 DN tempo de clock do relogio CLOCK/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0002 C5:0 DN contador segundos SEGUNDOS/DN CU DN CTU Count Up Counter C5:1 Preset 60< Accum 4< CTU contador minutos MINUTOS 0003 C5:1 DN contador minutos MINUTOS/DN CU DN CTU Count Up Counter C5:2 Preset 24< Accum 10< CTU contador hora HORA 0004 C5:0 DN contador segundos SEGUNDOS/DN RES C5:0 contador segundos SEGUNDOS 0005 C5:1 DN contador minutos MINUTOS/DN RES C5:1 contador minutos MINUTOS 0006 C5:2 DN contador hora HORA/DN RES C5:2 contador hora HORA 0007 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source I:5.0 0000h< Dest C5:1.ACC 4< FRD Minuto MINUTOS.ACC

(15)

LAD 7 - RELOGIO - exercício G --- Total Rungs in File = 12 0008 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source I:1.0 5115h< Dest C5:2.ACC 10< FRD Hora HORA.ACC 0009 To BCDTOD Source C5:1.ACC 4< Dest O:6.0 0042h< TOD Minuto MINUTOS.ACC 0010 To BCDTOD Source C5:2.ACC 10< Dest O:2.0 1004h< TOD Hora HORA.ACC 0011 END

(16)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:5 DN tempo de clock do relogio CLOCK/DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:5 Time Base 1.0 Preset 1< Accum 0< TON tempo de clock do relogio CLOCK 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:6 DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:6 Time Base 0.01 Preset 1< Accum 0< TON 0002 T4:6 DN CU DN CTU Count Up Counter C5:3 Preset 99< Accum 88< CTU 0003 T4:5 DN tempo de clock do relogio CLOCK/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0004 C5:0 DN contador segundos SEGUNDOS/DN CU DN CTU Count Up Counter C5:1 Preset 60< Accum 4< CTU contador minutos MINUTOS 0005 C5:1 DN contador minutos MINUTOS/DN CU DN CTU Count Up Counter C5:2 Preset 24< Accum 10< CTU contador hora HORA 0006 C5:0 DN contador segundos SEGUNDOS/DN RES C5:0 contador segundos SEGUNDOS 0007 C5:1 DN contador minutos MINUTOS/DN RES C5:1 contador minutos MINUTOS

(17)

LAD 8 - RELOGIO2 - exercício H --- Total Rungs in File = 19 0008 C5:2 DN contador hora HORA/DN RES C5:2 contador hora HORA 0009 C5:3 DN RES C5:3 0010 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source I:5.0 0000h< Dest C5:1.ACC 4< FRD Minuto MINUTOS.ACC 0011 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source I:1.0 5115h< Dest C5:2.ACC 10< FRD Hora HORA.ACC 0012 MultiplyMUL Source A C5:2.ACC 10< Source B 100 100< Dest N7:0 11< MUL variavel auxiliar hora AUX_HORA 0013 AddADD Source A N7:0 11< Source B C5:1.ACC 4< Dest N7:0 11< ADD variavel auxiliar hora AUX_HORA 0014 To BCDTOD Source N7:0 11< Dest O:2.0 1004h< TOD variavel auxiliar hora AUX_HORA

(18)

0015 MultiplyMUL Source A 100 100< Source B C5:0.ACC 1< Dest N7:1 0< MUL variavel auxiliar segundos AUX_SEGUNDOS 0016 AddADD Source A N7:1 0< Source B C5:3.ACC 88< Dest N7:1 0< ADD variavel auxiliar segundos AUX_SEGUNDOS 0017 To BCDTOD Source N7:1 0< Dest O:6.0 0042h< TOD variavel auxiliar segundos AUX_SEGUNDOS 0018 END

(19)

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:5 DN tempo de clock do relogio CLOCK/DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:5 Time Base 1.0 Preset 1< Accum 0< TON tempo de clock do relogio CLOCK 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:6 DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:6 Time Base 0.01 Preset 1< Accum 0< TON 0002 T4:6 DN CU DN CTU Count Up Counter C5:3 Preset 99< Accum 88< CTU 0003 T4:5 DN tempo de clock do relogio CLOCK/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0004 C5:0 DN contador segundos SEGUNDOS/DN CU DN CTU Count Up Counter C5:1 Preset 60< Accum 4< CTU contador minutos MINUTOS 0005 C5:1 DN contador minutos MINUTOS/DN CU DN CTU Count Up Counter C5:2 Preset 24< Accum 10< CTU contador hora HORA 0006 C5:0 DN contador segundos SEGUNDOS/DN RES C5:0 contador segundos SEGUNDOS C5:1 contador minutos MINUTOS/DN C5:1 contador minutos MINUTOS

(20)

0008 C5:2 DN contador hora HORA/DN RES C5:2 contador hora HORA 0009 C5:3 DN RES C5:3 0010 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 00FFh 255< Dest N7:2 3< MVM 0011 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 0FF00h -256< Dest N7:3 1< MVM 0012 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:3 0001h< Dest N7:4 3< FRD 0013 I:3 2 1746-IB16 seta relogio SETA_RELOGIO DIV Divide Source A N7:4 3< Source B 100 100< Dest C5:2.ACC 10< DIV Hora HORA.ACC 0014 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:2 0003h< Dest C5:1.ACC 4< FRD Minuto MINUTOS.ACC

(21)

LAD 9 - RELOGIO3 - Exercício I --- Total Rungs in File = 22 0015 MultiplyMUL Source A C5:2.ACC 10< Source B 100 100< Dest N7:0 11< MUL variavel auxiliar hora AUX_HORA 0016 AddADD Source A N7:0 11< Source B C5:1.ACC 4< Dest N7:0 11< ADD variavel auxiliar hora AUX_HORA 0017 To BCDTOD Source N7:0 11< Dest O:2.0 1004h< TOD variavel auxiliar hora AUX_HORA 0018 MultiplyMUL Source A 100 100< Source B C5:0.ACC 1< Dest N7:1 0< MUL variavel auxiliar segundos AUX_SEGUNDOS 0019 AddADD Source A N7:1 0< Source B C5:3.ACC 88< Dest N7:1 0< ADD variavel auxiliar segundos AUX_SEGUNDOS

(22)

0020 To BCDTOD Source N7:1 0< Dest O:6.0 0042h< TOD variavel auxiliar segundos AUX_SEGUNDOS 0021 END

(23)

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:5 DN tempo de clock do relogio CLOCK/DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:5 Time Base 1.0 Preset 1< Accum 0< TON tempo de clock do relogio CLOCK 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:6 DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:6 Time Base 0.01 Preset 1< Accum 0< TON 0002 T4:6 DN CU DN CTU Count Up Counter C5:3 Preset 99< Accum 88< CTU 0003 T4:5 DN tempo de clock do relogio CLOCK/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0004 C5:0 DN contador segundos SEGUNDOS/DN CU DN CTU Count Up Counter C5:1 Preset 60< Accum 4< CTU contador minutos MINUTOS 0005 C5:1 DN contador minutos MINUTOS/DN CU DN CTU Count Up Counter C5:2 Preset 24< Accum 10< CTU contador hora HORA 0006 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 00FFh 255< Dest N7:2 MVM

(24)

0007 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 0FF00h -256< Dest N7:3 1< MVM 0008 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:3 0001h< Dest N7:4 3< FRD 0009 I:3 2 1746-IB16 seta relogio SETA_RELOGIO DIV Divide Source A N7:4 3< Source B 100 100< Dest C5:2.ACC 10< DIV Hora HORA.ACC 0010 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:2 0003h< Dest C5:1.ACC 4< FRD Minuto MINUTOS.ACC 0011 MultiplyMUL Source A C5:2.ACC 10< Source B 100 100< Dest N7:0 11< MUL variavel auxiliar hora AUX_HORA

(25)

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38 0012 AddADD Source A N7:0 11< Source B C5:1.ACC 4< Dest N7:0 11< ADD variavel auxiliar hora AUX_HORA 0013 To BCDTOD Source N7:0 11< Dest O:2.0 1004h< TOD variavel auxiliar hora AUX_HORA 0014 MultiplyMUL Source A 100 100< Source B C5:0.ACC 1< Dest N7:1 0< MUL variavel auxiliar segundos AUX_SEGUNDOS 0015 AddADD Source A N7:1 0< Source B C5:3.ACC 88< Dest N7:1 0< ADD variavel auxiliar segundos AUX_SEGUNDOS 0016 To BCDTOD Source N7:1 0< Dest O:6.0 0042h< TOD variavel auxiliar segundos AUX_SEGUNDOS

(26)

0017 I:3 3 1746-IB16 MVM Masked Move Source I:5.0 0< Mask 00FFh 255< Dest N7:8 48< MVM 0018 I:3 3 1746-IB16 MVM Masked Move Source I:5.0 0< Mask 0FF00h -256< Dest N7:9 2304< MVM 0019 I:3 3 1746-IB16 FRD From BCD Source N7:9 0900h< Dest N7:10 900< FRD 0020 I:3 3 1746-IB16 DIV Divide Source A N7:10 900< Source B 100 100< Dest N7:6 9< DIV ACHORA 0021 I:3 3 1746-IB16 FRD From BCD Source N7:8 0030h< Dest N7:7 30< FRD ACMINUTO 0022 EqualEQU Source A N7:6 9< Source B C5:2.ACC 10< EQU ACHORA B3:0 1 hora igual HORAIGUAL 0023 EqualEQU Source A N7:7 30< Source B C5:1.ACC 4< EQU ACMINUTO B3:0 2 minuto igual MINUTOIGUAL

(27)

LAD 10 - RELOGIO4 - Exercício J --- Total Rungs in File = 38 0024 I:3 4 1746-IB16 botão Liga BL1 C5:1 DN contador minutos MINUTOS/DN L B3:0 5 Desaciona alarme DESALARME 0025 C5:1 DN contador minutos MINUTOS/DN U B3:0 5 Desaciona alarme DESALARME 0026 T4:8 DN turn off OFF/DN B3:0 2 minuto igual MINUTOIGUAL B3:0 1 hora igual HORAIGUAL EN DN TON Timer On Delay Timer T4:7 Time Base 1.0 Preset 1< Accum 0< TON Turn on ON 0027 T4:7 DN Turn on ON/DN B3:0 2 minuto igual MINUTOIGUAL B3:0 1 hora igual HORAIGUAL EN DN TON Timer On Delay Timer T4:8 Time Base 1.0 Preset 1< Accum 0< TON turn off OFF 0028 T4:7 TT Turn on ON/TT L B3:0 4 B4 0029 T4:8 TT turn off OFF/TT B3:0 5 Desaciona alarme DESALARME U B3:0 4 B4 0030 B3:0 4 B4 MOV Move Source -1 -1< Dest O:4.0 0< MOV SAIDA1

(28)

0031 B3:0 4 B4 MOV Move Source 0 0< Dest O:4.0 0< MOV SAIDA1 0032 C5:0 DN contador segundos SEGUNDOS/DN RES C5:0 contador segundos SEGUNDOS 0033 C5:1 DN contador minutos MINUTOS/DN RES C5:1 contador minutos MINUTOS 0034 C5:2 DN contador hora HORA/DN RES C5:2 contador hora HORA 0035 C5:3 DN RES C5:3

0036 ReturnRETRET

(29)

LAD 11 - SEMAFORO2 - Exercício Semaforo com LIM --- Total Rungs in File = 5 0000 T4:0 DN TIMER 1 TIMER_VERMELHO/DN EN DN TON Timer On Delay Timer T4:0 Time Base 1.0 Preset 100< Accum 0< TON TIMER 1 TIMER_VERMELHO

0001 Limit TestLIM

Low Lim 0 0< Test T4:0.ACC 0< High Lim 8 8< LIM TIMER 1 TIMER_VERMELHO.ACC O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED

0002 Limit TestLIM

Low Lim 9 9< Test T4:0.ACC 0< High Lim 11 11< LIM TIMER 1 TIMER_VERMELHO.ACC O:4 2 1746-OB16 MOTOR 3 / Verde MOTOR3_VERDE

0003 Limit TestLIM

Low Lim 12 12< Test T4:0.ACC 0< High Lim 18 18< LIM TIMER 1 TIMER_VERMELHO.ACC O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO 0004 END

(30)

0000 I:3 4 1746-IB16 botão Liga BL1 OSR B3:0 6 B3:0 7 L B3:0 7 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED U B3:0 7 0001 B3:0 7 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0002 END

(31)

LAD 13 - PID - Exemplo de PID --- Total Rungs in File = 7 0000 Scale w/ParametersSCP Input 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 0001 Scale w/ParametersSCP Input 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 0002 PIDPID Control Block N9:0 Process Variable N7:11 Control Variable N7:12

Control Block Length 23

Setup Screen < PID N 0003 MoveMOV Source N7:13 0< Dest N9:2 2000< MOV

0004 Greater Than (A>B)GRT Source A N7:12 0< Source B 5000 5000< GRT L O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0005 I:3 0 CHAVE LIGA CH1 U O:4 0 MOTOR 1 / vermelho MOTOR1_RED

(32)
(33)

LAD 14 - MSG_WR --- Total Rungs in File = 4 0000 N16:0 15 EN DN ER MSG Read/Write Message Type Peer-To-Peer Read/Write Write

Target Device 500CPU

Local/Remote Local

Control Block N16:0

Control Block Length 14

Setup Screen < MSG 0001 N17:0 15 EN DN ER MSG Read/Write Message Type Peer-To-Peer Read/Write Read

Target Device 500CPU

Local/Remote Local

Control Block N17:0

Control Block Length 14

Setup Screen <

MSG

0002 ReturnRETRET

(34)

0000 Scale w/ParametersSCP Input 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 0001 PIDPID Control Block N9:0 Process Variable N7:11 Control Variable N7:12

Control Block Length 23

Setup Screen < PID N 0002 Scale w/ParametersSCP Input 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 0003 Scale w/ParametersSCP Input N7:11 2< Input Min. 0 0< Input Max. 16383 16383< Scaled Min. 0 0< Scaled Max. 8000 8000< Output N7:14 0< SCP

(35)

LAD 15 - PID2 - Exercício Cáp.14 --- Total Rungs in File = 16 0004 Scale w/ParametersSCP Input N7:12 0< Input Min. 0 0< Input Max. 16383 16383< Scaled Min. 0 0< Scaled Max. 100 100< Output N7:15 90< SCP 0005 To BCDTOD Source N7:14 0< Dest O:2.0 1004h< TOD 0006 To BCDTOD Source N7:15 90< Dest O:6.0 0042h< TOD 0007 I:3 4 1746-IB16 botão Liga BL1 FRD From BCD Source I:1.0 5115h< Dest N9:2 2000< FRD 0008 I:3 0 1746-IB16 CHAVE LIGA CH1 N9:0 1 N/1 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0009 I:3 0 1746-IB16 CHAVE LIGA CH1 MOV Move Source I:7.0 32560< Dest O:7.0 4< MOV

(36)

0010 I:3 2 1746-IB16 seta relogio SETA_RELOGIO N9:0 2 N/2 0011 I:3 3 1746-IB16 O:4 3 1746-OB16 motor 4 MOTOR4 MOV Move Source 90 90< Dest N9:11 90< MOV MOV Move Source 10 10< Dest N9:12 10< MOV 0012 N9:0 8 N/8 O:4 13 1746-OB16 0013 N9:0 9 N/9 O:4 15 1746-OB16 0014 N9:0 10 N/10 O:4 10 1746-OB16 0015 END

(37)

LAD 16 - INDIRETO - Exemplo de endereçamento indireto --- Total Rungs in File = 3 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 CU DN CTU Count Up Counter C5:4 Preset 5< Accum 0< CTU 0001 MoveMOV Source 1735 1735< Dest N11:[C5:4.ACC] 0< MOV 0002 END

(38)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 CU DN CTU Count Up Counter C5:5 Preset 5< Accum 0< CTU 0001 MoveMOV Source C5:5.ACC 0< Dest S:24 1< MOV Index Register 0002 MoveMOV Source 1735 1735< Dest #N11:0 0< MOV 0003 END

(39)

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:5 DN tempo de clock do relogio CLOCK/DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:5 Time Base 1.0 Preset 1< Accum 0< TON tempo de clock do relogio CLOCK 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:6 DN I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN TON Timer On Delay Timer T4:6 Time Base 0.01 Preset 1< Accum 0< TON 0002 T4:6 DN CU DN CTU Count Up Counter C5:3 Preset 99< Accum 88< CTU 0003 T4:5 DN tempo de clock do relogio CLOCK/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0004 C5:0 DN contador segundos SEGUNDOS/DN CU DN CTU Count Up Counter C5:1 Preset 60< Accum 4< CTU contador minutos MINUTOS 0005 C5:1 DN contador minutos MINUTOS/DN CU DN CTU Count Up Counter C5:2 Preset 24< Accum 10< CTU contador hora HORA 0006 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 00FFh 255< Dest N7:2 MVM

(40)

0007 I:3 2 1746-IB16 seta relogio SETA_RELOGIO MVM Masked Move Source I:1.0 20757< Mask 0FF00h -256< Dest N7:3 1< MVM 0008 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:3 0001h< Dest N7:4 3< FRD 0009 I:3 2 1746-IB16 seta relogio SETA_RELOGIO DIV Divide Source A N7:4 3< Source B 100 100< Dest C5:2.ACC 10< DIV Hora HORA.ACC 0010 I:3 2 1746-IB16 seta relogio SETA_RELOGIO FRD From BCD Source N7:2 0003h< Dest C5:1.ACC 4< FRD Minuto MINUTOS.ACC 0011 MultiplyMUL Source A C5:2.ACC 10< Source B 100 100< Dest N7:0 11< MUL variavel auxiliar hora AUX_HORA

(41)

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41 0012 AddADD Source A N7:0 11< Source B C5:1.ACC 4< Dest N7:0 11< ADD variavel auxiliar hora AUX_HORA 0013 To BCDTOD Source N7:0 11< Dest O:2.0 1004h< TOD variavel auxiliar hora AUX_HORA 0014 MultiplyMUL Source A 100 100< Source B C5:0.ACC 1< Dest N7:1 0< MUL variavel auxiliar segundos AUX_SEGUNDOS 0015 AddADD Source A N7:1 0< Source B C5:3.ACC 88< Dest N7:1 0< ADD variavel auxiliar segundos AUX_SEGUNDOS 0016 To BCDTOD Source N7:1 0< Dest O:6.0 0042h< TOD variavel auxiliar segundos AUX_SEGUNDOS

(42)

0017 I:3 3 1746-IB16 MVM Masked Move Source I:5.0 0< Mask 00FFh 255< Dest N7:8 48< MVM 0018 I:3 3 1746-IB16 MVM Masked Move Source I:5.0 0< Mask 0FF00h -256< Dest N7:9 2304< MVM 0019 I:3 3 1746-IB16 FRD From BCD Source N7:9 0900h< Dest N7:10 900< FRD 0020 I:3 3 1746-IB16 DIV Divide Source A N7:10 900< Source B 100 100< Dest N7:6 9< DIV ACHORA 0021 I:3 3 1746-IB16 FRD From BCD Source N7:8 0030h< Dest N7:7 30< FRD ACMINUTO 0022 EqualEQU Source A N7:6 9< Source B C5:2.ACC 10< EQU ACHORA B3:0 1 hora igual HORAIGUAL 0023 EqualEQU Source A N7:7 30< Source B C5:1.ACC 4< EQU ACMINUTO B3:0 2 minuto igual MINUTOIGUAL

(43)

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41 0024 I:3 4 1746-IB16 botão Liga BL1 C5:1 DN contador minutos MINUTOS/DN L B3:0 5 Desaciona alarme DESALARME 0025 C5:1 DN contador minutos MINUTOS/DN U B3:0 5 Desaciona alarme DESALARME 0026 T4:8 DN turn off OFF/DN B3:0 2 minuto igual MINUTOIGUAL B3:0 1 hora igual HORAIGUAL EN DN TON Timer On Delay Timer T4:7 Time Base 1.0 Preset 1< Accum 0< TON Turn on ON 0027 T4:7 DN Turn on ON/DN B3:0 2 minuto igual MINUTOIGUAL B3:0 1 hora igual HORAIGUAL EN DN TON Timer On Delay Timer T4:8 Time Base 1.0 Preset 1< Accum 0< TON turn off OFF 0028 T4:7 TT Turn on ON/TT L B3:0 4 B4 0029 T4:8 TT turn off OFF/TT B3:0 5 Desaciona alarme DESALARME U B3:0 4 B4 0030 B3:0 4 B4 MOV Move Source -1 -1< Dest O:4.0 0< MOV SAIDA1

(44)

0031 B3:0 4 B4 MOV Move Source 0 0< Dest O:4.0 0< MOV SAIDA1 0032 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA SCP Scale w/Parameters Input 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 Minuto MINUTOS.ACC 0033 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA SCP Scale w/Parameters Input 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 Hora HORA.ACC 0034 Scale w/ParametersSCP Input 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

(45)

LAD 18 - REL-ANA - Ajuste de hora usando variáveis analogica --- Total Rungs in File = 41 0035 Scale w/ParametersSCP Input 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 0036 C5:0 DN contador segundos SEGUNDOS/DN RES C5:0 contador segundos SEGUNDOS 0037 C5:1 DN contador minutos MINUTOS/DN RES C5:1 contador minutos MINUTOS 0038 C5:2 DN contador hora HORA/DN RES C5:2 contador hora HORA 0039 C5:3 DN RES C5:3 0040 END

(46)

0000 T4:8 DN turn off OFF/DN EN DN TON Timer On Delay Timer T4:7 Time Base 1.0 Preset 1< Accum 0< TON Turn on ON 0001 T4:7 DN Turn on ON/DN EN DN TON Timer On Delay Timer T4:8 Time Base 1.0 Preset 1< Accum 0< TON turn off OFF 0002 T4:7 TT Turn on ON/TT B3:0 0 aciona o relogio LIGA_RELOGIO I:3 0 1746-IB16 CHAVE LIGA CH1 B3:0 1 hora igual HORAIGUAL B3:0 3 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0003 T4:7 TT Turn on ON/TT I:3 0 1746-IB16 CHAVE LIGA CH1 B3:0 2 minuto igual MINUTOIGUAL B3:0 3 O:4 1 1746-OB16 MOTOR 2 / amarelo MOTOR2_AMARELO 0004 T4:7 TT Turn on ON/TT B3:0 4 B4 I:3 0 1746-IB16 CHAVE LIGA CH1 B3:0 3 O:4 15 1746-OB16 0005 I:3 0 1746-IB16 CHAVE LIGA CH1 EN DN TON Timer On Delay Timer T4:9 Time Base 1.0 Preset 60< Accum 0< TON

(47)

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

0006 Limit TestLIM

Low Lim 0 0< Test T4:9.ACC 0< High Lim 10 10< LIM SCL Scale Source T4:9.ACC 0< Rate [/10000] 20000 20000< Offset 0 0< Dest N7:16 0< SCL

0007 Limit TestLIM

Low Lim 11 11< Test T4:9.ACC 0< High Lim 20 20< LIM MOV Move Source 20 20< Dest N7:16 0< MOV

0008 Limit TestLIM

Low Lim 21 21< Test T4:9.ACC 0< High Lim 30 30< LIM SCL Scale Source T4:9.ACC 0< Rate [/10000] 30000 30000< Offset -40 -40< Dest N7:16 0< SCL

0009 Limit TestLIM

Low Lim 31 31< Test T4:9.ACC 0< High Lim 40 40< LIM MOV Move Source 50 50< Dest N7:16 0< MOV U B3:0 1 hora igual HORAIGUAL

0010 Limit TestLIM

Low Lim 41 41< Test T4:9.ACC 0< High Lim 60 60< LIM SCL Scale Source T4:9.ACC 0< Rate [/10000] -25000 -25000< Offset 150 150< Dest N7:16 0< SCL B3:0 4 B4

(48)

0011 Limit TestLIM Low Lim 30 30< Test T4:9.ACC 0< High Lim 40 40< LIM B3:0 2 minuto igual MINUTOIGUAL 0012 EqualEQU Source A T4:9.ACC 0< Source B 60 60< EQU B3:0 3

0013 Grtr Than or Eql (A>=B)GEQ Source A N7:16 0< Source B 20 20< GEQ B3:0 1 hora igual HORAIGUAL

0014 Less Than (A<B)LES Source A N7:16 0< Source B 20 20< LES B3:0 0 aciona o relogio LIGA_RELOGIO 0015 Scale w/ParametersSCP Input 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 0016 To BCDTOD Source N7:16 0< Dest O:2.0 1004h< TOD

(49)

LAD 19 - SCP-SCL - Exercício Cap. 13 --- Total Rungs in File = 19 0017 To BCDTOD Source T4:9.ACC 0< Dest O:6.0 0042h< TOD 0018 END

(50)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 EN DN TON Timer On Delay Timer T4:10 Time Base 1.0 Preset 8< Accum 0< TON Temporizador do acionamento dos motores por endereçamento indireto TIMER_INDIRETO 0001 MoveMOV Source 0 0< Dest N12:0 0< MOV 0002 MoveMOV Source 1 1< Dest N12:1 0< MOV 0003 MoveMOV Source 3 3< Dest N12:2 0< MOV 0004 MoveMOV Source 7 7< Dest N12:3 0< MOV 0005 MoveMOV Source 15 15< Dest N12:4 0< MOV 0006 MoveMOV Source 31 31< Dest N12:5 0< MOV

(51)

LAD 20 - MOTOR ADV - Exercício de motores com end. indireto --- Total Rungs in File = 12 0007 MoveMOV Source 63 63< Dest N12:6 0< MOV 0008 MoveMOV Source 127 127< Dest N12:7 0< MOV 0009 MoveMOV Source 255 255< Dest N12:8 0< MOV 0010 MoveMOV Source N12:[T4:10.ACC] 0< Dest O:4.0 0< MOV SAIDA1 0011 END

(52)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 EN DN TON Timer On Delay Timer T4:10 Time Base 1.0 Preset 8< Accum 0< TON Temporizador do acionamento dos motores por endereçamento indireto TIMER_INDIRETO 0001 MoveMOV Source 0 0< Dest N12:0 0< MOV 0002 MoveMOV Source 1 1< Dest N12:1 0< MOV 0003 MoveMOV Source 3 3< Dest N12:2 0< MOV 0004 MoveMOV Source 7 7< Dest N12:3 0< MOV 0005 MoveMOV Source 15 15< Dest N12:4 0< MOV 0006 MoveMOV Source 31 31< Dest N12:5 0< MOV

(53)

LAD 21 - MOTOR ADV1 - Exercício dos motores com end. indexado --- Total Rungs in File = 13 0007 MoveMOV Source 63 63< Dest N12:6 0< MOV 0008 MoveMOV Source 127 127< Dest N12:7 0< MOV 0009 MoveMOV Source 255 255< Dest N12:8 0< MOV 0010 MoveMOV Source T4:10.ACC 0< Dest S:24 1< MOV Index Register 0011 MoveMOV Source #N12:0 0< Dest O:4.0 0< MOV SAIDA1 0012 END

(54)

0000 I:3 4 1746-IB16 botão Liga BL1 MOV Move Source I:1.0 20757< Dest O:2.0 4100< MOV 0001 To BCDTOD Source I:1.0 20757< Dest N7:17 0006h< TOD entrada tw1 TW1 0002 I:3 5 1746-IB16 sensor superior FC1 I:3 4 1746-IB16 botão Liga BL1 I:3 6 1746-IB16 sensor inferior FC2 TOD To BCD Source N11:[N7:17] 0< Dest O:6.0 0042h< TOD 0003 I:3 5 1746-IB16 sensor superior FC1 MOV Move Source 1 1< Dest N11:[N7:17] 0< MOV 0004 I:3 6 1746-IB16 sensor inferior FC2 MOV Move Source 0 0< Dest N11:[N7:17] 0< MOV 0005 END

(55)

LAD 23 - COP / FLL - Exemplo de utilização da instrução --- Total Rungs in File = 3 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 COP Copy File Source #N12:0 Dest #N12:10 Length 10 COP 0001 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA FLL Fill File Source 0 Dest #N12:10 Length 10 FLL 0002 END

(56)

0000 I:3 4 1746-IB16 botão Liga BL1 FLL Fill File Source I:1.0 Dest #N13:0 Length 50 FLL 0001 I:3 5 1746-IB16 sensor superior FC1 COP Copy File Source #N13:0 Dest #N13:50 Length 50 COP 0002 I:3 6 1746-IB16 sensor inferior FC2 FLL Fill File Source 0 Dest #N13:0 Length 100 FLL

0003 ReturnRETRET

(57)

LAD 25 - FIFO/LIFO - Exemplo de utilização FIFO e LIFO --- Total Rungs in File = 5 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 EN DN EM FFL FIFO Load Source N7:0 FIFO #N13:0 Control R6:11 Length 16< Position 0< FFL 0001 I:3 1 1746-IB16 BOTÃO DESLIGA DESLIGA EU DN EM FFU FIFO Unload FIFO #N13:0 Dest N7:1 Control R6:11 Length 16< Position 0< FFU 0002 I:3 2 1746-IB16 seta relogio SETA_RELOGIO EN DN EM LFL LIFO Load Source N7:2 LIFO #N13:10 Control R6:12 Length 10< Position 0< LFL 0003 I:3 3 1746-IB16 EU DN EM LFU LIFO Unload LIFO #N13:10 Dest N7:3 Control R6:12 Length 10< Position 0< LFU 0004 END

(58)

0000 I:3 4 1746-IB16 botão Liga BL1 FRD From BCD Source I:1.0 5115h< Dest N7:0 11< FRD variavel auxiliar hora AUX_HORA 0001 I:3 4 1746-IB16 botão Liga BL1 EN DN EM FFL FIFO Load Source N7:0 FIFO #N13:30 Control R6:13 Length 5< Position 0< FFL 0002 I:3 5 1746-IB16 sensor superior FC1 CPT Compute Dest N7:1 0< Expression ( ( ( N13:30 + N13:31 ) + N13:32 ) + N13:33 ) + N13:34 CPT variavel auxiliar segundos AUX_SEGUNDOS 0003 I:3 5 1746-IB16 sensor superior FC1 DIV Divide Source A N7:1 0< Source B 5 5< Dest N7:1 0< DIV variavel auxiliar segundos AUX_SEGUNDOS 0004 I:3 5 1746-IB16 sensor superior FC1 TOD To BCD Source N7:1 0< Dest O:2.0 1004h< TOD variavel auxiliar segundos AUX_SEGUNDOS 0005 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:12 DN EN DN TON Timer On Delay Timer T4:12 Time Base 0.01 Preset 4< Accum 0< TON

(59)

LAD 26 - MÉDIA - Exercício do Cáp.7 --- Total Rungs in File = 8 0006 T4:12 DN EU DN EM FFU FIFO Unload FIFO #N13:30 Dest N7:4 Control R6:13 Length 5< Position 0< FFU 0007 END

(60)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0001 I:3 4 1746-IB16 botão Liga BL1 EN DN BSL

Bit Shift Left

File #B3:0

Control R6:0

Bit Address I:3/0

Length 18<

BSL

(61)

LAD 28 - BSR - Exemplo da instrução BSR --- Total Rungs in File = 3 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 O:4 0 1746-OB16 MOTOR 1 / vermelho MOTOR1_RED 0001 I:3 4 1746-IB16 botão Liga BL1 EN DN BSR

Bit Shift Right

File #B3:0

Control R6:1

Bit Address I:3/0

Length 16<

BSR

(62)

0000 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:1 TT TIMER 2 TIMER_VERDE/TT MOV Move Source 1 1< Dest O:2.0 4100< MOV T4:0 DN TIMER 1 TIMER_VERMELHO/DN EN DN TON Timer On Delay Timer T4:0 Time Base 0.01 Preset 100< Accum 0< TON TIMER 1 TIMER_VERMELHO 0001 I:3 0 1746-IB16 CHAVE LIGA CH1 T4:1 TT TIMER 2 TIMER_VERDE/TT CLR Clear Dest O:2.0 4100< CLR 0002 T4:0 DN TIMER 1 TIMER_VERMELHO/DN T4:1 TT TIMER 2 TIMER_VERDE/TT EN DN BSL

Bit Shift Left

File #O:4.0

Control R6:11

Bit Address I:3/4

Length 16< BSL 0003 R6:11 UL T4:0 DN TIMER 1 TIMER_VERMELHO/DN CU DN CTU Count Up Counter C5:6 Preset 255< Accum 5< CTU 0004 I:3 6 1746-IB16 sensor inferior FC2 RES C5:6 0005 To BCDTOD Source C5:6.ACC 5< Dest O:6.0 0042h< TOD

(63)

LAD 29 - GARRAFAS --- Total Rungs in File = 10 0006 R6:11 UL T4:0 DN TIMER 1 TIMER_VERMELHO/DN CU DN CTU Count Up Counter C5:0 Preset 4< Accum 1< CTU contador segundos SEGUNDOS 0007 T4:1 DN TIMER 2 TIMER_VERDE/DN RES C5:0 contador segundos SEGUNDOS 0008 C5:0 DN contador segundos SEGUNDOS/DN EN DN TON Timer On Delay Timer T4:1 Time Base 1.0 Preset 10< Accum 0< TON TIMER 2 TIMER_VERDE 0009 END

(64)

0000 I:3 5 1746-IB16 sensor superior FC1 EN DN SQO Sequencer Output File #N7:0 Mask 0FFFFh Dest B3:0 Control R6:2 Length 4< Position 1< SQO 0001 END

(65)

LAD 31 - SQL - Exemplo de funcionamento da instrução SQL --- Total Rungs in File = 3 0000 I:3 4 1746-IB16 botão Liga BL1 CLR Clear Dest R6:3.POS 0< CLR 0001 I:3 4 1746-IB16 botão Liga BL1 I:3 5 1746-IB16 sensor superior FC1 EN DN SQL Sequencer Load File #N7:0 Source B3:0 Control R6:3 Length 4< Position 0< SQL 0002 END

(66)

0000 I:3 5 1746-IB16 sensor superior FC1 EN DN FD SQC Sequencer Compare File #N7:0 Mask 0FFFFh Source B3:0 Control R6:4 Length 4< Position 1< SQC 0001 END

(67)

LAD 33 - MOTOR-SQO - Exercício do Cáp. 9 --- Total Rungs in File = 11 0000 I:3 0 1746-IB16 CHAVE LIGA CH1 I:3 7 1746-IB16 OSR B3:2 1 B3:2 2 L B3:2 2 B3:2 3 U B3:2 2 0001 B3:2 2 B3:2 3 0002 B3:2 3 T4:11 DN EN DN TON Timer On Delay Timer T4:11 Time Base 1.0 Preset 3< Accum 0< TON 0003 T4:11 DN B3:2 0 EN DN SQO Sequencer Output File #N14:0 Mask 0FFFFh Dest O:4.0 Control R6:5 Length 8< Position 0< SQO 0004 EqualEQU Source A R6:5.POS 0< Source B 8 8< EQU B3:2 0 0005 B3:2 0 L B3:2 5 0006 B3:2 3 T4:12 DN B3:2 5 EN DN TON Timer On Delay Timer T4:12 Time Base 1.0 Preset 4< Accum 0< TON 0007 T4:12 DN B3:2 4 EN DN SQO Sequencer Output File #N15:0 Mask 0FFFFh Dest O:4.0 Control R6:6 Length 8< Position 0< SQO

(68)

0008 EqualEQU Source A R6:6.POS 0< Source B 8 8< EQU B3:2 4 U B3:2 5 CLR Clear Dest R6:5.POS 0< CLR CLR Clear Dest R6:6.POS 0< CLR 0009 I:3 7 1746-IB16 MOV Move Source 0 0< Dest O:4.0 0< MOV SAIDA1 B3:2 4 U B3:2 5 CLR Clear Dest R6:5.POS 0< CLR CLR Clear Dest R6:6.POS 0< CLR 0010 END

(69)

LAD 34 - STI --- Total Rungs in File = 2 0000 AddADD Source A 1 1< Source B N7:0 11< Dest N7:0 11< ADD variavel auxiliar hora AUX_HORA 0001 END

(70)

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 VDC

O: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 VDC O: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 VDC O: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 Out O: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 Out O: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 Out O: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

(71)

Data File I1 (bin) -- INPUT

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 VDC

I:3.0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1746-IB16 - 16-Input (SINK) 24 VDC I:5.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1746-IB16 - 16-Input (SINK) 24 VDC

I: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 Out I: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 Out I: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 Out I: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

(72)

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 = 0

Event Interrupt 10 uS Time Stamp S:44 = 0

I/O Slot Enables: S:11 S:12

0 10 20 30

11111111 11111111 11111111 11111111

I/O Slot Interrupt Enables: S:27 S:28

0 10 20 30

11111111 11111111 11111111 11111111

I/O Slot Interrupt Pending: S:25 S:26

0 10 20 30

00000000 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

(73)

Data File S2 (hex) -- STATUS

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 30 00000000 00000000 00000000 00000000 00000000 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

(74)

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 7 S:100 0 0h 0h 0h 0h 0h 0h 0h 0h S:108 10 0h 0h 0h 0h 0h 0h 0h 0h S:116 20 0h 0h 0h 0h 0h 0h 0h 0h S:124 30 0h 0h 0h 0h 0h 0h 0h 0h S:132 40 0h 0h 0h 0h 0h 0h 0h 0h S:140 50 0h 0h 0h 0h 0h 0h 0h 0h S:148 60 0h 0h 0h 0h 0h 0h 0h 0h S:156 70 0h 0h 0h 0h 0h 0h 0h 0h

(75)

Data File B3 (bin) -- BINARY

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

(76)

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

(77)

Data File C5 -- COUNTER

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

(78)

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

(79)

Data File N7 (dec) -- INTEGER

Offset 0 1 2 3 4 5 6 7 8 9 N7:0 11 0 3 1 3 0 9 30 48 2304

(80)

Offset 0 1 2 3 4 F8:0 87

(81)

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

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

(82)

Offset 0 1 2 3 4 5 6 7 8 9 N10:0 0 0 0 0 0 0 0 0 0 0

(83)

Data File N11 (dec) -- FILE -- Arquivo 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

(84)

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

(85)

Data File N13 (dec) 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

(86)

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

(87)

Data File N15 (dec) -- OFF MOTOR

Offset 0 1 2 3 4 5 6 7 8 9 N15:0 255 127 63 31 15 7 3 1 0

(88)

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

(89)

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

Offset 0 1 2 3 4 5 6 7 8 9 N17:0 0 1 1 1 140 7 0 0 5 0

(90)

Address (Symbol) = Value [Description]

(91)

Address/Symbol Database

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

(92)

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

(93)

Address/Symbol Database

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

(94)

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

(95)

Address/Symbol Database

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

(96)
(97)

Symbol Group Database Group_Name Description

References

Related documents

Project Status Details Project Number: PR20100017 Project Name: OPS1 Replacement Project Manager: Kirk Anderson Project Phase: Testing MIPO Version: V4

Gene Title Gene Symbol GO Biological Process Description GO Molecular Function

Handling student in to final report system is concerned with automated system project and database assume data across the database systems do a scribd member to view

Tata Engineering and Locomotive Company Ltd (Telco), the Tata group flagship company, is the leader in the commercial vehicle segment with 63% market share in

For example, an enterprise might build a database about its customers that described relationships in sufficient detail so that management, salespeople, people providing service,

The mobile services group provides GSM mobile services across India in 23 telecom circles, while the B&amp;T business group provides broadband &amp; telephone services in 90

The Expanded Noun Phrases are further used to match with the description of the Snomed to generate more Snomed Codes.. Text to

Following a short description of the context, I will identify particular student responses that support the explanations of how I categorised the students according to their