The text of a manual · part 7 of 68
Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 3 Memory Areas, pages 47 to 55
Pages 47 to 55 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 47
Section
IR (Internal Relay) Area Unit number A B C D E F
I/O words IR 400 to IR 409 IR 410 to IR 419 IR 420 to IR 429 IR 430 to IR 439 IR 440 to IR 449 IR 450 to IR 459
3-3
PC Restrictions Not available in and PCs.
Note I/O words that aren’t allocated to Special I/O Units can be used as work words. Up to five Slave Racks may be used, whether one or two Masters are used. IR area words are allocated to Slave Racks by the unit number on the Unit, as shown in the following tables. Unit number
I/O words
0
IR 050 to IR 059
1
IR 060 to IR 069
2
IR 070 to IR 079
3
IR 080 to IR 089
4
IR 090 to IR 099
The C500-RT001/002-(P)V1 Remote I/O Slave Rack may be used, but it requires 20 I/O words, not 10, and therefore occupies the I/O words allocated to 2 C200H Slave Racks, both the words allocated to the unit number set on the rack and the words allocated to the following unit number. When using a C200HX/ HG/HE CPU Unit, do not set the unit number on a C500 Slave Rack to 4, because there is no unit number 5. With the C500 Slave Rack, I/O words are allocated only to installed Units, from left to right, and not to slots as in the C200HX/ HG/HE Racks. Allocation for Optical I/O Units and I/O Terminals
I/O words between IR 200 and IR 231 are allocated to Optical I/O Units and I/O Terminals by unit number. The I/O word allocated to each Unit is IR 200+n, where n is the unit number set on the Unit.
Allocation for Remote I/O Master and Link Units
Remote Master I/O Units and Host Link Units do not use I/O words, and the PC Link Units use the LR area, so words allocated to the slots in which these Units are mounted are available as work words.
Bit Allocation for I/O Units
An I/O Unit may require anywhere from 8 to 16 bits, depending on the model. With most I/O Units, any bits not used for input or output are available as work bits. Transistor Output Units C200H-OD213 and C200H-OD411, as well as Triac Output Unit C200H-OA221, however, uses bit 08 for the Blown Fuse Flag. Transistor Output Unit C200H-OD214 uses bits 08 to 11 for the Alarm Flag. Bits 08 to 15 of any word allocated to these Units, therefore, cannot be used as work bits.
Bit Allocation for Interrupt Input Units
The Interrupt Input Unit uses the 8 bits of the first I/O word allocated to its slot in the CPU Rack. (An Interrupt Input Unit will operate as a normal Input Unit when installed in an Expansion I/O Rack.) The other 24 bits allocated to its slot in the CPU Rack can be used as work bits.
34
Page 48
Section
IR (Internal Relay) Area Allocation for Group-2 High-density I/O Units and B7 Interface Units
3-3
Group-2 High-density I/O Units and B7A Interface Units are allocated words between IR 030 and IR 049 according to I/O number settings made on them and do not use the words allocated to the slots in which they are mounted. For 32-point Units, each Unit is allocated two words; for 64-point Units, each Unit is allocated four words. The words allocated for each I/O number are in the following tables. Any words or parts of words not used for I/O can be used as work words or bits in programming. 32-point Units
64-point Units
Words
I/O number
I/O number
Words
0
IR 30 to IR 31
0
IR 30 to IR 33
1
IR 32 to IR 33
1
IR 32 to IR 35
2
IR 34 to IR 35
2
IR 34 to IR 37
3
IR 36 to IR 37
3
IR 36 to IR 39
4
IR 38 to IR 39
4
IR 38 to IR 41
5
IR 40 to IR 41
5
IR 40 to IR 43
6
IR 42 to IR 43
6
IR 42 to IR 45
7
IR 44 to IR 45
7
IR 44 to IR 47
8
IR 46 to IR 47
8
IR 46 to IR 49
9
IR 48 to IR 49
9
Cannot be used.
A
IR 330 to IR 331
A
IR 330 to IR 333
B
IR 332 to IR 333
B
IR 332 to IR 335
C
IR 334 to IR 335
C
IR 334 to IR 337
D
IR 336 to IR 337
D
IR 336 to IR 339
E
IR 338 to IR 339
E
IR 338 to IR 341
F
IR 340 to IR 341
F
Cannot be used.
Note Unit numbers A to F cannot be set when using the following CPU Units: C200HE-CPU32-ZE, C200HE-CPU42-ZE, C200HG-CPU33-ZE, C200HGCPU43-ZE, C200HX-CPU34-ZE, and C200HX-CPU44-ZE. Set unit number 0 to 9 when using these CPU Units. When setting I/O numbers on the High-density I/O Units and B7A Interface Units, be sure that the settings will not cause the same words to be allocated to more than one Unit. For example, if I/O number 0 is allocated to a 64-point Unit, I/O number 1 cannot be used for any Unit in the system. Group-2 High-density I/O Units and B7A Interface Units are not considered Special I/O Units and do not affect the limit to the number of Special I/O Units allowed in the System, regardless of the number used. The words allocated to Group-2 High-density I/O Units correspond to the connectors on the Units as shown in the following table. Unit 32-point Units 64-point Units
Note
Word m m+1 m m+1 m+2 m+3
Connector/row Row A Row B CN1, row A CN1, row B CN2, row A CN2, row B
1. Group-2 High-density I/O Units and B7A Interface Units cannot be mounted to Slave Racks. 2. Refer to the Installation Guide for limitations on the number of Special I/O Units that can be mounted to Slave Racks.
35
Page 49
Section
SR (Special Relay) Area
3-4
3-4
SR (Special Relay) Area The SR area contains flags and control bits used for monitoring PC operation, accessing clock pulses, and signalling errors. SR area word addresses range from 236 through 299; bit addresses, from 23600 through 29915. The SR areas is divided into two sections. The first section ends at SR 255 and the second section begins at SR 256. When an SR area word is used as an operand in an instruction, the operand mustn’t cross over this boundary. Basic instructions that access bits in the SR Area 2 have longer execution times. Area
Range
SR Area 1
SR 23600 to SR 25507
SR Area 2
SR 25600 to SR 29915
The following table lists the functions of SR area flags and control bits. Most of these bits are described in more detail following the table. Descriptions are in order by bit number except that Link System bits are grouped together. Unless otherwise stated, flags are OFF until the specified condition arises, when they are turned ON. Restart bits are usually OFF, but when the user turns one ON then OFF, the specified Link Unit will be restarted. Other control bits are OFF until set by the user. Not all SR words and bits are writeable by the user. Be sure to check the function of a bit or word before attempting to use it in programming. Word(s) 236 237
Bit(s) 00 to 07 08 to 15 00 to 07 08 to 15
238 and 241
00 to 15
242 and 245
00 to 15
246 247 and 248
00 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 01 to 02 03 04 to 06
249 and 250 251 Writeable
07 08 to 15
36
Function Node loop status output area for operating level 0 of SYSMAC NET Link System Node loop status output area for operating level 1 of SYSMAC NET Link System Completion code output area for operating level 0 following execution of SEND(090) or RECV(098) for a SYSMAC LINK/SYSMAC NET Link System or CMCR(261) for a PC Card Completion code output area for operating level 1 following execution of SEND(090) or RECV(098) for a SYSMAC LINK/SYSMAC NET Link System or CMCR(261) for a PC Card Data link status output area for operating level 0 of SYSMAC LINK or SYSMAC NET Link System Data link status output area for operating level 1 of SYSMAC LINK or SYSMAC NET Link System Not used PC Link Unit Run Flags for Units 16 through 31 or data link status for operating level 1 PC Link Unit Error Flags for Units 16 through 31 or data link status for operating level 1 PC Link Unit Run Flags for Units 00 through 15 or data link status for operating level 0 PC Link Unit Error Flags for Units 00 through 15 or data link status for operating level 0 Remote I/O Error Read Bit Not used Remote I/O Error Flag Slave Rack number and unit number of Remote I/O Unit, Optical I/O Unit, or I/O Terminal with error Not used Master’s unit number and word allocated to Remote I/O Unit, Optical I/O Unit, or I/O Terminal with error (Hexadecimal)
Page 50
SR (Special Relay) Area Word(s) 252
Bit(s) 00 01 02 03 04
253
254
05 06 07 08 09 10 11 12 13 14 15 00 to 07 08 09 10 11 12 13 14 15 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
Section
3-4
Function SEND(090)/RECV(098) Error Flag for operating level 0 of Controller Link/SYSMAC LINK or SYSMAC NET Link System or CMCR(261) Error Flag for PC Card SEND(090)/RECV(098) Enable Flag for operating level 0 of Controller Link/SYSMAC LINK or SYSMAC NET Link System or CMCR(261) Enable Flag for PC Card Operating Level 0 Data Link Operating Flag of Controller Link/SYSMAC LINK or SYSMAC NET Link System SEND(090)/RECV(098) Error Flag for operating level 1 of Controller Link/SYSMAC LINK or SYSMAC NET Link System or CMCR(261) Error Flag for PC Card SEND(090)/RECV(098) Enable Flag for operating level 1 of Controller Link/SYSMAC LINK or SYSMAC NET Link System or CMCR(261) Enable Flag for PC Card Operating Level 1 Data Link Operating Flag Rack-mounting Host Link Unit Level 1 Communications Error Flag Rack-mounting Host Link Unit Level 1 Restart Bit Peripheral Port Restart Bit RS-232C Port Restart Bit PC Setup Clear Bit Forced Status Hold Bit Data Retention Control Bit Rack-mounting Host Link Unit Level 0 Restart Bit Not used. Output OFF Bit FAL number output area (see error information provided elsewhere) Low Battery Flag Cycle Time Error Flag I/O Verification Error Flag Rack-mounting Host Link Unit Level 0 Communications Error Flag Remote I/O Error Flag Always ON Flag Always OFF Flag First Cycle Flag 1-minute clock pulse bit 0.02-second clock pulse bit Negative (N) Flag MTR Execution Flag Overflow Flag (for signed binary calculations) Underflow Flag (for signed binary calculations) Differential Monitor End Flag Step Flag HKY Execution Flag 7SEG Execution Flag DSW Execution Flag Interrupt Input Unit Error Flag Reserved for system (not accessible by user) Interrupt Program Error Flag Group-2 Error Flag Special Unit Error Flag (includes Special I/O, PC Link, Host Link, Remote I/O Master Units)
37
Page 51
Section
SR (Special Relay) Area Word(s) 255
Bit(s) 00 01 02 03 04 05 06 07 08 to 15
0.1-second clock pulse bit 0.2-second clock pulse bit 1.0-second clock pulse bit Instruction Execution Error (ER) Flag These flags are turned OFF when the END(001) instruction is executed, so their status can’t be Carry (CY) Flag monitored from a Programming Console. Greater Than (GR) Flag Refer to Appendix C for a table showing which Equals (EQ) Flag instructions affect these flags. Less Than (LE) Flag Reserved for system (used for TR bits)
256 to 261
00 to 15
Reserved for system
262
00 to 15
Longest interrupt subroutine (action) execution time (0.1-ms units)
263
00 to 15
Number of interrupt subroutine (action) with longest execution time. (8000 to 8255) (Bit 15 is the Interrupt Flag.)
264
00 to 03
RS-232C Port Error Code 0: No error
1: Parity error
2: Framing error
3: Overrun error
04 05 06 07 08 to 11
Function
RS-232C Port Communications Error RS-232C Port Send Ready Flag RS-232C Port Reception Completed Flag RS-232C Port Reception Overflow Flag Peripheral Port Error Code in General I/O Mode 0: No error 1: Parity error 2: Framing error
265
3-4
3: Overrun error
12 13 14 15
Peripheral Port Communications Error in General I/O Mode Peripheral Port Send Ready Flag in General I/O Mode Peripheral Port Reception Completed Flag in General I/O Mode Peripheral Port Reception Overflow Flag in General I/O Mode
00 to 15
NT Link (1:N) Mode Bits 00 to 07: Communicating with PT Flags for Units 0 to 7 BIts 08 to 15: Registering PT Priority Flags for Units 0 to 7 RS-232C Mode BIts 00 to 15: RS-232C Port Reception Counter
266
00 to 15
Peripheral Reception Counter in RS-232C Mode
267
00 to 04 05 06 to 12 13 14 to 15
Reserved for system (not accessible by user) Host Link Level 0 Send Ready Flag Reserved for system (not accessible by user) Host Link Level 1 Send Ready Flag Reserved for system (not accessible by user)
268
00 to 15
Communications Board Error Information
269
00 to 07 08 to 10
Memory Cassette Contents 00: Nothing; 01: UM; 02: IOM Memory Cassette Capacity 0: 0 KW (no cassette); 2: 4 or 8 KW; 3: 16 KW; 4: 32 KW Reserved for system (not accessible by user) EEPROM Memory Cassette Protected or EPROM Memory Cassette Mounted Flag Memory Cassette Flag
11 to 13 14 15
Note Do not use IR 256 to IR299 as work words even with CPU Units that do not use them.
38
Page 52
Section
SR (Special Relay) Area Word(s) 270
Bit(s) 00
Save UM to Cassette Bit
01
Load UM from Cassette Bit
02 03
Compare UM to Cassette Bit Comparison Results 0: Contents identical; 1: Contents differ or comparison not possible Reserved for system (not accessible by user) Transfer Error Flag: Transferring Data will not be transferred from UM to the Memory SYSMAC NET data link table on UM Cassette if an error occurs (except for Board during active data link. Checksum Error). Detailed information on checksum errors occurring in the Memory Cassette will not be Transfer Error Flag: Not PROGRAM output to SR 272 because the information is not mode needed. Repeat the transmission if SR 27015 is ON. Transfer Error Flag: Read Only Transfer Error Flag: Insufficient Capacity or No UM Transfer Error Flag: Board Checksum Error Ladder program size stored in Memory Cassette
04 to 10 11
12 13 14 15 271
3-4
00 to 07
Function Data transferred when the Bit is turned ON in PROGRAM mode. Bit will automatically turn OFF. A non-fatal error will occur if these bits are turned ON in RUN or MONITOR modes.
Ladder-only File: 04: 4 KW; 08: 8 KW; 12: 12 KW; ... (32: 32 KW) 00: No ladder program or a file other than a ladder program has been stored. 272
273
08 to 15 00 to 10 11 12 13 14 15 00 01 02 03 to 07 08 to 11 12 13 14 15
Ladder program size and type in CPU (Specifications are the same as for bits 00 to 07.) Reserved for system (not accessible by user) Memory Error Flag: PC Setup Checksum Error Memory Error Flag: Ladder Checksum Error Memory Error Flag: Instruction Change Vector Area Checksum Error Memory Error Flag: Memory Cassette Online Disconnection Memory Error Flag: Autoboot Error Save IOM to Cassette Bit Data transferred to Memory Cassette when Bit is turned ON in PROGRAM mode. An error will be produced if turned ON in any other mode. Bit will Load IOM from Cassette Bit automatically turn OFF from a Programming Console. Set this bit to 0. Reserved for system (not accessible by user) Contains the EM bank number when the Memory Cassette contains IOM data. Transfer Error Flag: Not PROGRAM Data will not be transferred from IOM to the Memory mode Cassette if an error occurs (except for Read Only Error). Transfer Error Flag: Read Only Transfer Error Flag: Insufficient Capacity or No IOM Always 0.
Note Do not use IR 256 to IR299 as work words even with CPU Units that do not use them.
39
Page 53
Section
SR (Special Relay) Area Word(s) 274
277 to 279 280
Bit(s) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 00 01 02 03 04 05 to 15 00 to 07 08 to 15 00 to 15 00 to 15
281
00 to 15
275
276
3-4
Function These flags will turn ON during restart processing. These flags will not turn ON for Units on Slave Racks.
Special I/O Unit #0 Restart Flag Special I/O Unit #1 Restart Flag Special I/O Unit #2 Restart Flag Special I/O Unit #3 Restart Flag Special I/O Unit #4 Restart Flag Special I/O Unit #5 Restart Flag Special I/O Unit #6 Restart Flag Special I/O Unit #7 Restart Flag Special I/O Unit #8 Restart Flag Special I/O Unit #9 Restart Flag Special I/O Unit #A Restart Flag Special I/O Unit #B Restart Flag Special I/O Unit #C Restart Flag Special I/O Unit #D Restart Flag Special I/O Unit #E Restart Flag Special I/O Unit #F Restart Flag PC Setup Error (DM 6600 to DM 6605) PC Setup Error (DM 6613 to DM 6623) PC Setup Error (DM 6645 to DM 6655) Reserved for system (not accessible by user) Changing RS-232C Setup Flag Reserved for system (not accessible by user) Minutes (00 to 59) Indicates the current time in BCD. Hours (00 to 23) Used for keyboard mapping. See page 454. Group-2 High-density I/O Unit Error Flags for Units 0 to F (AR 0205 to AR 0214 also function as Error Flags for Units 0 to 9.) Special I/O Unit Restart Bits for Units 0 to F (Units 0 to 9 can also be restarted with Special I/O Unit Restart Bits AR 0100 to AR 0109.)
• To restart a Special I/O Unit, either use for force–set/reset operation to turn the Restart Bit ON and OFF, or turn OFF the power and then turn it ON again. Note These bits must be turned OFF by the user or user program. If they are not turned OFF, they will remain ON even after power is turned OFF and ON. 282
00 to 15
283 to 286 287 to 288 289
00 to 15 00 to 15 00 to 07 08 09 to 10 11 12 13 to 14 15 00 to 15 00 to 15 00 to 15
290 to 293 294 to 297 298 to 299
• Follow the same procedure as above for starting PC Link Units. Special I/O Unit Error Flags for Units 0 to F (AR 0000 to AR 0009 also function as Error Flags for Units 0 to 9.) Communications Board monitoring area Communications Board interrupt data area Communications Board general monitoring area Communications Board Port A Instruction Execution Flag Used by Communications Board Port A instructions Communications Board Port A Instruction Abort Bit Communications Board Port B Instruction Execution Flag Used by Communications Board Port B instructions Communications Board Port B Instruction Abort Bit Macro Area inputs. Macro Area outputs. Reserved for system (not accessible by user)
Note Do not use IR 256 to IR299 as work words even with CPU Units that do not use them.
40
Page 54
Section
SR (Special Relay) Area
3-4
3-4-1 Controller Link/SYSMAC NET/SYSMAC LINK System Loop Status
SR 236 provides the local node loop status for SYSMAC NET Systems, as shown below.
–––
Bit in SR 236
Level 0
07
06
05
04
03
02
01
Level 1
15
14
13
12
11
10
09
Status/ Meaning
1
1
Central Power Supply
1
Completion Codes
0: Connected 1: Not connected
Loop Status
Reception Status
11: Normal loop 10: Downstream backloop 01: Upstream backloop 00: Loop error
0: Reception enabled 1: Reception disabled
00 08 1
SR 23700 to SR23707 provide the SEND/RECV completion code for operating level 0 and SR 23708 to SR 23215 provide the SEND/RECV completion code for operating level 1. The completion codes are as given in the following tables. Controller Link/SYSMAC LINK Code
Item
Meaning
00
Normal end
Processing ended normally.
01
Parameter error
02
Unable to send
03 04
Destination not in network Busy error
Parameters for network communication instruction is not within acceptable ranges. Unit reset during command processing or local node is not in network. Destination node is not in network.
05
Response timeout
06
Response error
07 08
Communications controller error Setting error
09
PC error
10
Routing error
11
Relay error
12
Local node busy
The destination node is processing data and cannot receive the command. The response monitoring time was exceeded. There was an error in the response received from the destination node. An error occurred in the communications controller. There is an error in the node address settings. An error occurred in the CPU Unit of the destination node. Routing could not be performed correctly and the command could not be sent. An error occurred in the relay node and the command did not arrive at the remote node. The local node is busy so the command could not be sent.
41
Page 55
Section
SR (Special Relay) Area
3-4
SYSMAC NET Code
Data Link Status Flags
Item
Meaning
00
Normal end
Processing ended normally.
01
Parameter error
02
Routing error
03
Busy error
04 05
Send error (token lost) Loop error
Parameters for network communication instruction is not within acceptable ranges. There is a mistake in the routing tables for connection to a remote network. The destination node is processing data and cannot receive the command. The token was not received from the Line Server.
06
No response
07
Response error
An error occurred in the communications loop. The destination node does not exist or the response monitoring time was exceeded. There is an error in the response format.
SR 238 to SR 245 contain the data link status for Controller Link/SYSMAC LINK/ SYSMAC NET Systems. The data structure depends on the system used to create the data link. Controller Link • Polling Node and Startup Node Addresses Operating level 0 SR 238
Bit
Operating level 1 08 to 15 Polling node address
SR 240
00 to 07 Startup node address
Node addresses are expressed in two-digit BCD. • Data Link Status Operating level 0
Bit
Operating level 1
SR 239
SR 243
08 to 15 Node 2
00 to 07 Node 1
SR 240
SR 244
Node 4
Node 3
SR 241
SR 245
Node 6
Node 5
SYSMAC LINK Operating level 0
Operating level 1
SR 238 SR 239
Bit
SR 242
12 to 15 Node 4
11 to 08 Node 3
04 to 07 Node 2
00 to 03 Node 1
SR 243
Node 8
Node 7
Node 6
Node 5
SR 240
SR 244
Node 12
Node 11
Node 10
Node 9
SR 241
SR 245
Node 16
Node 15
Node 14
Node 13
Leftmost bit 1: Data link operating
Rightmost bit 1: Communications error
1: PC CPU Unit error
1: PC RUN status
SYSMAC NET Bit (Node numbers below)
Operating level 0
Operating level 1
SR 238
SR 242
15 8
14 7
13 6
12 5
11 4
10 3
09 2
08 1
07 8
06 7
05 6
04 5
03 4
02 3
01 2
00 1
SR 239
SR 243
16
15
14
13
12
11
10
9
16
15
14
13
12
11
10
9
SR 240
SR 244
24
23
22
21
20
19
18
17
24
23
22
21
20
19
18
17
SR 241
SR 245
32
31
30
29
28
27
26
25
32
31
30
29
28
27
26
25
1: PC CPU Unit error
42
1: PC RUN status