Vous êtes sur la page 1sur 53

1. Click START 2. Click All Programs 3. Click PanasonicEW Control 4. Click FPWIN Pro 6 5.

Click icon FPWIN Pro 6

Create a new project with the start-up wizard.

Everything is pre-selected in the wizard (but changeable):


File location PLC type Program name Editor type

Click for Create Project

The Navigator provides a structured overview of your program: Hardware Libraries Variables

The programming window appears on the right side of your screen.

Programs

See the next slide for detailed information on the project navigator.

Navigator explanation:
Hardware

With the sytem registers it is possible to change hardware characteristics (e.g. no. of Timers/Counters)

Libraries

In the Library Pool all instructions, functions and function blocks which are available are stored.
Task pool The programs of the POU pool have to be entered into the Task pool as program or interrupt. This will be done automatically with the start wizard. Variables If IEC 61131-3 programming style is used, the global variables have to be entered here.

POU pool Programs

The programs are stored in the POU pool. Several programs are allowed. Each program has a header (variables) and a body (program code). The header is only used for IEC 61131-3 style. The start wizard installs 1 program; more programs can be added with the menu: EDIT -> New -> POU.

ASPECTS

SEQUENTIAL FUNCTION CHART

(SFC) / PANASONIC
16 INPUTS / 14 OUTPUTS X X0 X9 XA XF Y0 Y9 YA YD INPUTS OUTPUTS

STATEMENT LIST / FESTO 32 INPUTS / 16 OUTPUTS I0.0 I0.7 I1.0 I1.7 I2.0 I2.7 I3.0 I3.7 O0.0 O0.7 O1.0 O1.7

INPUT / OUTPUT ALLOCATION LIST

OPERANDS

INPUTS

OUTPUTS

The big box is for output operands while the small box is for input operands

Double click on the big box to insert output operands. Y3 is to move swivel drive to magazine position and Y5 is to switch on red light. Unlike statement list, in SFC output should be programmed in every following big boxes according to the sequence to make sure output contacts activated. See the next slide for more details.

Click on the small box and type input operand. XA is the operand for start button.

Click this icon to add step and transition

Click once on the 2nd big box to insert the comment (up to the programmer). Then double click on the same box to insert output operands.

Y4 used to move swivel drive to position next station and Y7 is to switch on green light.

Click this icon to add step and transition

When swivel drive move to the position next station, limit switch will activate (X4).

Cylinder pushes out work piece (Y0). To make green light remain switched on until the sequence end, Y7 should be inserted in every following big boxes.

After cylinder retract, delay 5 seconds for swivel drive move to the magazine position. Type TIMER_1 to activate timer.

Click New Action

Type TIMER_1 and choose Ladder Diagram (LD)

Click OK

Timer programmed in ladder diagram. Next slide will show how.

Click this icon

Choose TON

Click Insert

Place TIMER here

Name it and press ENTER

TIMER ON nal timer is started for each rising edge detected at IN

IN

SWITCH ON DELAY it value : 0-327.27s, 32-bit value : 04,836.47s; resolution 10ms each) the on delay is defined here (PT = Present Time) SIGNAL OUTPUT Is set if PT = ET

PT

ELAPSED TIME s the current value of the elapsed time

ET

Click Declare

X2 will on when cylinder pushes out work piece

After 5 seconds the timer will activate relay 1 (R1)

T#5S indicates 5 seconds

Name it and press ENTER

Click Declare

Double click to open the main program

Insert the SIGNAL OUTPUT from Timer. Timer will activate R1 after 5 seconds.

X6 is the optical sensor to detect availability of work pieces. X6 remains on if there is no work piece. not X6 means normally close.

Click Jump icon

Type JUMP

Click this box and click Label icon

Type JUMP

The sequence will continue from here until all the work pieces finish

Click this box and click Right Divergence icon

Name the box where we program counter and press ENTER twice

Type COUNTER

Click New Action

Type COUNTER and choose Ladder Diagram (LD)

Click OK

Click this icon

Choose CB_FB

Click Insert

Name it and press ENTER


COUNT CONTACT Each time a rising is detected at Count, the value 1 is subtracted from the elapsed value EV until the value 0 is reached RESET CONTACT Each time a rising edge is detected at Reset, the value 0 is assigned to EV and the signal output C is reset; each time a falling edge is detected at Reset, the value at SV is assigned to EV SET VALUE Value of EV after a reset procedure COUNT

RESET

SV C EV

SIGNAL OUTPUT Is set when EV becomes 0


ELAPSED VALUE current counter value

Change the Class from VAR to VAR_RETAIN

Click Declare

X3 is the pressure switch. Whenever swivel drive grip work piece, it will send signal to the counter to count.

XB is reset button. Its used to reset counter.


SV is up to the programmer to decide how many cycle he or she wants.

R1 is used in timer so R2 is used in counter.

Double click

Choose Rising Edge and click OK

Double click

Choose Rising Edge and click OK

Click here and click Step and Transition icon

Insert the SIGNAL OUTPUT from Counter. Counter will activate R2 after 3 cycles.

Click Jump icon

If R2 activated by counter then swivel drive will move the magazine position.

XB is reset button. Next step is if reset button pressed then the program jump to Initial Step

Vous aimerez peut-être aussi