The text of a manual · part 29 of 42
DL305 User Manual: Chapter 10: RLLPLUS Programming Basics, pages 234 to 241
Pages 234 to 241 of 359, from DL305 User Manual
The original document is the PDF (4.9 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 AutomationDirect D3-08TD2, AutomationDirect D3-16TD2, Konnect-It D3-08TD2, Koyo D3-08TD2, Konnect-It D3-16TD2 and Koyo D3-16TD2
Page 234
RLL PLUS Programming Basics
10--31
Some actions may only take place if certain conditions are met. Examine the Step 4: 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
DL305 User Manual, Rev. D
RLLPLUS Programming Basics
Check 1-cycle Switch ON
Page 235
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
Jump to Wait for Start
No Part Jump to Move Conveyor
Lock the Clamp Clamp On
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
DL305 User Manual, Rev. D
Check 1-cycle Switch OFF Jump to Check for Part
Page 236
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
DL305 User Manual, Rev. D
Page 237
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
DL305 User Manual, Rev. D
Check 1-cycle Switch OFF Jump to Check for Part
Page 238
RLL PLUS Programming Basics
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.
Step 7: Assign I/O Addresses
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
DL305 User Manual, Rev. D
RLLPLUS Programming Basics
Check 1-cycle Switch ON
Page 239
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
Start
S1 JMP
000 SG
A
Wait forStart
S000
020 S2 JMP
001 S6 JMP
001
Clamp SET S140 S3 JMP
002
Press the part
S003
Press Down 021 Lower Limit
S4 JMP
004
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
RLLPLUS Programming Basics
A
One cycle or automatic?
S006 One Cycle
S0 JMP
007 One Cycle 007
DL305 User Manual, Rev. D
SG
Check for Stop
S150 Stop 010
Clamp the part
S002
Part Locked
SG
Clamp OUT
Check for a Part
S001
Part Present
SG
Clamp
S140
S150 JMP
Part Present
SG
SG
S1 JMP
S0 -- S140 RST S000 JMP
Page 240
RLL PLUS Programming Basics
10--37
This diagram shows how a portion of the program would look when viewed as a Stage Diagram in DirectSOFT. Wait forStart ISG S0
Check for a Part J
SG S1
Clamp the part J
SG S2
J
SG S6
Clamp S
Press the part J
Check for Stop J
SG S150
J
ISG S0
R
SG S140
SG S140
SG S3
RLLPLUS Programming Basics
DL305 User Manual, Rev. D