The text of a manual · part 7 of 11
DL305 Handheld Programmer, pages 61 to 70
Pages 61 to 70 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 61
Changing Programs
In This Chapter. . . ., Displaying a Program, Finding a Specific Instruction, Finding a Specific Address, Changing an Instruction, Inserting an Instruction, Inserting an END Statement, Deleting an Instruction
14
Page 62
4--2
Changing Programs
Displaying a Program Since the Handheld displays the mnemonic instructions, you can step through the individual program instructions. If the CPU is in the RUN mode, the status of the instruction is also displayed in the status display area. 000
001
À
002
Á
003
 004
006
Ä
050 Å OUT
à 005
Mnemonic Listing and Addresses
Changing Programs
ADDRESS 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010
INSTRUCTION STR 000 OR 001 STR 002 STR 003 ANDN 004 ORSTR AND 005 ORN 006 ANDSTR OUT 050 END
DESCRIPTION Starts branch 1 with 000 Joins 001 in parallel with 000 Starts branch 2 with 002 Starts branch 3 with 003 Joins 004 (NOT) with 003 Joins branches 2 and 3 Starts branch 4 with 005 Joins 006 (NOT) in parallel with 005 Joins branches 4 and 5 with 1--3 Stores the output and finishes the network Ends the program
Press SHF and NXT to display the beginning of the program SHF
0000 ....
NXT
Displays the first address
ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Page 63
4--3
Changing Programs
Use PRV or NXT to scroll through the program NXT
In Run Mode, On/Off status is displayed
0000 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
NXT
0001 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
PRV
0000 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Press CLR or NXT to toggle between the address and instruction display
0000 .... ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Changing Programs
CLR
Page 64
4--4
Changing Programs
Finding a Specific Instruction If you do not want to scroll through the program, you can use the Search feature to automatically search for an instruction. The following example shows the instructions, addresses, and corresponding Handheld displays for a small program. 000
002
050
005
OUT 001
003
004
Find Input 005
006
Mnemonic Listing and Addresses ADDRESS
INSTRUCTION
0000 0001, 0006, 0010
STR 000 OR 001, AND 005, END
DESCRIPTION Starts branch 1 with 000 Joins 001 in parallel with 000, Starts branch 4 with 005, Ends the program
Changing Programs
Search for the instruction reference SHF
5
0006 ....
SCH
Displays the address where the instruction is located
ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
You can also specify how the reference is used (All outputs require the additional key to indicate how the point is used.) OUT
SHF
5
0
SCH
Displays the address where the instruction is located
0009 .... ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Page 65
4--5
Changing Programs
Finding a Specific Address You can also search for a specific address. The following example shows the instructions, addresses, and corresponding Handheld displays for a small program. 000
002
050
005
OUT 001
003
004
006
Mnemonic Listing and Addresses ADDRESS 0000 0001, Find, 0006, - 0010
INSTRUCTION STR 000 OR 001, - AND 005, - END
DESCRIPTION Starts branch 1 with 000 Joins 001 in parallel with 000, - Starts branch 4 with 005, - Ends the program
SHF
6
NXT
0006 .... ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Changing Programs
Search for the address
Page 66
4--6
Changing Programs
Changing an Instruction Sometimes you need to change an instruction. For example, you may want to use a different input or output point than the one originally entered into the program. The following example shows the instructions, addresses, and corresponding Handheld displays for a small program. 000
002
050
005
OUT 001
003
Change to 060
004
006
Changing Programs
Mnemonic Listing and Addresses ADDRESS
INSTRUCTION
0000 0001, 0006, 0009 0010
STR 000 OR 001, AND 005, OUT 060 END
DESCRIPTION Starts branch 1 with 000 Joins 001 in parallel with 000, Starts branch 4 with 005, Stores the output and finishes the network Ends the program
Search for the address SHF
9
0009 ....
NXT
ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
Change the instruction OUT
SHF
6
0
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
(Display before ENT is pressed) ENT
060 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Page 67
4--7
Changing Programs
Inserting an Instruction Use the INSERT feature to add an instruction to the program. Insert adds an instruction before the instruction being displayed, so make sure you are at the correct program address. Once you’ve inserted the new instruction, the remaining addresses increment. The following example shows the instructions, addresses, and corresponding Handheld displays for a small program. 000
002
005
007
050 OUT
001
003
004
Insert 007
006
Mnemonic Listing and Addresses ADDRESS 0000, 0006 0007, 0010
INSTRUCTION STR 000, AND 005 Insert AND 007 ORN 006, END
DESCRIPTION Starts branch 1 with 000, Starts branch 4 with 005 Adds 007 in series with 005 Joins 006 (NOT) in parallel with 005, Ends the program
SHF
7
0007 ....
NXT
ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
Insert the new instruction AND
SHF
7
INS
NXT
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
(Display before NXT is pressed)
i 007 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Changing Programs
Search for the address
Page 68
4--8
Changing Programs
Inserting an END Statement There may be times when you need to insert an END statement (before an address) in the program. This is commonly done when you only want to check a portion of the program during machine startup or troubleshooting. You use the INSERT feature, but since the Handheld does not have an END key, special keystrokes are required. 000
002
005
007
050 OUT
001
003
004
Insert END before this rung
006 051
010
OUT
Mnemonic Listing and Addresses ADDRESS 0000, 0006
Changing Programs
0008, 0013
INSTRUCTION
DESCRIPTION
STR 000, AND 005 Insert END ORN 006, END
Starts branch 1 with 000, Starts branch 4 with 005 Ends the program Joins 006 (NOT) in parallel with 005, Ends the program
Search for the address SHF
8
0008 ....
NXT
ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
Insert the END statement CLR
SHF
INS
NXT
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
(Display before NXT is pressed)
i ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Page 69
4--9
Changing Programs
Deleting an Instruction Use the DELETE feature to remove an instruction from the program. Delete removes the instruction being displayed, so make sure you are at the correct program address. Once you’ve deleted the instruction, the remaining addresses decrement. The following example shows the instructions, addresses, and corresponding Handheld displays for a small program. 000
002
005
007
050 OUT
001
003
004
Delete 007
006
Mnemonic Listing and Addresses ADDRESS 0000, 0006 Delete 0007 0008, 0011
INSTRUCTION STR 000, AND 005 AND 007 ORN 006, END
DESCRIPTION Starts branch 1 with 000, Starts branch 4 with 005 Adds X7 in series with X5 Joins 006 (NOT) in parallel with 005, Ends the program
SHF
7
NXT
0007 .... ADDRESS/DATA
ON/OFF
RUN BATT PWR CPU
Delete the instruction DEL
PRV
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
(Display before PRV is pressed)
d 007 ADDRESS/DATA ON/OFF
RUN BATT PWR CPU
0 AND 1 OR 2 STR 3 NOT
4 OUT 5 TMR 6 CNT 7 SR
0 MCS 1 MCR 2 SET 3 RST
4 ADR 5 SHF 6 DATA 7 REG
Changing Programs
Search for the address
Page 70
Protecting and Storing Programs In This Chapter. . . ., Password Protection, Storing Programs on Cassette Tapes
15