The text of a manual · part 49 of 60
SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: SECTION 8 Troubleshooting, pages 440 to 448
Pages 440 to 448 of 520, from SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual
The original document is the PDF (2.1 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 CQM1-CPU21
Page 440
SECTION 8 Troubleshooting This section describes how to diagnose and correct the hardware and software errors that can occur during PC operation. 8-1 8-2 8-3 8-4 8-5
8-6 8-7 8-8
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming Console Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User-defined Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5-1 Non-fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5-2 Fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5-3 Other Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Error Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Host Link Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8-1 CPM1 Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8-2 CPM1A Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8-3 SRM1 Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8-4 CQM1 Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
424 424 425 426 427 427 429 430 430 432 434 434 434 434 434
423
Page 441
Section
Programming Console Operation Errors
8-1
8-2
Introduction PC errors can be divided broadly into the following four categories: 1, 2, 3...
1. Program Input Errors These errors occur when inputting a program or attempting an operation used to prepare the PC for operation. 2. Programming Errors These errors will occur when the program is checked using the Program Check operation. 3. User-defined Errors There are three instructions that the user can use to define his own errors or messages. The instructions will be executed when a particular condition (defined by the user) has occurred during operation. 4. Operating Errors These errors occur after program execution has been started. a) Non-fatal Operating Errors PC operation and program execution will continue after one or more of these errors have occurred. b) Fatal Operating Errors PC operation and program execution will stop and all outputs from the PC will be turned OFF when any of these errors have occurred. The PC’s indicators will indicate when a PC error has occurred and an error message or code will be displayed on the Programming Console or host computer if one is connected. The error code is also contained in SR 25300 to SR 25307. For the most recent errors, both the type of error and time of occurrence will be recorded in the PC’s error log area. Details are provided starting on page 430. There are flags and other information provided in the SR and AR areas that can be used in troubleshooting. Refer to Section 3 Memory Areas for lists of these.
Note In addition to the errors described above, communications errors can occur when the PC is part of a Host Link System. Refer to page 432 for details.
8-2
Programming Console Operation Errors The following error messages may appear when performing operations on the Programming Console. Correct the error as indicated and continue with the operation. The asterisks in the displays shown below will be replaced with numeric data, normally an address, in the actual display. Refer to the Ladder Support Software Operation Manual, SYSMAC Support Software Operation Manual: Cseries PCs, or Data Access Console Operation Manual for errors that may appear when operating the SSS or a Data Access Console. Message REPL ROM
Meaning and appropriate response An attempt was made to write to write-protected memory. In CQM1 PCs, set the write-protect switch (pin 1 of the CPU Unit’s DIP switch) to OFF. In CPM1/CPM1A/SRM1 PCs, set bits 00 to 03 of DM 6602 to “0.”
PROG OVER The instruction at the last address in memory is not NOP(00). Erase all unnecessary instructions at the end of the program. ADDR OVER An address was set that is larger than the highest memory address in Program Memory. Input a smaller address. SET DATA FALS 00 has been input, and “00” cannot be input. Reinput the ERR data. I/O NO. ERR A data area address has been designated that exceeds the limit of the data area, e.g., an address is too large. Confirm the requirements for the instruction and re-enter the address.
424
Page 442
Section
Programming Errors
8-3
8-3
Programming Errors These errors in program syntax will be detected when the program is checked using the Program Check operation. Three levels of program checking are available. The desired level must be designated to indicate the type of errors that are to be detected. The following table provides the error types, displays, and explanations of all syntax errors. Check level 0 checks for type A, B, and C errors; check level 1, for type A and B errors; and check level 2, for type A errors only.
Level A Errors
Message ????? CIRCUIT ERR
OPERAND ERR NO END INSTR LOCN ERR JME UNDEFD DUPL
Level B Errors
Meaning and appropriate response The program has been damaged, creating a non-existent function code. Re-enter the program. The number of logic blocks and logic block instructions does not agree, i.e., either LD or LD NOT has been used to start a logic block whose execution condition has not been used by another instruction, or a logic block instruction has been used that does not have the required number of logic blocks. Check your program. A constant entered for the instruction is not within defined values. Change the constant so that it lies within the proper range. There is no END(01) in the program. Write END(01) at the final address in the program. An instruction is in the wrong place in the program. Check instruction requirements and correct the program. A JME(04) instruction is missing for a JMP(05) instruction. Correct the jump number or insert the proper JME(04) instruction. The same jump number or subroutine number has been used twice. Correct the program so that the same number is only used once for each.
SBN UNDEFD
The SBS(91) instruction has been programmed for a subroutine number that does not exist. Correct the subroutine number or program the required subroutine.
STEP ERR
STEP(08) with a section number and STEP(08) without a section number have been used incorrectly. Check STEP(08) programming requirements and correct the program.
Message
Meaning and appropriate response
IL-ILC ERR
IL(02) and ILC(03) are not used in pairs. Correct the program so that each IL(02) has a unique ILC(03). Although this error message will appear if more than one IL(02) is used with the same ILC(03), the program will be executed as written. Make sure your program is written as desired before proceeding. JMP(04) and JME(05) are not used in pairs. Make sure your program is written as desired before proceeding. If the displayed address is that of SBN(92), two different subroutines have been defined with the same subroutine number. Change one of the subroutine numbers or delete one of the subroutines. If the displayed address is that of RET(93), RET(93) has not been used properly. Check requirements for RET(93) and correct the program.
JMP-JME ERR SBN-RET ERR
425
Page 443
Section
User-defined Errors Level C Errors
! Caution
8-4
8-4
Message
Meaning and appropriate response
COIL DUPL
The same bit is being controlled (i.e., turned ON and/or OFF) by more than one instruction (e.g., OUT, OUT NOT, DIFU(13), DIFD(14), KEEP(11), SFT(10)). Although this is allowed for certain instructions, check instruction requirements to confirm that the program is correct or rewrite the program so that each bit is controlled by only one instruction.
JMP UNDEFD
JME(05) has been used with no JMP(04) with the same jump number. Add a JMP(04) with the same number or delete the JME(05) that is not being used.
SBS UNDEFD
A subroutine exists that is not called by SBS(91). Program a subroutine call in the proper place, or delete the subroutine if it is not required.
Expansion instructions (those assigned to function codes 17, 18, 19, 47, 48, 60 to 69, 87, 88, and 89) are not subject to program checks. Program checks also do not cover DM 1024 to DM 6143 for PCs that do not support this part of the DM area (e.g., CQM1-CPU11-E and CQM1-CPU21-E). Data will not be written even if these areas are specified and data read from these areas will always be “0000.”
User-defined Errors There are four instructions that the user can use to define his own errors or messages. These instructions are used to send messages to the Programming Console connected to the PC, cause a non-fatal or a fatal error.
MESSAGE – MSG(46)
MSG(46) is used to display a message on the Programming Console. The message, which can be up to 16 characters long, is displayed when the instruction’s execution condition is ON. Refer to page 317 for details.
FAILURE ALARM – FAL(06)
FAL(06) is an instruction that causes a non-fatal error. Refer to page 205 for details. The following will occur when an FAL(06) instruction is executed:
1, 2, 3...
1. The ERR/ALM indicator on the CPU Unit will flash. PC operation will continue. 2. The instruction’s 2-digit BCD FAL number (01 to 99) will be written to SR 25300 to SR 25307. 3. The FAL number will be recorded in the PC’s error log area. In CQM1 PCs, the time of occurrence will also be recorded if a Memory Cassette with a clock (RTC) is used. The FAL numbers can be set arbitrarily to indicate particular conditions. The same number cannot be used as both an FAL number and an FALS number. To clear an FAL error, correct the cause of the error, execute FAL 00, and then clear the error using the Programming Console.
SEVERE FAILURE ALARM – FALS(07) 1, 2, 3...
FALS(07) is an instruction that causes a fatal error. Refer to page 205 for details. The following will occur when an FALS(07) instruction is executed: 1. Program execution will be stopped and outputs will be turned OFF. 2. The ERR/ALM indicator on the CPU Unit will be lit. 3. The instruction’s 2-digit BCD FALS number (01 to 99) will be written to SR 25300 to SR 25307. 4. The FALS number will be recorded in the PC’s error log area. In CQM1 PCs, the time of occurrence will also be recorded if a Memory Cassette with a clock (RTC) is used.
426
Page 444
Section
Operating Errors
8-5
The FALS numbers can be set arbitrarily to indicate particular conditions. The same number cannot be used as both an FAL number and an FALS number. To clear an FALS error, switch the PC to PROGRAM Mode, correct the cause of the error, and then clear the error using the Programming Console. FAILURE POINT DETECT – FPD(––)
8-5
In CQM1 PCs, non-fatal errors and error messages can also be generated using FPD(––). Refer to page 322 for details.
Operating Errors There are two kinds of operating errors, non-fatal and fatal. PC operation will continue after a non-fatal error occurs, but operation will be stopped if a fatal error occurs. ! Caution
Investigate all errors, whether fatal or not. Remove the cause of the error as soon as possible and restart the PC. Refer to the CQM1 Operation Manual or CPM1 Operation Manual for hardware information and Programming Console operations related to errors. Refer to the SSS Operation Manual for SSS operations related to errors.
8-5-1 Non-fatal Errors PC operation and program execution will continue after one or more of these errors have occurred. Although PC operation will continue, the cause of the error should be corrected and the error cleared as soon as possible. When one of these errors occurs, the POWER and RUN indicators will remain lit and the ERR/ALM indicator will flash. CQM1 Non-fatal Errors Message
FAL No.
Meaning and appropriate response
SYS FAIL FAL** (see note)
01 to 99
An FAL(06) instruction has been executed in the program. Check the FAL number to determine conditions that would cause execution, correct the cause, and clear the error.
9D
An error has occurred during data transmission between the CPU Unit and Memory Cassette. Check the status of flags AR 1412 to AR 1415, and correct as directed. AR 1412 ON: Switch to PROGRAM Mode, clear the error, and transfer again. AR 1413 ON: The transfer destination is write-protected. If the PC is the destination, turn off the power to the PC, be sure that pin 1 of the CPU Unit’s DIP switch is OFF, clear the error, and transfer again. If an EEPROM Memory Cassette is the destination, check whether the power supply is on, clear the error, and transfer again. If an EPROM Memory Cassette is the destination, change to a writeable Memory Cassette. AR 1414 ON: The destination has insufficient capacity. Check the source’s program size in AR 15 and consider using a different CPU Unit or Memory Cassette.
9C
AR 1415 ON: There is no program in the Memory Cassette or the program contains errors. Check the Memory Cassette. An error has occurred in the pulse I/O function or in the absolute-type encoder interface function. Check the contents of AR 0408 to AR 0415 (two digits BCD), and correct as directed. (This error code applies only to CQM1-CPU43-EV1 and CQM1-CPU44-EV1 CPU Units.) 01, 02: An error has occurred in the hardware. Turn the power off, and then power up again. If the error persists, replace the CPU Unit. 03: The PC Setup (DM 6611, DM 6612, DM 6643, DM 6644) settings are incorrect. Correct the settings. 04: CQM1 operation was interrupted during pulse output. Check to see whether the Unit receiving the pulse output was affected.
427
Page 445
Section
Operating Errors Message SYS FAIL FAL** (see note)
FAL No. 9B
8-5
Meaning and appropriate response An error has been detected in the PC Setup. Check flags AR 2400 to AR 2402, and correct as directed. AR 2400 ON: An incorrect setting was detected in the PC Setup (DM 6600 to DM 6614) when power was turned on. Correct the settings in PROGRAM Mode and turn on the power again. AR 2401 ON: An incorrect setting was detected in the PC Setup (DM 6615 to DM 6644) when switching to RUN Mode. Correct the settings in PROGRAM Mode and switch to RUN Mode again. AR 2402 ON: An incorrect setting was detected in the PC Setup (DM 6645 to DM 6655) during operation. Correct the settings and clear the error.
SCAN TIME OVER
BATT LOW
F8
Watchdog timer has exceeded 100 ms. (SR 25309 will be ON.)
F7
This indicates that the program cycle time is longer than recommended. Reduce cycle time if possible. Backup battery is missing or its voltage has dropped. (SR 25308 will be ON.) Check the battery and replace if necessary. Check the PC Setup (DM 6655) to see whether a low battery will be detected.
Note ** is 01 to 99, 9D, 9C, or 9B. Communication Errors If an error occurs in communications through the peripheral port or RS-232C port the corresponding indicator (COM1 or COM2) will stop flashing. Check the connecting cables as well as the programs in the PC and host computer. Reset the communications ports with the Port Reset Bits, SR 25208 and SR 25209. Output Inhibit When the OUT INH indicator is lit, the Output Inhibit Bit (SR 25215) is ON and all outputs from the CPU Unit will be turned off. If it is not necessary to have all outputs off, turn OFF SR 25215. CPM1/CPM1A/SRM1 Non-fatal Errors Message SYS FAIL FAL** (see note)
FAL No.
Meaning and appropriate response
01 to 99
An FAL(06) instruction has been executed in the program. Check the FAL number to determine conditions that would cause execution, correct the cause, and clear the error.
9B
An error has been detected in the PC Setup. Check flags AR 1300 to AR 1302, and correct as directed. AR 1300 ON: An incorrect setting was detected in the PC Setup (DM 6600 to DM 6614) when power was turned on. Correct the settings in PROGRAM Mode and turn on the power again. AR 1301 ON: An incorrect setting was detected in the PC Setup (DM 6615 to DM 6644) when switching to RUN Mode. Correct the settings in PROGRAM Mode and switch to RUN Mode again. AR 1302 ON: An incorrect setting was detected in the PC Setup (DM 6645 to DM 6655) during operation. Correct the settings and clear the error.
SCAN TIME OVER
F8
Watchdog timer has exceeded 100 ms. (SR 25309 will be ON.) This indicates that the program cycle time is longer than recommended. Reduce cycle time if possible. (The CPM1/CPM1A/SRM1 can be set so that this error won’t be detected.)
Communication Errors (no message)
None
If an error occurs in communications through the peripheral port or RS-232C port, the COMM indicator will be off. The error flag in AR0812 will be ON. Check the connecting cables and restart.
Note ** is 01 to 99 or 9B.
428
Page 446
Section
Operating Errors
8-5
8-5-2 Fatal Errors PC operation and program execution will stop and all outputs from the PC will be turned OFF when any of these errors have occurred. All CPU Unit indicators will be OFF for the power interruption error. For all other fatal operating errors, the POWER and ERR/ALM indicators will be lit. The RUN indicator will be OFF. CQM1 Fatal Errors Message Power interruption (no message) MEMORY ERR
FALS No. None F1
Meaning and appropriate response Power has been interrupted for at least 10 ms. Check power supply voltage and power lines. Try to power-up again. AR 1611 ON: A checksum error has occurred in the PC Setup (DM 6600 to DM 6655). Initialize all of the PC Setup and reinput. AR 1612 ON: A checksum error has occurred in the program, indicating an incorrect instruction. Check the program and correct any errors detected. AR 1613 ON: A checksum error has occurred in an expansion instruction’s data. Initialize all of the expansion instruction settings and reinput. AR 1614 ON: Memory Cassette was installed or removed with the power on. Turn the power off, install the Memory Cassette, and turn the power on again. AR 1615 ON: The Memory Cassette contents could not be read at start-up. Check flags AR 1412 to AR 1415 to determine the problem, correct it, and turn on the power again.
NO END INST
F0
END(01) is not written anywhere in program. Write END(01) at the final address of the program. An error has occurred during data transfer between the CPU Unit and an I/O Unit. Determine the location of the problem using flags AR 2408 to AR 2415, turn the power off, check for loose I/O Units or end covers, and turn on the power again.
I/O BUS ERR
C0
I/O UNIT OVER
E1
The number of I/O words on the installed I/O Units exceeds the maximum. Turn off the power, rearrange the system to reduce the number of I/O words, and turn on the power again.
SYS FAIL FALS** (see note)
01 to 99
An FALS(07) instruction has been executed in the program. Check the FALS number to determine the conditions that would cause execution, correct the cause, and clear the error.
9F
The cycle time has exceeded the FALS 9F Cycle Time Monitoring Time (DM 6618). Check the cycle time and adjust the Cycle Time Monitoring Time if necessary.
Note ** is 01 to 99 or 9F. CPM1/CPM1A/SRM1 Fatal Errors Message Power interruption (no message) MEMORY ERR
NO END INST
FALS No. None F1
F0
Meaning and appropriate response Power has been interrupted for at least 10 ms. Check power supply voltage and power lines. Try to power-up again. AR 1308 ON: An unspecified bit area exists in the user program. Check the program and correct errors. AR 1309 ON: An error has occurred in the flash memory. Since the number of writings to the flash memory has exceeded the specified level, replace the CPU Unit. AR 1310 ON: A checksum error has occurred in read-only DM (DM 6144 to DM 6599). Check and correct the settings in the read-only DM area. AR 1311 ON: A checksum error has occurred in the PC Setup. Initialize all of the PC Setup and reinput. AR 1312 ON: A checksum error has occurred in the program. Check the program and correct any errors detected. AR 1314 ON: Power interruption hold area was not held. Clear the error and reset the settings of the power interruption hold area. AR 1315 ON: An error has occurred in CompoBus/S communications. If the error cannot be corrected, replace the CPU Unit (SRM! only). END(01) is not written in the program. Write END(01) at the end of the program.
429
Page 447
Section
Error Log Message I/O BUS ERR (see note 1) I/O UNIT OVER (see note 1) SYS FAIL FALS** (see note 2)
FALS No. C0 E1
8-6
Meaning and appropriate response An error has occurred during data transfer between the CPU Unit and I/O Unit. Check the I/O Unit’s connecting cable. Too many I/O Units have been connected. Check the I/O Unit configuration.
01 to 99 A FALS(07) instruction has been executed in the program. Check the FALS number to determine the conditions that caused execution, correct the cause, and clear the error. 9F The cycle time has exceeded the FALS 9F Cycle Time Monitoring Time (DM 6618). Check the cycle time and adjust the Cycle Time Monitoring Time if necessary.
Note
1. CPM1/CPM1A only. 2. ** is 01 to 99 or 9F.
8-5-3 Other Errors The PWR indicator will be ON for the following errors. Ignore the status of other indicators unless a specific status is given in the following table. CPM1/CPM1A/SRM1 Fatal Errors Error status
FALS No. None
CompoBus/S communications error Peripheral/RS-232C port communications error
8-6
None
Meaning and appropriate response The ERC indicator will light to indicate an error in CompoBus/S communications. Check the slaves and the transmission path and restart the system. The COMM indicator will light and AR 0812 will turn ON to indicate an error between the peripheral or RS-232C port and the Peripheral Device.
Error Log The error log function registers the error code of any fatal or non-fatal error that occurs in the PC. The date and time at which the error occurred are registered along with the error code. Refer to page 427 for error codes.
CQM1 Error Log Area
In CQM1 PCs, the error log is stored in DM 6569 through DM 6599. If a Memory Cassette without a clock is mounted, the date and time will be all zeros.
DM6569 DM6570 DM6571 DM6572
Error log pointer
Shows the number of error information items (0 to 7) stored in the error log. “0” means that there are no items stored.
Error log record 0 (3 words used.)
Each error log record is configured as follows: 15 8 7 Leading word Leading word + 1 Leading word + 2 to
DM6597 DM6598 DM6599
Error classification Min Day
Error code Sec Hour
0 Each stored in 2 digits BCD.
Error classification: 00: Nonfatal 80: Fatal Error log record 9 (3 words used.)
Error records will be stored even if pin 1 on the CQM1 DIP switch is turned ON to protect DM 6144 to DM 6655.
430
Page 448
Section
Error Log
8-6
CPM1/CPM1A Error Log Area In CPM1/CPM1A PCs, the error log is stored in DM 1000 through DM 1021.
DM1000 DM1001 DM1002 DM1003
Error log pointer Error log record 0
Bit 15 Leading word Leading word + 1 Leading word + 2 to
DM1019 DM1020 DM1021
The location for storing the next error record is shown. (0 to 6) Each error log record is configured as follows: 8 7 Error classification 00 00
0 Error code 00 00
Error classification: 00: Nonfatal 80: Fatal Error log record 9
Error Log Storage Methods
The error log storage method is set in the PC Setup (DM 6655). Set any of the following methods.
1, 2, 3...
1. You can store the most recent 10 error log records and discard older records. This is achieved by shifting the records as shown below so that the oldest record (record 0) is lost whenever a new record is generated. Lost Error log record 1 Error log record 2 All records shifted Error log record 6 Error log record 7
New record added
2. You can store only the first 10 error log records, and ignore any subsequent errors beyond those 10. 3. You can disable the log so that no records are stored. The default setting is the first method. Refer to Error Log Settings on page 21 for details on the PC Setup for the error log. Clearing the Error Log
To clear the entire error log, turn ON SR 25214 from a peripheral device. (After the error log has been cleared, SR 25214 will turn OFF again automatically.)
SRM1 Error Log Area
In SRM1 PCs, the error log is stored in DM 2000 through DM 2021.
DM2000 DM2001 DM2002 DM2003
Error log pointer
Each error log record is configured as follows: Bit 15 Leading word Leading word + 1 Leading word + 2 to
DM2019 DM2020 DM2021
The location for storing the next error record is shown. (0 to 7)
Error log record 0
Error log record 6
8 7 Error classification 00 00
0 Error code 00 00
Error classification: 00: Nonfatal 80: Fatal
431