The text of a manual · part 6 of 11
DL305 Handheld Programmer, pages 51 to 60
Pages 51 to 60 of 107
The original document is the PDF (2.6 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 Koyo D3-HP
Page 51
3--4
Entering RLL Plus Programs
Entering Programs
Entering an Initial Stage The Initial Stage identifies a starting point in the program. When the CPU enters Run mode, this is where the program execution will begin. The following keystrokes are used to enter an initial stage. (Remember, the RLL PLUS Handheld programmer keypad layout and display is different from the RLL Handheld programmer.)
Only executes logic in stages that are active ISG S0000
Wait for start Start
S1 JMP
000 SG
Move pipe down conveyor
S0001
S10 JMP Conveyor OUT 020
Pipe Limit
S2 JMP
001 SG
Lock the clamp
S0002
Clamp SET 021 S3 JMP
Pipe Locked
Entering RLL Programs
002
Enter the initial stage ISG
SHF
0
ENT
Data display before ENT is pressed
000 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the contact STR
SHF
0
ENT
000 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Page 52
3--5
Entering RLL Plus Programs
Entering Jump Instructions Only executes logic in stages that are active ISG S0000
Wait for start Start
S1 JMP
000 SG
Move pipe down conveyor
S0001
S10 JMP Conveyor OUT 020
Pipe Limit
S2 JMP
001 SG
Lock the clamp
S0002
Clamp SET 021 S3 JMP
Pipe Locked
Entering Programs
The Jump (JMP) instruction provides a way to transition to multiple points in the program. If you look at the example program you’ll notice the program branches to two locations after the operator presses the start switch. The Jump instruction provides this transition. Since the program is jumping to two locations, you’ll use two Jump instructions.
002
Monitor for Stop
S0010 Stop
S0 -- S5 RST
010 S0 JMP
Enter the first jump JMP
SHF
1
Data display before ENT is pressed
001
ENT
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the second jump JMP
SHF
1
0
ENT
010 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Entering RLL Programs
SG
Page 53
3--6
Entering RLL Plus Programs
Entering RLL Programs
Entering Programs
Entering Stage Instructions The Stage (SG) instruction identifies the starting point of a program segment. Unlike an initial stage, a regular stage does not automatically activate when the CPU enters Run mode. There are three ways to activate a stage. S Jump Transition, if you jump from a stage to another stage, then the destination stage is automatically activated. (Remember the jump example.) S Power Flow Transition, power can flow through the stages which will activate the next stage. S SET, just as you can use a SET instruction to turn on an output, you can use a SET to turn on a stage. With this method, the stage will stay on until it is reset (RST) or, until the logic within that stage causes a jump or power flow transition.
Only executes logic in stages that are active ISG S0000
Wait for start Start
S1 JMP
000 SG
Move pipe down conveyor
S0001
S10 JMP Conveyor OUT 020
Pipe Limit 001
SG
Lock the clamp
S0002
Pipe Locked
Clamp SET 021 S3 JMP
002 SG
Monitor for Stop
S0010 Stop
S0 -- S5 RST
010 S0 JMP
The keystrokes on the following page show how to enter stages 1 and 2. Notice we have changed Stage 2 slightly. This is an example of how a power flow transition looks. A JMP instruction is not required in this example to move from Stage 1 to Stage 2. How do you know when to use a JMP instruction? Simple, if you’re moving from one stage to a single stage, you may use a power flow transition. If you’re moving from one stage to multiple stages, you must use the JMP instruction.
Page 54
3--7
Entering RLL Plus Programs
Enter Stage 1 SG
SHF
Data display before ENT is pressed 1
001
ENT
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the output for the conveyor OUT
SHF
2
0
ENT
020 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the Pipe Limit contact STR
SHF
1
ENT
001 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter Stage 2 SG
SHF
2
ENT
002 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Entering RLL Programs
4 ISG 5 JMP 6 SET 7 RST
Entering Programs
0 STR 1 AND 2 OR 3 NOT
Page 55
3--8
Entering RLL Plus Programs
Entering RLL Programs
Entering Programs
Entering Timers Timers work differently in RLL PLUS programs because they do not require the entry of a preset value. Once the timer input contact has started the timer, the timer continues until the input contact SG Raise the saw S0004 is turned off. TMR T600 You may recall RLL timers have a timer contact associated with them. When the Saw Off T600 50 timer reaches the preset, it turns on the RST 022 contact, which can then be used as an Top input contact for other parts of the Limit Clamp RST program. 021 004 S5 As well as not having a preset value, Relational Contact JMP RLL PLUS timers also do not have a timer contact. Instead of using the timer contact, relational contacts are used to examine the timer value. The following example shows how a time delay was added when the saw was being raised. We wanted to keep the saw motor running for 5 seconds so the saw could clear the pipe before being turned off. (Note, the keystrokes only show how to enter the timer and the relational contact, not the whole stage.)
Page 56
3--9
Entering RLL Plus Programs
Enter the Timer TMR
SHF
6
Data display before ENT is pressed 0
0
600 ADDRESS/DATA
ENT
ON/OFF
RUN BATT PWR CPU
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the comparative timer contact STR
TMR
0
ENT
SHF
6
0
600 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the compare value SHF
5
0
ENT
050 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Entering RLL Programs
4 ISG 5 JMP 6 SET 7 RST
Entering Programs
0 STR 1 AND 2 OR 3 NOT
Page 57
3--10
Entering RLL Plus Programs
Entering RLL Programs
Entering Programs
Entering Counters Counters also work differently in RLL PLUS programs because they do not require either a reset input or a preset value. Once the stage is active, the counter input contact controls the value of the counter. Each time the counter input contact has an off to on transition, the counter will increment one count. When the stage becomes inactive, the counter is disabled and reset to 0. (Remember, the CPU does not even scan the logic contained in an inactive stage.) You may recall RLL counters have a counter contact associated with them. When the counter reaches the preset, it turns on the contact, which can then be used as an input contact for other parts of the program. As well as not having the reset input and preset value, the RLL PLUS counters also do not have a counter contact. Instead of using the counter contact, relational contacts are used to examine the counter value.
SG
Raise the saw
S0004
TMR T0 K0050 Saw Off RST 022
T0 50
Top Limit
Clamp RST 021
004
S5 JMP SG
One cycle or automatic?
S0005
One Cycle
S0 JMP
005 One Cycle
S1 JMP
005 SG
Monitor for Stop
S0010 Stop
S0 -- S5 RST
010 S0 JMP SG
Automatic shut off
S0011
Count Switch 006 C601 R400
CTR 601 R400 S0 -- S10 RST S0 JMP
Let’s say we wanted to use an operator interface to tell the machine how many pipes to cut. (We’ll assume the number is loaded into a register, R400.) Once the correct number of pipes have been cut, the saw should automatically stop. The following example shows how you would add an automatic shutoff stage to the cutoff saw example by using a counter and a relational contact. (Note, the keystrokes only show how to enter the counter and the relational contact, not the whole program.)
Page 58
3--11
Entering RLL Plus Programs
Enter the Counter CNT
SHF
6
Data display before ENT is pressed 0
1
601 ADDRESS/DATA
ENT
ON/OFF
RUN BATT PWR CPU
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the relational contact STR
CNT
1
ENT
SHF
6
0
601 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the relational contact comparison register R
4
0
0
ENT
(Notice you did not have to press the SHF key before entering the numbers.)
r400 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Entering RLL Programs
4 ISG 5 JMP 6 SET 7 RST
Entering Programs
0 STR 1 AND 2 OR 3 NOT
Page 59
3--12
Entering RLL Plus Programs
Entering Shift Registers
Entering RLL Programs
Entering Programs
Shift Registers operate the same in RLL PLUS programs as they do in RLL programs. However, the keystrokes required to enter a Shift Register are different because the SR key is not on the RLL PLUS Handheld Programmer. Also, you do not have a separate range of bits available for use as shift register bits. Instead you have to use the control relays. The following page shows the keystrokes used with this type of Handheld. 001
Data Input
002
Clock Input
SR 200
003
Reset Input
217
Page 60
3--13
Entering RLL Plus Programs
Enter the Data input STR
SHF
1
Data Display before ENT is pressed
001
ENT
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
0 STR 1 AND 2 OR 3 NOT
4 ISG 5 JMP 6 SET 7 RST
0 SG 1 OUT 2 TMR 3 CNT
4 ADR 5 SHF 6 DATA 7 REG
Enter the Clock input STR
SHF
2
002
ENT
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the Reset input STR
SHF
3
003
ENT
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the Shift Register and starting location SET
RST
0
ENT
SHF
2
200
0
ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Enter the end of the Shift Register SHF
2
1
7
ENT
217 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
Entering RLL Programs
4 ISG 5 JMP 6 SET 7 RST
Entering Programs
0 STR 1 AND 2 OR 3 NOT