The text of a manual · part 8 of 68
Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 3 Memory Areas, pages 56 to 64
Pages 56 to 64 of 613, from Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual
The original document is the PDF (3.8 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.
Filed in the catalog under the Omron C200H-SP001 and Omron C200HW-PA204
Page 56
Section
SR (Special Relay) Area
3-4
3-4-2 Remote I/O Systems SR 25312 turns ON to indicate an error has occurred in Remote I/O Systems. The ALM/ERR indicator will flash, but PC operation will continue. SR 251 contains information on the source and type of error and AR 0014 and AR 0015 contain information on the SYSMAC LINK status. The function of each bit is described below. Refer to Optical and Wired Remote I/O System Manuals for details. SR 25100 – Error Check Bit
If there are errors in more than one Remote I/O Unit, word SR 251 will contain error information for only the first one. Data for the remaining Units will be stored in memory and can be accessed by turning the Error Check bit ON and OFF. Be sure to record data for the first error, which will be cleared when data for the next error is displayed.
SR 25101 and SR 25102
Not used.
SR 25103
Remote I/O Error Flag: Bit 03 turns ON when an error has occurred in a Remote I/O Unit.
SR 25104 through SR 25115
The content of bits 04 to 06 is a 3-digit binary number (04: 20, 05: 21, 06: 22) and the content of bits 08 to 15 is a 2-digit hexadecimal number (08 to 11: 160, 12 to 15: 161). If the content of bits 12 through 15 is B, an error has occurred in a Remote I/O Master or Slave Unit, and the content of bits 08 through 11 will indicate the unit number, either 0 or 1, of the Master involved. In this case, bits 04 to 06 contain the unit number of the Slave Rack involved. If the content of bits 12 through 15 is a number from 0 to 31, an error has occurred in an Optical I/O Unit or I/O Terminal. The number is the unit number of the Optical I/O Unit or I/O Terminal involved, and bit 04 will be ON if the Unit is assigned leftmost word bits (08 through 15), and OFF if it is assigned rightmost word bits (00 through 07).
3-4-3 Link System Flags and Control Bits Use of the following SR bits depends on the configuration of any Link Systems to which your PC belongs. These flags and control bits are used when Link Units, such as PC Link Units, Remote I/O Units, or Host Link Units, are mounted to the PC Racks or to the CPU Unit. For additional information, consult the System Manual for the particular Units involved. The following bits can be employed as work bits when the PC does not belong to the Link System associated with them.
Host Link Systems Both Error flags and Restart bits are provided for Host Link Systems. Error flags turn ON to indicate errors in Host Link Units. Restart bits are turned ON and then OFF to restart a Host Link Unit. SR bits used with Host Link Systems are summarized in the following table. Rack-mounting Host Link Unit Restart bits are not effective for the Multilevel Rack-mounting Host Link Units. Refer to the Host Link System Manual for details. Bit
Flag
25206
Rack-mounting Host Link Unit Level 1 Error Flag
25207
Rack-mounting Host Link Unit Level 1 Restart Bit
25213
Rack-mounting Host Link Unit Level 0 Restart Bit
25311
Rack-mounting Host Link Unit Level 0 Error Flag
43
Page 57
Section
SR (Special Relay) Area
3-4
PC Link Systems PC Link Unit Error and Run Flags
Single-level PC Link Systems
When the PC belongs to a PC Link System, words 247 through 250 are used to monitor the operating status of all PC Link Units connected to the PC Link System. This includes a maximum of 32 PC Link Units. If the PC is in a Multilevel PC Link System, half of the PC Link Units will be in a PC Link Subsystem in operating level 0; the other half, in a Subsystem in operating level 1. The actual bit assignments depend on whether the PC is in a Single-level PC Link System or a Multilevel PC Link System. Refer to the PC Link System Manual for details. Error and Run Flag bit assignments are described below. Bits 00 through 07 of each word are the Run flags, which are ON when the PC Link Unit is in RUN mode. Bits 08 through 15 are the Error flags, which are ON when an error has occurred in the PC Link Unit. The following table shows bit assignments for Single-level and Multi-level PC Link Systems. Flag type Run flags
Error flags
44
Bit no.
SR 247
SR 248
SR 249
SR 250
00
Unit #24
Unit #16
Unit #8
Unit #0
01
Unit #25
Unit #17
Unit #9
Unit #1
02
Unit #26
Unit #18
Unit #10
Unit #2
03
Unit #27
Unit #19
Unit #11
Unit #3
04
Unit #28
Unit #20
Unit #12
Unit #4
05
Unit #29
Unit #21
Unit #13
Unit #5
06
Unit #30
Unit #22
Unit #14
Unit #6
07
Unit #31
Unit #23
Unit #15
Unit #7
08
Unit #24
Unit #16
Unit #8
Unit #0
09
Unit #25
Unit #17
Unit #9
Unit #1
10
Unit #26
Unit #18
Unit #10
Unit #2
11
Unit #27
Unit #19
Unit #11
Unit #3
12
Unit #28
Unit #20
Unit #12
Unit #4
13
Unit #29
Unit #21
Unit #13
Unit #5
14
Unit #30
Unit #22
Unit #14
Unit #6
15
Unit #31
Unit #23
Unit #15
Unit #7
Page 58
Section
SR (Special Relay) Area Multilevel PC Link Systems
Flag type Run flags
Bit no. 00
02 03 04 05 06 07 08 09 10 11 12 13 14 15
Application Example
SR 248
Unit #8, level 1 Unit #9, level 1 Unit #10, level 1 Unit #11, level 1 Unit #12, level 1 Unit #13, level 1 Unit #14, level 1 Unit #15, level 1 Unit #8, level 1 Unit #9, level 1 Unit #10, level 1 Unit #11, level 1 Unit #12, level 1 Unit #13, level 1 Unit #14, level 1 Unit #15, level 1
01
Error flags
SR 247
Unit #0, level 1 Unit #1, level 1 Unit #2, level 1 Unit #3, level 1 Unit #4, level 1 Unit #5, level 1 Unit #6, level 1 Unit #7, level 1 Unit #0, level 1 Unit #1, level 1 Unit #2, level 1 Unit #3, level 1 Unit #4, level 1 Unit #5, level 1 Unit #6, level 1 Unit #7, level 1
SR 249 Unit #8, level 0 Unit #9, level 0 Unit #10, level 0 Unit #11, level 0 Unit #12, level 0 Unit #13, level 0 Unit #14, level 0 Unit #15, level 0 Unit #8, level 0 Unit #9, level 0 Unit #10, level 0 Unit #11, level 0 Unit #12, level 0 Unit #13, level 0 Unit #14, level 0 Unit #15, level 0
3-4
SR 250 Unit #0, level 0 Unit #1, level 0 Unit #2, level 0 Unit #3, level 0 Unit #4, level 0 Unit #5, level 0 Unit #6, level 0 Unit #7, level 0 Unit #0, level 0 Unit #1, level 0 Unit #2, level 0 Unit #3, level 0 Unit #4, level 0 Unit #5, level 0 Unit #6, level 0 Unit #7, level 0
If the PC is in a Multilevel PC Link System and the content of word 248 is 02FF, then PC Link Units #0 through #7 of in the PC Link Subsystem assigned operating level 1 would be in RUN mode, and PC Link Unit #1 in the same Subsystem would have an error. The hexadecimal digits and corresponding binary bits of word 248 would be as shown below. Bit no.
15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 00
Binary
0000
Hex
0
0010
1111
2
F
1111 F
3-4-4 Forced Status Hold Bit SR 25211 determines whether or not the status of bits that have been force-set or force-reset is maintained when switching between PROGRAM and MONITOR mode to start or stop operation. If SR 25211 is ON, bit status will be maintained; if SR 25211 is OFF, all bits will return to default status when operation is started or stopped. The Forced Status Hold Bit is only effective when enabled in the PC Setup. The status of SR 25211 in not affected by a power interruption unless the I/O table is registered; in that case, SR 25211 will go OFF. SR 25211 is not effective when switching to RUN mode. SR 25211 should be manipulated from a Programming Device, e.g., a Programming Console or SYSMAC-CPT Support Software.
45
Page 59
Section
SR (Special Relay) Area Maintaining Status during Startup
3-4
The status of SR 25211 and thus the status of force-set and force-reset bits can be maintained when power is turned OFF and ON by enabling the Forced Status Hold Bit in the PC Setup. If the Forced Status Hold Bit is enabled, the status of SR 25211 will be preserved when power is turned OFF and ON. If this is done and SR 25211 is ON, then the status of force-set and force-reset bits will also be preserved, as shown in the following table. Status before shutdown SR 25211 ON OFF
Status at next startup SR 25211 ON OFF
Force-set/reset bits Status maintained Reset
Note Refer to 3-6-5 PC Setup for details on enabling the Forced Status Hold Bit.
3-4-5 I/O Status Hold Bit SR 25212 determines whether or not the status of IR and LR area bits is maintained when operation is started or stopped. If SR 25212 is ON, bit status will be maintained; if SR 25212 is OFF, all IR and LR area bits will be reset. The I/O Status Hold Bit is effective only if enabled in the PC Setup. The status of SR 25212 in not affected by a power interruption unless the I/O table is registered; in that case, SR 25212 will go OFF. SR 25212 should be manipulated from a Programming Device, e.g., a Programming Console or SYSMAC-CPT Support Software. Maintaining Status during Startup
The status of SR 25212 and thus the status of IR and LR area bits can be maintained when power is turned OFF and ON by enabling the I/O Status Hold Bit in the PC Setup. If the I/O Status Hold Bit is enabled, the status of SR 25212 will be preserved when power is turned OFF and ON. If this is done and SR 25212 is ON, then the status of IR and LR area bits will also be preserved, as shown in the following table. Status before shutdown SR 25212 ON OFF
Status at next startup SR 25212 ON OFF
IR and LR bits Status maintained Reset
Note Refer to 3-6-5 PC Setup for details on enabling the I/O Status Hold Bit.
3-4-6 Output OFF Bit SR bit 25215 is turned ON to turn OFF all outputs from the PC. The OUT INHIBIT indicator on the front panel of the CPU Unit will light. When the Output OFF Bit is OFF, all output bits will be refreshed in the usual way. The status of the Output OFF Bit is maintained for power interruptions or when PC operation is stopped, unless the I/O table has been registered, or the I/O table has been registered and either the Forced Status Hold Bit or the I/O Status Hold Bit has not been enabled in the PC Setup.
3-4-7 FAL (Failure Alarm) Area A 2-digit BCD FAL code is output to bits 25300 to 25307 when the FAL or FALS instruction is executed. These codes are user defined for use in error diagnosis, although the PC also outputs FAL codes to these bits, such as one caused by battery voltage drop. This area can be reset by executing the FAL instruction with an operand of 00 or by performing a Failure Read Operation from the Programming Console.
3-4-8 Low Battery Flag SR bit 25308 turns ON if the voltage of the CPU Unit’s backup battery drops. The ALM/ERR indicator on the front of the CPU Unit will also flash.
46
Page 60
Section
SR (Special Relay) Area
3-4
This bit can be programmed to activate an external warning for a low battery voltage. The operation of the battery alarm can be disabled in the PC Setup if desired. Refer to 3-6-5 PC Setup for details.
3-4-9 Cycle Time Error Flag SR bit 25309 turns ON if the cycle time exceeds 100 ms. The ALM/ERR indicator on the front of the CPU Unit will also flash. Program execution will not stop, however, unless the maximum time limit set for the watchdog timer is exceeded. Timing may become inaccurate after the cycle time exceeds 100 ms.
3-4-10 I/O Verification Error Flag SR bit 25310 turns ON when the Units mounted in the system disagree with the I/O table registered in the CPU Unit. The ALM/ERR indicator on the front of the CPU Unit will also flash, but PC operation will continue. To ensure proper operation, PC operation should be stopped, Units checked, and the I/O table corrected whenever this flag goes ON.
3-4-11 First Cycle Flag SR bit 25315 turns ON when PC operation begins and then turns OFF after one cycle of the program. The First Cycle Flag is useful in initializing counter values and other operations. An example of this is provided in 5-14 Timer and Counter Instructions.
3-4-12 Clock Pulse Bits Five clock pulses are available to control program timing. Each clock pulse bit is ON for the first half of the rated pulse time, then OFF for the second half. In other words, each clock pulse has a duty factor of 50%. These clock pulse bits are often used with counter instructions to create timers. Refer to 5-14 Timer and Counter Instructions for an example of this. Pulse width
1 min
0.02 s
0.1 s
0.2 s
1.0 s
Bit
25400
25401
25500
25501
25502
Bit 25400 1-min clock pulse
30 s
30 s
Bit 25401 0.02-s clock pulse
.01 s
.01 s
1 min.
.02 s
Bit 25500 0.1-s clock pulse
Bit 25501 0.2-s clock pulse
.05 s
.05 s 0.1 s
0.5 s 1.0 s
0.1 s 0.2 s
Bit 25502 1.0-s clock pulse
0.5 s
0.1 s
Note: Because the 0.1-second and 0.02-second clock pulse bits have ON times of 50 and 10 ms, respectively, the CPU Unit may not be able to accurately read the pulses if program execution time is too long.
47
Page 61
Section
SR (Special Relay) Area
3-4
3-4-13 Step Flag SR bit 25407 turns ON for one cycle when step execution is started with the STEP(008) instruction.
3-4-14 Group-2 Error Flag SR bit 25414 turns ON for any of the following errors for Group-2 High-density I/O Units and B7A Interface Units: the same I/O number set twice, the same words allocated to more than one Unit, refresh errors. If one of these errors occurs, the Unit will stop operation and the ALARM indicator will flash, but the overall PC will continue operation. When the Group-2 Error Flag is ON, the number of the Unit with the error will be provided in AR 0205 to AR 0214. If the Unit cannot be started properly even though the I/O number is set correctly and the Unit is installed properly, a fuse may be blown or the Unit may contain a hardware failure. If this should occur, replace the Unit with a spare and try to start the system again. There is also an error flag for High-density I/O Units and B7A Interface Units in the AR area, AR 0215.
3-4-15 Special Unit Error Flag SR bit 25415 turns ON to indicate errors in the following Units: Special I/O, PC Link, Host Link, and Remote I/O Master Units. SR bit 25415 will turn ON for any of the following errors. • When more than one Special I/O Unit is set to the same unit number. • When an error occurs in refreshing data between a Special I/O Unit and the PC’s CPU Unit. • When an error occurs between a Host Link Unit and the PC’s CPU Unit. • When an error occurs in a Remote I/O Master Unit. Although the PC will continue operation if SR 25415 turns ON, the Units causing the error will stop operation and the ALM indicator will flash. Check the status of AR 0000 to AR 0015 to obtain the unit numbers of the Units for which the error occurred and investigate the cause of the error. Unit operation can be restarted by using the Restart Bits (AR 0100 to AR 0115, SR 25207, and SR 25213), but will not be effective if the same unit number is set for more than one Special I/O Unit. Turn OFF the power supply, correct the unit number settings, and turn ON the power supply again to restart. SR 25415 will not turn OFF even if AR 0100 to AR 0115 (Restart Bits) are turned ON. It can be turned OFF by reading errors from a Programming Device or by executing FAL(006) 00 from the ladder program.
3-4-16 Instruction Execution Error Flag, ER SR bit 25503 turns ON if an attempt is made to execute an instruction with incorrect operand data. Common causes of an instruction error are non-BCD operand data when BCD data is required, or an indirectly addressed DM word that is non-existent. When the ER Flag is ON, the current instruction will not be executed.
3-4-17 Arithmetic Flags The following flags are used in data shifting, arithmetic calculation, and comparison instructions. They are generally referred to only by their two-letter abbreviations. Note These flags are all reset when the END(001) instruction is executed, and therefore cannot be monitored from a programming device. Refer to 5-15 Data Shifting, 5-17 Data Comparison, 5-20 BCD Calculations, and 5-21 Binary Calculations for details.
48
Page 62
Section
SR (Special Relay) Area
3-4
Negative Flag, N
SR bit 25402 turns ON when the result of a calculation is negative.
Overflow Flag, OF
SR bit 25404 turns ON when the result of a binary addition or subtraction exceeds 7FFF or 7FFFFFFF.
Underflow Flag, UF
SR bit 25405 turns ON when the result of a signed binary addition or subtraction exceeds 8000 or 80000000.
Carry Flag, CY
SR bit 25504 turns ON when there is a carry in the result of an arithmetic operation or when a rotate or shift instruction moves a “1” into CY. The content of CY is also used in some arithmetic operations, e.g., it is added or subtracted along with other operands. This flag can be set and cleared from the program using the Set Carry and Clear Carry instructions.
Greater Than Flag, GR
SR bit 25505 turns ON when the result of a comparison shows the first of two operands to be greater than the second.
Equal Flag, EQ
SR bit 25506 turns ON when the result of a comparison shows two operands to be equal or when the result of an arithmetic operation is zero.
Less Than Flag, LE
SR bit 25507 turns ON when the result of a comparison shows the first of two operands to be less than the second. Note The four arithmetic flags are turned OFF when END(001) is executed.
3-4-18 Interrupt Subroutine Areas The following areas are used in subroutine interrupt processing. Interrupt Subroutine Maximum Processing Time Area
SR bits 26200 to 26215 are used to set the maximum processing time of the interrupt subroutine. Processing times are determined to within 0.1 ms increments.
Maximum Processing Time Interrupt Subroutine Number Area
SR bits 26300 to 26315 contain the maximum processing time interrupt subroutine number. Bit 15 will be ON if there is an interruption.
3-4-19 RS-232C Port Communications Areas RS-232C Port Error Code
SR bits 26400 to 26403 contain the error code when an RS-232C port error occurred. Error code 0
Error type
Error conditions
Valid modes
No error
---
All modes
1
Parity error
All modes
2
Framing error
Received data had a different positive/negative polarity setting. Step bit could not be detected.
3
Overrun error
Data was not received properly.
All modes
4
Timeout error
A timeout occurred between two PCs that are linked one-to-one.
1:1 PC Link Slave or 1:1 PC Link Master
All modes
RS-232C Port Communication Error Bit
SR bit 26404 turns ON when there is a RS-232C port communication error.
RS-232C Port Send Ready Flag
SR bit 26405 turns ON when the PC is ready to transmit data.
RS-232C Port Reception Completed Flag
SR bit 26406 turns ON when the PC has completed reading data from a RS-232C device.
RS-232C Port Reception Overflow Flag
SR bit 26407 turns ON when data overflow occurs following the reception of data.
RS-232C Reception Counter
SR 26500 to SR 26515 contains the number of RS-232C port receptions in General I/O Mode.
49
Page 63
Section
SR (Special Relay) Area Host Link Level 0 Send Ready Flag Host Link Level 1 Send Ready Flag
3-4
SR bit 26705 turns ON when the PC is ready to transmit to the Host Link Unit. SR bit 26713 turns ON when the PC is ready to transmit to the Host Link.
3-4-20 Peripheral Port Communications Areas Peripheral Port Error Code
SR bits 26408 to 26411 contain the error code when a peripheral port error occurred. Error code 0
Error type
Error conditions
Valid modes
No error
---
All modes
1
Parity error
All modes
2
Framing error
Received data had a different positive/negative polarity setting. Step bit could not be detected.
3
Overrun error
Data was not received properly.
All modes
4
Timeout error
A timeout occurred between two PCs that are linked one-to-one.
1:1 PC Link Slave or 1:1 PC Link Master
All modes
Peripheral Port Communication Error Bit
SR bit 26412 turns ON when there is a peripheral port communication error (effective in General I/O Mode).
Peripheral Port Send Ready Flag
SR bit 26413 turns ON when the PC is ready to transmit data in General I/O Mode.
Peripheral Port Reception Completed Flag
SR bit 26414 turns ON when the PC has completed reading data from a Programming Device. Effective in General I/O Mode.
Peripheral Port Reception Overflow Flag
SR bit 26415 turns ON when data overflow occurs following the reception of data. Effective in General I/O Mode.
Peripheral Reception Counter
SR 26600 to SR 26615 contains the number of peripheral port receptions in General I/O Mode (BCD).
Host Link Level 0 Send Ready Flag
SR bit 26705 turns ON when the PC is ready to transmit to the Host Link Unit.
Host Link Level 1 Receive Ready Flag
SR bit 26713 turns ON when the PC is ready to receive data from the Host Link.
3-4-21 Memory Cassette Areas Memory Cassette Contents
SR 26900 to SR 26907 indicate the type of memory used for the Memory Cassette. Memory Type
Memory Cassette Capacity
Code
Nothing
00
UM
01
IOM
02
HIS
03
SR 26908 to SR 26910 indicate the memory capacity of the Memory Cassette. Capacity
EEPROM/EPROM Memory Cassette Mounted Flag
50
Code
0 KW (no board mounted)
0
4 KW/8 KW
2
16 KW
3
32 KW
4
SR bit 26914 turns ON when EEPROM Memory Cassette is protected or EPROM Memory Cassette is mounted.
Page 64
Section
SR (Special Relay) Area
3-4
Memory Cassette Flag
SR bit 26915 turns ON when a Memory Cassette is mounted.
Save UM to Cassette Flag
SR bit 27000 turns ON when UM data is read to a Memory Cassette in Program Mode. Bit will automatically turn OFF. An error will be produced if turned ON in any other mode.
Load UM from Cassette Flag
SR bit 27001 turns ON when data is loaded into UM from a Memory Cassette in Program Mode. Bit will automatically turn OFF. An error will be produced if turned ON in any other mode.
Collation (Between DM and Memory Cassette)
SR bit 27002 turns ON when data has been compared between DM and a Memory Cassette. SR bit 27003 is turned OFF if the data in the Memory Cassette matches and it is turned ON if the data does not match.
3-4-22 Data Transfer Error Bits Data will not be transferred from UM to the Memory Cassette if an error occurs (except for Board Checksum Error). Detailed information on checksum errors occurring in the Memory Cassette will not be output to SR 272 because the information is not needed. Repeat the transmission if SR 27015 is ON. Transfer Error Flag: Active Data Link
SR bit 27011 turns ON when an attempt is made to transfer the UM used for the SYSMAC NET data link table while the data link is active.
Transfer Error Flag: Not PROGRAM Mode
SR bit 27012 turns ON when the PC is not in Program Mode and data transfer is attempted.
Transfer Error Flag: Read Only
SR bit 27013 turns ON when the PC is in Read-only Mode and data transfer is attempted.
Transfer Error Flag: Insufficient Capacity or No UM
SR bit 27014 turns ON when data transfer is attempted and available UM is insufficient.
Transfer Error Flag: Board Checksum Error
SR bit 27015 turns ON when data transfer is attempted and a Board Checksum error occurs.
3-4-23 Ladder Diagram Memory Areas Memory Cassette Ladder Diagram Size Area
SR 27100 to SR 27107 indicate the amount of ladder program stored in a Memory Cassette. Ladder-only Files: 04: 4 KW; 08: 8 KW; 12: 12 KW; ... (32: 32 KW) 00:Memory Cassette contents not UM or there is no file.
CPU Unit Ladder Diagram Size and Type
SR 27108 to SR 27115 indicate the CPU Unit’s ladder program size and type. Specifications are the same as for bits 00 to 07.
3-4-24 Memory Error Flags Memory Error Flag: PC Setup Error
SR bit 27211 turns ON when a PC Setup Checksum error occurs.
Memory Error Flag: Ladder Checksum Error
SR bit 27212 turns ON when a Ladder Checksum error occurs.
Memory Error Flag: Instruction Change Error
SR bit 27213 turns ON when an instruction change vector area error occurs.
Memory Error Flag: Memory Cassette Disconnect Error
SR bit 27214 turns ON when a Memory Cassette is connected or disconnected during operations.
51