lab ladder

12
RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE INTERPRETING LADDER LOGIC Summary Tasks After completing this lesson, you will be able to interpret simple ladder logic programs that use basic conditional and retentive bit-level instructions. Since ladder logic is the one of programming languages used to program Control Logix system, knowing how to interpret this language make troubleshooting problems associated with this systems much easier. Exercise 1 In the exercise you will interpret simple ladder logic programs that use basic conditional and retentive bit- level instructions. Directions: 1. Create new Project, namely: BBFE_Training_Day2. Set all controller properties and I/O Configuration as described in previous section. 2. Create tags as follow: Ladder Logic

Upload: hzq1e

Post on 05-May-2017

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Lab Ladder

RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE

INTERPRETING LADDER LOGIC

Summary TasksAfter completing this lesson, you will be able to interpret simple ladder logic

programs that use basic conditional and retentive bit-level instructions. Since

ladder logic is the one of programming languages used to program Control

Logix system, knowing how to interpret this language make troubleshooting

problems associated with this systems much easier.

Exercise 1In the exercise you will interpret simple ladder logic programs that use basic

conditional and retentive bit-level instructions.

Directions:

1. Create new Project, namely: BBFE_Training_Day2. Set all controller

properties and I/O Configuration as described in previous section.

2. Create tags as follow:

- Name: SW0, Tag type Base, Data Type: BOOL

- Create same format type namely SW1, SW2, SW3

Ladder Logic

Page 2: Lab Ladder

2 Lab Work – Ladder Logic

- Name: Light0, Tag type Alias, Alias For: Local:3:O.Data.0. Create

another following tags with same format:

- Name: Light1, Tag type Alias, Alias For: Local:3:O.Data.1

- Name: Light2, Tag type Alias, Alias For: Local:3:O.Data.2

- Name: Light3, Tag type Alias, Alias For: Local:3:O.Data.3

3. Create a new routine in MainProgram, namely: Ladder_1. Select type:

Ladder Diagram.

Department of Engineering Physic – ITB

Page 3: Lab Ladder

RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE

4. Create ladder diagram as following figure:

5. In MainRoutine add JSR (Jump to Sub Routine) ladder to call Ladder_1

Routine. Add new tag SW_Ladder_1 that has same format with SW0

6. Download and go online to this project.

7. Place controller in Remote Run Mode.

8. Toggle SW_Ladder_1 to bit = 1

9. Interpret the instruction in the program file by answering the following

questions:

A. Close SW0 (By toggle SW0 to bit = 1). When SW0 is closed, which

light(s) turn on?

___________________________________________________

B. Open SW0 (by toggle SW0 to bit = 0). When SW0 is open, what

happen to Light0 and Light1?

___________________________________________________

C. Where is the bit corresponding to Light0 located?

___________________________________________________

Ladder Logic

Page 4: Lab Ladder

4 Lab Work – Ladder Logic

D. Close SW1 (by toggle SW1 to bit =1). What happens to Light2?

___________________________________________________

E. Open SW1 (by toggle SW1 to bit =0). What happens?

___________________________________________________

F. Close SW2 (by toggle SW2 to bit =1). What happens?

___________________________________________________

G. Open SW2 (by toggle SW2 to bit =0). What happens?

___________________________________________________

H. What must be done to turn Light3 off?

___________________________________________________

Department of Engineering Physic – ITB

Page 5: Lab Ladder

RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE

Exercise 2After completing this lesson, you will be able to interpret TON (Timer On

Delay) instructions. You can program time-based events more effectively if

you know and can apply all of the components associated with a TON

instruction

Directions:

1. Create tags as follow:

- Name: Timer1, Tag type Base, Data Type: TIMER

2. Create a new routine in MainProgram, namely: Ladder_1. Select type:

Ladder Diagram.

3. Create ladder diagram as following figure:

Ladder Logic

Page 6: Lab Ladder

6 Lab Work – Ladder Logic

4. In MainRoutine add JSR (Jump to Sub Routine) ladder to call Ladder_2

Routine. Add new tag SW_Ladder_2 that has same format with SW0

5. Download and go online to this project

6. Place controller in Remote Run Mode.

7. Toggle SW_Ladder_2 to bit = 1

8. Interpret how the TON instruction works by answering the following

questions:

A. Which switch must be turned on to start the TON timer timing?

_____________________________________________________

B. How long will the TON timer time?

_____________________________________________________

C. Start the timer by toggle SW0 on (corresponding to bit = 1)?

_____________________________________________________

D. List two observations that indicate that the timer is done timing:

_____________________________________________________

_____________________________________________________

E. What does it mean when Light1 is on?

________________________________________ _____________

F. When doest Light1 turn off?

_____________________________________________________

Department of Engineering Physic – ITB

Page 7: Lab Ladder

RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE

G. After SW0 on (by toggle SW1 to bit =1), How long does it take before

Light2 turns on?

_____________________________________________________

H. When does Light3 turn on? When does it turn off?

_____________________________________________________

Exercise 3After completing this lesson, you will be able to interpret CTU (Count Up)

instructions. You can write more effective programs to control counting

applications if you know and can apply all of the components associated with

CTU instruction.

Directions:

1. Create tags as follow:

- Name: Counter1, Tag type Base, Data Type: COUNTER

2. Create a new routine in MainProgram, namely: Ladder_3. Select type:

Ladder Diagram.

3. Create ladder diagram as following figure:

Ladder Logic

Page 8: Lab Ladder

8 Lab Work – Ladder Logic

4. In MainRoutine add JSR (Jump to Sub Routine) ladder to call Ladder_3

Routine. Add new tag: SW_Ladder_3 that has same format with SW0

5. Download and go online to this project

6. Place controller in Remote Run Mode.

7. Toggle SW_Ladder_3 to bit = 1

8. Answer the questions below:

A. When does the counter reset?

_____________________________________________________

B. Which counter bit controls Light2?

_____________________________________________________

C. How many times must SW2 transition to turn Light2 on?

_____________________________________________________

D. Can accumulated value increase past the preset value?

_____________________________________________________

E. Does Light2 stay on when accumulated value passes the preset

value?

Department of Engineering Physic – ITB

Page 9: Lab Ladder

RSLOGIX 5000 MAINTENANCE AND TROUBLESHOOTING COURSE

________________________________________ _____________

F. Which rung has to be true to turn Light2 off?

_____________________________________________________

G. When does Light1 come on?

_____________________________________________________

Ladder Logic