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

The text of a manual · part 18 of 27

SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual: SECTION 7, pages 142 to 151

Pages 142 to 151 of 211, from SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual

The original document is the PDF (2.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 Omron C28P

Page 142 read from a scan by OCR; it may hold reading errors

Inputting, Modifying, and Checking the Program

Example: Instruction

Searches

CLR

Section 7-5

135

Page 143

Inputting, Modifying, and Checking the Program

Section 7–5

Bit Search

7–5–6

Inserting and Deleting Instructions In PROGRAM mode, any instruction that is currently displayed can be deleted or another instruction can be inserted before it. These are not possible in RUN or MONITOR modes. To insert an instruction, display the instruction before which you want the new instruction to be placed, input the instruction word in the same way as when inputting a program initially, and then press INS and the down key. If other words are required for the instruction, input these in the same way as when inputting a program initially. To delete an instruction, display the instruction word of the instruction to be deleted and then press DEL and the up key. All the words for the designated instruction will be deleted. Note Be careful not to inadvertently delete instructions; there is no way to recover them without reinputting them completely.

Key Sequences

When an instruction is inserted or deleted, all addresses in Program Memory following the operation are adjusted automatically so that there are no blank addresses and no unaddressed instructions. Example

136

The following mnemonic code shows the changes that are achieved in a program through the key sequences and displays shown below.

Page 144

Section 7–5

Inputting, Modifying, and Checking the Program Before Insertion Address

Instruction

0000

LD

0100

0001

AND

0101

0002

LD

0201

0003

AND NOT

0102

0004

OR LD

0005

AND

0103

0006

AND NOT

0104

0007

OUT

0201

0008

END(01)

After Insertion Address

Instruction

0000

LD

0001

Data

–

–

After Deletion Data

Address

Instruction

Data

0100

0000

LD

0100

AND

0101

0001

AND NOT

0101

0002

LD

0201

0002

LD

0201

0003

AND NOT

0102

0003

AND NOT

0102

0004

OR LD

–

0004

OR LD

0005

AND

0103

0005

AND

0103

0006

AND

0105

0006

AND

0105

0007

AND NOT

0104

0007

AND NOT

0104

0008

OUT

0201

0008

OUT

0201

0009

END(01)

–

–

The following key inputs and displays show the procedure for achieving the program changes shown above.

137

Page 145

Section 7–5

Inputting, Modifying, and Checking the Program

Find the address prior to the insertion point

Insert the instruction

138

Page 146

Section 7–5

Inputting, Modifying, and Checking the Program

Find the instruction that requires deletion.

Confirm that this is the instruction to be deleted.

139

Page 147

Section 7–8

Program Backup and Restore Operations

7–6

Program Backup and Restore Operations Program Memory (UM) can be backed-up on a standard commercially available cassette tape recorder. Any kind of dependable magnetic tape of adequate length will suffice. To save a 16K-word program, the tape must be 30 minutes long. Always allow about 5 seconds of blank tape leader before the taped data begins. Store only one program on a single side of a tape; there is no way to identify separate programs stored on the same side of the tape. If a program is longer than will fit on one side, it can be split onto two sides. Be sure to label the contents of all cassette tapes clearly. Use patch cords to connect the cassette recorder earphone (or LINE-OUT) jack to the Programming Console EAR jack and the cassette recorder microphone (or LINE-IN) jack to the Programming Console MIC jack. Set the cassette recorder volume and tone controls to maximum levels. The PC must be in PROGRAM mode for all cassette tape operations. While the operation is in progress, the cursor will blink and the block count will be incremented on the display. Cassette tape operations may be halted at any time by pressing the CLR key.

Error Messages

7–6–1

The following error messages may appear during cassette tape operations.

Message

Meaning and appropriate response

0000 ERR ******* FILE NO.********

File number on cassette and designated file number are not the same. Repeat the operation using the correct file number.

**** MT VER ERR

Cassette tape contents differs from that in the PC. Check content of tape and/or the PC.

**** MT ERR

Cassette tape is faulty. Replace it with another.

Saving Program Memory Data This operation is used to copy the content of Program Memory to a cassette tape. The procedure is as follows:

1, 2, 3... 1. 2. 3. 4.

Press EXT. Input a file number for the data that is to be saved. Start cassette tape recording. Within 5 seconds, press the SHIFT and REC/RESET keys.

Program saving continues until END(01) or the final address is reached. Cancel by pressing the CLR key.

Key Sequence

140

Page 148

Section 7–8

Program Backup and Restore Operations Example

Within 5 seconds... Blinking

(Recording in progress) Blinking

When it comes to END Blinking

Stop recording with CLR

Saved up to the final address)

