Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 24 of 36

DL305 User Manual, pages 227 to 236

Pages 227 to 236 of 356

The original document is the PDF (3.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the GE DL330 / D3-330, Fanuc DL330 / D3-330 and GE Fanuc DL330 / D3-330

Page 227

RLL PLUS Programming Basics

10–27

Designing a Program Using RLL PLUS Instructions As with most any application problem, a thorough understanding of the tasks combined with a good plan of execution often results in success. The RLL PLUS instructions provide an easy way to load the plan of execution directly into the CPU. The easiest way to make sure you understand the tasks is to make a flowchart. This is often the most critical part of creating a program that uses RLL PLUS instructions. There are a few simple steps you can follow to create a detailed flowchart. 1. Create a top-level flowchart. 2. Expand the flowchart by adding things that cause the transitions from step to step. 3. Add any actions that must occur in each step. 4. Add any conditions that control the actions. 5. Add any special monitoring or alarm steps that must be performed. 6. Assign numbers to the stages (steps). 7. Add the I/O instructions and addresses (input contacts, output coils, jump instructions, etc.) 8. Enter the program. Use DirectSOFT to The DirectSOFT programming package allows you to quickly and easily create programs with RLL PLUS instructions. The software has special features that allow Save Time you to create the flowcharts, add the transitions, actions, etc. Even if your programs are fairly small, DirectSOFT can make the job much easier.

RLLPLUS Programming Basics

Page 228

10–28

RLL PLUS Programming Basics

Step 1: Design a Top-level Flowchart

There are many different ways to design a flowchart of the application problem, but there are a few guidelines that will make the job easier. 1. Start with a “top-level” flowchart that breaks the operation sequence into simple pieces. 2. Each piece of the top-level flowchart should only represent one action. Resist the temptation to group several operations into one part of the flowchart. 3. Don’t try to add input or output addresses to the flowchart. Only use words to describe the things that are taking place. 4. Don’t worry about special conditions, such as stop conditions, alarms, etc at this point. These will be added later when you fully understand how the main part of the operations sequence is organized. You can draw the flowchart horizontally or vertically at any point in the design process, the choice is yours. Here’s an example top level flowchart for our simple one-station press. The flowchart breaks the program into logical steps

Wait for Start

RLLPLUS Programming Basics

One Cycle

Check for Part

Continuous Check Mode

Lock Clamp

Press Part

Unlock Clamp

Move Conveyor

Page 229

RLL PLUS Programming Basics

Step 2: Add Flowchart Transitions

10–29

Once you have designed the basic operating sequence you should determine the events that cause a transition from step to step. During this phase you may find things need to be added to the flowchart. All you’re really doing is adding more detail to the top-level flowchart. Once again, don’t try to use addresses yet. Concentrate on using words to describe the events taking place. The following flowchart adds the transition conditions for our one-station press. Wait for Start

Transition Symbol Press Start Switch

Check for Part

Part in place

No Part

Lock the Clamp

Jump to Move Conveyor

Clamp Limit Switch

Press the Part

Press Lower Limit Switch

Unlock the Clamp

Unclamp Limit Switch

Move Conveyor

Conveyor Index Limit Switch

Check 1-cycle Switch ON Jump to Wait for Start

Check 1-cycle Switch OFF Jump to Check for Part

RLLPLUS Programming Basics

Check Mode

Page 230

10–30

RLL PLUS Programming Basics

Step 3: Add Actions

After you determine the events that cause a transition from step to step you should add any actions that need to take place during the sequence. Again, don’t try to use addresses yet. Concentrate on using words to describe the actions taking place. The following flowchart adds the actions that take place during each part of the program. Wait for Start

Press Start Switch

Check for Part

Part in place

No Part Jump to Move Conveyor

Lock the Clamp Clamp On Clamp Limit Switch

Action Symbol

Press the Part Press Press Lower Limit Switch

Unlock the Clamp Clamp Off Unclamp Limit Switch

Move Conveyor Conveyor On Conveyor Index Limit Switch

RLLPLUS Programming Basics

Check Mode

Check 1-cycle Switch ON Jump to Wait for Start

Check 1-cycle Switch OFF Jump to Check for Part

Page 231

RLL PLUS Programming Basics

10–31

Step 4: Some actions may only take place if certain conditions are met. Examine the Add Conditions for program carefully to determine any conditions that should be added. The following flowchart adds any conditions for the actions that take place during each part of the Actions program. Wait for Start

Press Start Switch

Check for Part

Part in place

No Part Jump to Move Conveyor

Lock the Clamp Clamp On Clamp Limit Switch

Press the Part Press Press Lower Limit Switch

Unlock the Clamp Press Up

Clamp Off

Unclamp Limit Switch

Move Conveyor

Condition Symbol Conveyor On

Conveyor Index Limit Switch Check Mode

Jump to Wait for Start

Check 1-cycle Switch OFF Jump to Check for Part

RLLPLUS Programming Basics

Check 1-cycle Switch ON

Page 232

10–32

RLL PLUS Programming Basics

Step 5: Add Alarm or Monitoring Operations

Many people are tempted to add alarm or monitoring operations earlier in the flowchart design process. It is almost always easier to add them last because then you know how they should affect the main part of the program. The following flowchart adds an operation that monitors for the conditions that will stop the press. Wait for Start

Press Start Switch

Check for Part

Monitor for Stop

Stop Switch

Part in place

Reset all Operations

No Part Jump to Move Conveyor

Lock the Clamp Clamp On

Jump to Wait for Start

Clamp Limit Switch

Press the Part Press On Press Lower Limit Switch

Unlock the Clamp Press Up

Clamp Off

Unclamp Limit Switch

Move Conveyor Conveyor On Conveyor Index Limit Switch

RLLPLUS Programming Basics

Check Mode

Check 1-cycle Switch ON Jump to Wait for Start

Check 1-cycle Switch OFF Jump to Check for Part

Page 233

RLL PLUS Programming Basics

Step 6: Determine Stage Numbering

10–33

You can number the stages any way you would like, but it’s usually best to follow some type of sequence that matches the flow of the program. This makes it much easier to understand. There are a few guidelines we have used to determine the best numbering sequence. You don’t have to follow these guidelines, but they may help. You can typically find these types of operations in any program. S Sequential Operations, a certain sequence of events, one after the other. This is usually the main part of the program. It’s usually best to number these first. For example, you may want to always number these stages from 0 – 127 (octal). S Independent Operations, these operations usually only perform one task, such as activating a motor or turning on a horn. For example, you may want to number all independent operations starting from 130 – 147 (octal). S Alarm and Monitoring Operations, These operations usually monitor the main parts of the program. Since you may want to reset parts of the program during an alarm condition, it is usually best to number these last. This way you can use one Reset (RST) instruction to reset almost the entire program. Use stages 150 – 177 for alarming and monitoring stages. These guidelines are especially helpful if you have many different programs. By using a standard numbering scheme, you always know where to look for the various types of operations. The example shows how we assigned numbers for the example press. Notice we’ve also made a separate stage for the clamp. This was not an absolute requirement because there are several ways you could have done this. We just did it to show you an example of an independent operation.

RLLPLUS Programming Basics

Page 234

10–34

RLL PLUS Programming Basics

Initial Stage 0 Wait for Start

Press Start Switch

Stage 1 Check for Part

Stage 150 Monitor for Stop

Stop Switch

Part in place

Reset all Operations

No Part Jump to Move Conveyor

Stage 2 Lock the Clamp Clamp On

Jump to Wait for Start

Clamp Limit Switch

Stage 140 Clamp

Stage 3 Press the Part Clamp

Press On Press Lower Limit Switch Stage 4 Unlock the Clamp Press Up

Clamp Off

Unclamp Limit Switch Stage 5 Move the Conveyor Conveyor On Conveyor Index Limit Switch Stage 6 Check Mode

RLLPLUS Programming Basics

Check 1-cycle Switch ON Jump to Wait for Start

Check 1-cycle Switch OFF Jump to Check for Part

Page 235

RLL PLUS Programming Basics

Step 7: Assign I/O Addresses

10–35

The final step before you enter the program is to assign the I/O addresses and the destinations for any Jump, Set, or Reset instructions. Initial Stage 0 Wait for Start

Press Start Switch

Stage 1 Check for Part

Stage 150 Monitor for Stop

Stop Switch

000

010

Part in place Reset All Operations RST S0 – S140

Jump to Wait for Start

001

No Part Jump to Move Conveyor

Stage 2 Lock the Clamp

Clamp Limit Switch

Stage 140 Clamp

002

Clamp SET S140

Stage 3 Press the Part Clamp OUT 020

Press Lower Limit Switch

004

Press On OUT 021

Stage 4 Unlock the Clamp Press Up

Unclamp Limit Switch

005 003

Clamp RST S140

Stage 5 Move the Conveyor

006

Conveyor Index Limit Switch

Conveyor OUT 022

Stage 6 Check Mode

Check 1-cycle Switch OFF

007 Closed Jump to Wait for Start

007 Open Jump to Check for Part

RLLPLUS Programming Basics

Check 1-cycle Switch ON

Page 236

10–36

RLL PLUS Programming Basics

Step 8: Enter the Program

The following diagram shows how the program would look when viewed as a ladder program. ISG

A

Wait forStart

S000 Start

S1 JMP

SG

Clamp

S140

000 S150 JMP SG

Clamp OUT

Check for a Part

S001

Part Present

020 S2 JMP SG

001 Part Present

Check for Stop

S150 S6 JMP

Stop

001 SG

S000 JMP

Clamp the part

S002

Part Locked

Clamp SET S140 S3 JMP

002 SG

Press the part

S003

Press Down 021 Lower Limit

S4 JMP

004 SG

Unclamp the part

S004 Top Limit

Clamp RST S140

005 Part Unlocked

S5 JMP

003 SG

Index the conveyor

S005

Move Conveyor 022 Conveyor Moved

S6 JMP

006 SG

One cycle or automatic?

S006

RLLPLUS Programming Basics

A

S0 – S140 RST

010

One Cycle

S0 JMP

007 One Cycle 007

S1 JMP