Download ppt - Pico Pico LAB#4

Transcript
Page 1: Pico Pico LAB#4

1

Starting & Stopping Motors

Pico Pico LAB#4

Page 2: Pico Pico LAB#4

2

• Program a series of three basic ladder logic rungs. These

basic rungs are the most common rungs found in every

ladder program.

• Each of these rungs will help you to “Frame” how a Pico is

programmed, and how they operate.

What we are going to do:What we are going to do:

Page 3: Pico Pico LAB#4

3

Pico Overview, Features Pico Overview, Features

1. Incoming Power connection

2. Inputs connections

3. Keypad

4. Communication Cable, Memory module interface cover

5. Outputs connections

6. LCD Display

7. Write-On Surface

21

3

4

5

7

6

Page 4: Pico Pico LAB#4

4

Pico Overview, Operating ButtonsPico Overview, Operating Buttons

1. Del- Delete object in the circuit diagram

2. Alt- Special functions in the circuit diagram

3. Cursor Buttons- – Move cursor – Select menu items– Choose contact numbers, values,

times, etc– P-button function (when enabled)

• Left arrow, Input P1• Up arrow, Input P2• Right arrow, Input P3• Down arrow, Input P4

4. Ok- Next menu level, store your entry

5. Esc- Previous menu level, cancel your entry

21

3

4

5

Page 5: Pico Pico LAB#4

5

Pico Overview, Circuit Diagram SymbolsPico Overview, Circuit Diagram Symbols

1. Input Field

2. Output Coil Field

Circuit Diagram Symbols– P- Cursor button as input – I - Contact for input – Q - Contact for output– M - Contact for internal marker relay – T - Contact for timer relay – C - Contact for counter relay – - Contact for real time clock contact – A - Analog comparator contact

2

1