7–6–2

Restoring or Comparing Program Memory Data This operation is used to restore Program Memory data from a cassette tape or to compare Program Memory data with the contents on a cassette tape. The procedure is as follows:

1, 2, 3... 1. 2. 3. 4.

Press EXT. Specify the number of the file to be restored or compared. Start playing the cassette tape. Within 5 seconds, press SHIFT and PLAY/SET to restore data or VER to compare data.

Program restoration or comparison continues until the final address or END(01) is reached or until the tape is finished. Cancel by pressing the CLR key. To restore or compare program data recorded on two sides of a tape or on two or more tapes, begin restoring or comparing from the lowest address.

141

Page 149 read from a scan by OCR; it may hold reading errors

Program Backup and Restore Operations Section 7-8

Key Sequence

VER

No more than 5 seconds.

Example

Start the tape recorder playback. Continue within 5 seconds.

Blinking Blinking

SET

(Restoring in progress.) (Comparison in progress.)

(When it comes to END.)

(Restored up to END.) Stop comparison with CLR.

CLR

Stop restoring with CLR. (Compared to end of tape.)

CLR

142

Page 150

Debugging

7–7

Section 7–6

Debugging After inputting a program and correcting it for syntax errors, it must be executed and all execution errors must be eliminated. Execution errors include an excessively long scan time, errors in settings for various Units in the PC, and inappropriate control actions, i.e., the program not doing what it is designed to do. When necessary, the program can first be executed isolated from the actual control system and wired to artificial inputs and outputs to check for certain types of errors before actual trial operation with the controlled system.

Displaying and Clearing Error Messages

When an error occurs during program execution, it can be displayed for identification by pressing CLR, FUN, and then MONTR. If an error message is displayed, the MONTR key can be press to access any other error messages that are stored by the system in memory. If MONTR is pressed in PROGRAM mode, the error message will be cleared from memory; be sure to write down the error message when required before pressing MONTR. OK will be displayed when the last message has been cleared. If a beeper sounds and the error cannot be cleared by pressing MONTR, the cause of the error still exists and must be eliminated before the error message can be cleared. If this happens, take the appropriate corrective action to eliminate the error. Refer to Section 8 Troubleshooting for all details on all error messages. The sequence in which error messages are displayed depends on the priority levels of the errors. The messages for fatal errors (i.e., those that stop PC operation) are displayed before non-fatal ones. Although error messages can be displayed in any mode, they can be cleared only in PROGRAM mode. There is no way to restart the PC following a fatal error without first clearing the error message in PROGRAM mode.

Key Sequence

Example

The following displays show some of the messages that may appear. Refer to Section 8 Troubleshooting for an inclusive list of error messages, meanings, and appropriate responses.

143

Page 151

Section 7–7

Monitoring Operation and Modifying Data

Fatal errors

Non-fatal errors

All errors have been cleared

7–8

Monitoring Operation and Modifying Data The simplest form of operation monitoring is to display the address whose operand bit status is to be monitored using the Program Read or one of the search operations. As long as the operation is performed in RUN or MONITOR mode, the status of any bit displayed will be indicated. This section provides other procedures for monitoring data as well as procedures for modifying data that already exists in a data area. Data that can be modified includes the PV (present value) and SV (set value) for any timer or counter. All monitor operations in this section can be performed in RUN, MONITOR, or PROGRAM mode and can be cancelled by pressing the CLR key. All data modification operations except for timer/counter SV changes are performed after first performing one of the monitor operations. Data modification is possible in either MONITOR or PROGRAM mode, but cannot be performed in RUN mode.

144