P1-------------[Q1

I 2--I 3-------[Q2

-Q2-

Q1--Q2-------[Q3

Page 6: Pico Pico LAB#4

6

12-Point Status Display12-Point Status Display

Real Time Clock•Day of the week•Time

Input StatusOFF/ ON

Output StatusOFF/ ON

Mode•RUN/STOP

I12345678 P

SU

12:00

Q1234 STOP

Page 7: Pico Pico LAB#4

7

Creating a new ProgramCreating a new Program

1. Change Mode– The PICO must be in the Stop mode

to delete the resident program. – From the “Status Display” screen

Press “OK” to display next menu screen.

– If this screen is displaying “RUN” The PICO is in “STOP” mode. Proceed to next page and delete program

– If this screen is displaying “STOP” The PICO is in “RUN” mode continue with next step

– Press “Down” arrow once to highlight “STOP”

– Select “STOP” by pressing the “Ok” key when “STOP” is flashing The display will change to “RUN” The PICO is now in the Stop mode

Note – left/right arrows: Move cursor– up/down arrows: Change

values– The “…” after a menu listing

refers to a second level of menus.

PROGRAM...

STOP

PARAMETER

SET CLOCK...

I12345678

TH

12:00

Q1234 RUN

PROGRAM...

RUN

PARAMETER

SET CLOCK...

Page 8: Pico Pico LAB#4

8

Delete existing ProgramDelete existing Program

2. Delete Program– Press “Up” arrow once to highlight

“Program”– Select “PROGRAM” by pressing

the “Ok” key when “PROGRAM” is flashing.

– Press “Down” arrow to select “DELETE PROG”

– Press “Ok” to accept “DELETE PROG”

– Press “Ok” to accept “DELETE?”– Press “Esc” to exit back one menu

screen

PROGRAM...

RUN

PARAMETER

SET CLOCK...

DELETE ?PROGRAM

DELETE PROG

PROGRAM...

RUN

PARAMETER

SET CLOCK...

Page 9: Pico Pico LAB#4

9

Setting Day/TimeSetting Day/Time

3. Setting Day / Time– Press “Down” arrow three times to

highlight “SET CLOCK...” – Press “Ok” to select “ SET

CLOCK…”– Press “Ok” to edit “SET CLOCK”

SET CLOCK

SUMMER TIME

PROGRAM...

RUN

PARAMETER

SET CLOCK...

PROGRAM...

RUN

PARAMETER

SET CLOCK...

WINTER TIME

DAY : SU

TIME : 12:00

Page 10: Pico Pico LAB#4

10

Setting Day/TimeSetting Day/Time

4. Setting Day / Time– Press “Left” or “Right” arrow once

to move to the Day of week– Press “Up” or “Down” arrow to

select the Day of week– Press “Left” or “Right” arrow to

move to the Time of day. Time of day is displayed in military

– Press “Up” or “Down” arrow to select correct Time of day

– Press “Ok” to accept edits– Press “Ok” to exit “SET CLOCK”

display– Press “Esc” twice to exit back to

“Status Display” screen

PROGRAM

RUN

PARAMETER

SET CLOCK

SET CLOCK

SUMMER TIME

WINTER TIME

DAY :SU

TIME :12:00

WINTER TIME

DAY : SU

TIME : 12:00

Page 11: Pico Pico LAB#4

11

Enable the Cursor Push ButtonEnable the Cursor Push Button

5.Enable cursor buttons– From the “Status Display” screen

press the “Del” and “Alt” keys simultaneously

– Press “Down” arrow to highlight the “SYSTEM” Menu

– Press “Ok” to select– Press “Down” arrow to select

“P ON” flashing– Press “Ok” to enable push buttons

“P OFF” is flashing. Push buttons are now enabled

– Press “Esc” twice to exit to “Status Display” screen

Note: Once the cursor push buttons are enabled the user must have logic in the program addressed to the pushbuttons in order for the “P” to be displayed in the Status Screen.

PASSWORD…

SYSTEM

GB D F E I…

I12345678

SU

12:00

Q1234 STOP

DEBOUNCE OFF

P ON

MODE: STOP

RETENTION ON

DEBOUNCE OFF

P OFF

MODE: STOP

RETENTION ON

Page 12: Pico Pico LAB#4

12

Creating Ladder LogicCreating Ladder Logic

6.Create a New Program– From the “Status Display” screen

press “OK” to display next screen– Select “PROGRAM…” by pressing

the “Ok” key when “PROGRAM…” is flashing

– Select “PROGRAM” by pressing the “Ok” key when “PROGRAM” is flashing

– You are now ready to start programming the PICO

PROGRAM…

RUN

PARAMETER

SET CLOCK…

I12345678

SU

12:00

Q1234 STOP

PROGRAM

DELETE PROG

Page 13: Pico Pico LAB#4

13

Creating the 1st Rung of Ladder LogicCreating the 1st Rung of Ladder Logic

Program rung 1 :

6.Add I/O instructions– Press “Ok” to insert input– Press “UP” arrow once to select

the “P” input– Press “Ok” to accept the input “P” – Press “Ok” to accept the input

address “1”– Press “Alt” to activate the draw

function– Press “Right” arrow twice to draw

the connection– Press “Alt” to exit the draw

function– Press “Ok” to insert output– Press “Ok” to accept output “Q”– Press “Ok” to accept output

address “1”– Press “Ok” to accept the output.

This will start the next rung.

P1-------------[Q1

P1 P1------------- P1------------[Q1

P1-----------[Q1

Page 14: Pico Pico LAB#4

14

P1-------------[Q1

P2

Program this 2nd rung:

7.Add Input instructions– Press “Ok” to insert input– Press “UP” arrow once to select

the “P” input– Press “Alt” to select break contact

function (Normally Closed). Press “Ok” to accept

– Press “UP” arrow to select the input address “2”

– Press “Ok” to accept input “P2”– Press “Ok” to select the next input– Press “UP” once to select “P”– Press “OK” to accept “P” – Press “UP” arrow to select the

input address of “3” – Press “Ok” to accept input “P3”– Press “Alt” to activate the draw

function– Press “Right” arrow once to draw

the connection– Press “Alt” to exit the draw

function

P1-------------[Q1

P2—P3

P1-------------[Q1

P2--P 3-------

Creating the 2nd Rung of Ladder LogicCreating the 2nd Rung of Ladder Logic

8

P1-------------[Q1

P2--P3--------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Page 15: Pico Pico LAB#4

15

Creating the 2nd Rung of Ladder Logic, cont.Creating the 2nd Rung of Ladder Logic, cont.

Program this 2nd rung:

8.Add Output instruction– Press “Ok” to insert output– Press “Ok” to accept output “Q”– Press “Up” arrow to select “2”– Press “Ok” to accept output “Q2”.

This will start the next rung

9.Add Branch– Press “Right” arrow once to move

under the “P3”– Press “Ok” to select input– Press “Down” once to select “Q”– Press “Ok” to accept “Q”– Press “Up” arrow to select the

input address of “2” – Press “Ok” to accept input “Q2”.– Press “Alt” to activate the draw

function– Press “Up” arrow once to draw

branch

8

P1-------------[Q1

P2---P3-------[Q2

P1-------------[Q1

P2--P3--------[Q2

-Q2-

P1-------------[Q1

P2---P3-------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Page 16: Pico Pico LAB#4

16

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Creating the 2nd Rung of Ladder Logic, cont.Creating the 2nd Rung of Ladder Logic, cont.

Program this 2nd rung:

10.Add Branch– Press ”Left” arrow once to move to

the left side of “I3”– Press “Alt” to activate the draw

function– Press “Down” arrow once to draw

branch– Press “Alt” to exit the draw

function– Press “Left”arrow once and

“Down” arrow once. This will start the new rung

8

P1-------------[Q1

P2--P3 -------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Page 17: Pico Pico LAB#4

17

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------

Creating the 3rd Rung of Ladder Logic, cont.Creating the 3rd Rung of Ladder Logic, cont.

Program this 3rd rung:

11. Add Input instructions– Press “Ok” to insert input– Press “Down” arrow to select “Q”– Press “Ok” to accept input “Q”– Press “Ok” to accept the input

address of “Q1”– Press “Ok” to insert 2nd input– Press “Down” arrow to select “Q”– Press “Ok” to accept input “Q” – Press “Up” arrow to select “2”– Press “Ok” to accept the input

address of “Q2”– Press “Alt” to activate the draw

function– Press “Right” arrow once to draw

connection– Press “Alt” to exit draw function

8

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3

Page 18: Pico Pico LAB#4

18

Creating the 3rd Rung of Ladder Logic, cont.Creating the 3rd Rung of Ladder Logic, cont.

Program this 3rd rung:

12. Add Output instruction– Press “Ok” to insert output– Press “Ok” to accept output “Q”– Press “Up” arrow to select “3”– Press “Ok” to accept output

address “Q3”

8

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3 P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3

Page 19: Pico Pico LAB#4

19

Monitor the program.Monitor the program.

13. Change Mode– Press “Esc” to exit back to the 2nd

“Menu” screen– Press “Esc” to exit back to the 1st

“Menu” screen– Press “Down” arrow to Highlight

(Flashing) “RUN” – Press “Ok” to accept the RUN

mode– The PICO is now running– Press “Esc” to exit back to the

“Status Display. In this screen you can monitor the I/O and verify the “P” in the upper right corner of the screen.

14. Monitor the Ladder– The P-buttons are only recognized

as switch contacts in the Status menu and not in any other display

– Press “OK” twice to enter the ladder program

PROGRAM…

RUN

PARAMETER

SET CLOCK…

PROGRAM

DELETE PROG

I12345678 P

TH

12:00

Q1234 RUN

P1-------------[Q1

P2--P3--------[Q2

-Q2-

Q1--Q2-------[Q3

Page 20: Pico Pico LAB#4

20

Monitor the ProgramMonitor the Program

PROGRAM OPERATION

– RUNG 0-Press cursor pushbutton # P1 output #Q1 will turn ON release the pushbutton and output #Q1 will turn OFF. This output is dependent on the input condition. Verify this from the status screen. The “P” will display “P1” and the “Q1” will enable.

– RUNG 1-Press cursor pushbutton # P3 (start button) output # Q2 will latch ON. Press input pushbutton # P2 (stop button) will turn OFF output #2. This is a simple motor control circuit. This circuit utilizes both AND and OR placement of instructions.

– RUNG 2- The two inputs on rung 2 are conditions of rungs 0 and 1. The output (output #Q3) is a condition of the two inputs. So each outputs of rungs 0 and 1 must be true to turn on output #Q3. This circuit utilizes AND placement of instructions.

P1

P4

P3

P2

I12345678 P1

TH

12:00

Q1234 RUN

I12345678 P3

TH

12:00

Q1234 RUN

I12345678 P1

TH

12:00

Q1234 RUN

I12345678 P1

TH

12:00

Q1234 RUN


Recommended