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

The text of a manual · part 9 of 68

Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 3 Memory Areas, pages 65 to 73

Pages 65 to 73 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 65

Section

AR (Auxiliary Relay) Area Memory Error Flag: Autoboot Error

3-5

SR bit 27215 turns ON when an autoboot error occurs.

3-4-25 Data Save/Load Bits Data transferred to/from Memory Cassette when Bit is turned ON in PROGRAM mode. Bit will automatically turn OFF when manipulated from a Programming Console. An error will be produced if turned ON in any other mode. Save IOM to Cassette Bit

Turn ON SR bit 27300 to save IOM data to a Memory Cassette.

Load IOM from Cassette Bit

Turn ON SR bit 27301 to loading IOM data from a Memory Cassette.

3-4-26 Transfer Error Flags Data will not be transferred from IOM to the Memory Cassette if an error occurs (except for Read Only Error). Transfer Error Flag: Not PROGRAM mode

SR bit 27312 turns ON when attempting to transfer data in other than Program Mode.

Transfer Error Flag

SR bit 27313 turns ON when attempting to transfer data in Read-only Mode.

Transfer Error Flag

SR bit 27314 turns ON when attempting to transfer data and IOM capacity is insufficient.

3-4-27 PC Setup Error Flags PC Setup Startup Error

SR bit 27500 turns ON when a PC Setup Startup error occurs (DM6600 to DM6605).

PC Setup RUN Error

SR bit 27501 turns ON when a PC Setup Run error occurs (DM6613 to DM6623).

PC Setup Communications/Error Setting/Misc. Error

SR bit 27502 turns ON when a PC Setup Communications, Error setting or Miscellaneous error occurs (DM6635 to DM6655).

3-4-28 Clock and Keyboard Mapping Clock (SR 276)

SR 276 contains the current time. SR bits 27600 to 27607 contain the minutes (00 to 59) and SR bits 27608 to 27615 contain the hours (0 to 23).

Keyboard Mapping (SR 277)

SR 277 through SR 279 are used for keyboard mapping.

3-4-29 Group-2 Error Flags SR bits 28000 to SR 28015 are used as Error Flags for Group-2 High-density I/O Units with unit numbers 0 to F. The corresponding Error Flag is turned ON when an error occurs in that Unit. Ten bits in the AR area (AR 0205 to AR 0214) are also used as Error Flags for Units 0 to 9.

3-4-30 Special I/O Unit Restart Bits and Error Flags SR bits 28100 to SR 28115 are used as Restart Bits for Special I/O Units with unit numbers 0 to F. Turn the corresponding bit ON and OFF to restart a Special I/O Unit. Ten bits in the AR area (AR 0100 to AR 0109) are also used as Restart Bits for Units 0 to 9. SR bits 28200 to SR 28215 are used as Error Flags for Special I/O Units with unit numbers 0 to F. The corresponding Error Flag is turned ON when an error occurs in that Unit. Ten bits in the AR area (AR 0000 to AR 0009) are also used as Error Flags for Units 0 to 9.

3-5

AR (Auxiliary Relay) Area AR word addresses extend from AR 00 to AR 27; AR bit addresses extend from AR 0000 to AR 2715. Most AR area words and bits are dedicated to specific

52

Page 66

Section

AR (Auxiliary Relay) Area

3-5 uses, such as transmission counters, flags, and control bits, and words AR 00 through AR 07 and AR 23 through AR 27 cannot be used for any other purpose. Words and bits from AR 08 to AR 17 are available as work words and work bits if not used for the following assigned purposes. Word

Use

AR 08 to AR 15

Controller Link/SYSMAC LINK Units

AR 16, AR 17

Controller Link/SYSMAC LINK and SYSMAC NET Link Units

The AR area retains status during power interruptions, when switching from MONITOR or RUN mode to PROGRAM mode, or when PC operation is stopped. Bit allocations are shown in the following table and described in the following pages in order of bit number. AR Area Flags and Control Bits Word(s) 00

Bit(s) 00 to 09

Function

12

Error Flags for Special I/O Units 0 to 9 and PC Link Units 0 to 9 (The function of these flags is duplicated in SR 28200 through SR 28209.) Error Flag for operating level 1 of Controller Link/SYSMAC LINK or SYSMAC NET Link System Error Flag for operating level 0 of Controller Link/SYSMAC LINK or SYSMAC NET Link System Host Computer to Rack-mounting Host Link Unit Level 1 Error Flag

13

Host Computer to Rack-mounting Host Link Unit Level 0 Error Flag

14

Remote I/O Master Unit 1 Error Flag

15

Remote I/O Master Unit 0 Error Flag

00 to 09

12, 13

Restart Bits for Special I/O Units 0 to 9 and PC Link Units 0 to 9 (The operation of these bits is duplicated in SR 28100 through SR 28109.) Restart Bit for operating level 1 of Controller Link/SYSMAC LINK or SYSMAC NET Link System Restart Bit for operating level 0 of Controller Link/SYSMAC LINK or SYSMAC NET Link System Not used.

14

Remote I/O Master Unit 1 Restart Bit

15

Remote I/O Master Unit 0 Restart Bit

02

00 to 04

Slave Rack Error Flags (#0 to #4)

03

05 to 14 15 00 to 15

Group-2 Error Flags (Bits 05 through 14 correspond to Units 0 to 9.) Group-2 Error Flag Error Flags for Optical I/O Units and I/O Terminals 0 to 7

04

00 to 15

Error Flags for Optical I/O Units and I/O Terminals 8 to 15

05

00 to 15

Error Flags for Optical I/O Units and I/O Terminals 16 to 23

06 07

00 to 15

Error Flags for Optical I/O Units and I/O Terminals 24 to 31

08 to 11

00 to 03 04 to 07 08 09 10 to 11 12 13 14 15 00 to 15

Data Link setting for operating level 0 of SYSMAC LINK System Data Link setting for operating level 1 of SYSMAC LINK System TERMINAL Mode Input Cancel Bit Expansion TERMINAL Mode ON/OFF Bit Not used. Same as status of pin 6 on CPU Unit’s DIP switch Error History Overwrite Bit Error History Reset Bit Error History Enable Bit Active Node Flags for Controller Link/SYSMAC LINK System nodes of operating level 0

12 to 15

00 to 15

Active Node Flags for Controller Link/SYSMAC LINK System nodes of operating level 1

16

00 to 15

Controller Link/SYSMAC LINK/SYSMAC NET Link System operating level 0 service time per cycle

10 11

01

10 11

53

Page 67

Section

AR (Auxiliary Relay) Area Word(s)

3-5

Bit(s)

Function

17

00 to 15

18

21

00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07

22

08 to 12 13 14 15 00 to 15

Controller Link/SYSMAC LINK/SYSMAC NET Link System operating level 1 service time per cycle Seconds: 00 to 59 Minutes: 00 to 59 Hours: 00 to 23 (24-hour system) Day of Month: 01 to 31 (adjusted by month and for leap year) Month: 1 to 12 Year: 00 to 99 (Rightmost two digits of year) Day of Week: 00 to 06 (00: Sunday; 01: Monday; 02: Tuesday; 03: Wednesday; 04: Thursday; 05: Friday; 06: Saturday) Not used. 30-second Compensation Bit Clock Stop Bit Clock Set Bit Keyboard Mapping

00 to 15

Power Off Counter (BCD)

25

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 00 to 07

26

08 09 10 11 12 13 14 15 00 to 15

SYSMAC LINK – RS-232C Programming Device Flag SYSMAC LINK – Port A Programming Device Flag SYSMAC LINK – Port B Programming Device Flag SYSMAC LINK – Programming Device Initialization BIt Not used. Cycle Time Flag Controller Link/SYSMAC LINK System Network Parameter Flag for operating level 1 Controller Link/SYSMAC LINK System Network Parameter Flag for operating level 0 Controller Link/SYSMAC LINK/SYSMAC NET Link Unit Level 1 Mounted Flag Controller Link/SYSMAC LINK/SYSMAC NET Link Unit Level 0 Mounted Flag Not used. PC Link Unit Level 1 Mounted Flag PC Link Unit Level 0 or Single Level Mounted Flag Rack-mounting Host Link Unit Level 1 Mounted Flag Rack-mounting Host Link Unit Level 0 Mounted Flag CPU Unit-mounting Device Mounted Flag Password for access to the Online Edit Disable Bit (The Online Edit Disable Bit is valid when this byte contains 5A.) FPD(269) Trigger Bit Online Edit Disable Bit Online Edit Standby Flag Not used. Trace End Flag Tracing Flag Trace Trigger Bit (writeable) Trace Start Bit (writeable) Maximum Cycle Time (0.1-ms units)

27

00 to 15

Present Cycle Time (0.1-ms units)

19 20

23 24

3-5-1 Restarting Special I/O Units AR bits 0100 to AR 0109 correspond to the unit numbers of Special I/O Units 0 to 9. To restart Special I/O Units (including PC Link Units) turn the corresponding bit ON and OFF (or turn power ON and OFF). Do not access data refreshed for Special I/O Units during restart processing (see SR 27400 to SR 27409 on page 40).

54

Page 68

Section

AR (Auxiliary Relay) Area

3-5

Note Bits SR 28100 to SR 28115 also act as Restart Bits for Special I/O Units 0 to F.

3-5-2 Slave Rack Error Flags AR bits 0200 to AR 0204 correspond to the unit numbers of Remote I/O Slave Units #0 to #4. These flags will turn ON if the same number is allocated to more then one Slave or if a transmission error occurs when starting the System. Refer to SR 251 for errors that occur after the System has started normally.

3-5-3 Group-2 Error Flags Bits AR 0205 to AR 0215 correspond to Group-2 High-density I/O Units and B7A Interface Units 0 to 9 (I/O numbers) and will turn ON when the same number is set for more than one Unit, when the same word is allocated to more than one Unit, when I/O number 9 is set for a 64-point Unit, or when the fuse burns out in a Transistor High-density I/O Unit. AR bit 0215 will turn ON when a Unit is not recognized as a Group-2 High-density I/O Unit. Note Bits SR 28000 to SR 28015 also act as Error Flags for Group-2 High-density I/O Units with unit numbers 0 to F.

3-5-4 Optical I/O Unit and I/O Terminal Error Flags AR 03 through AR 06 contain the Error Flags for Optical I/O Units and I/O Terminals. An error indicates a duplication of a unit number. Up to 64 Optical I/O Units and I/O Terminals can be connected to the PC. Units are distinguished by unit number, 0 through 31, and a letter, L or H. Bits are allocated as shown in the following table. Optical I/O Unit and I/O Terminal Error Flags

Bits 00

AR03 allocation 0L

AR04 allocation 8L

AR05 allocation 16 L

AR06 allocation 24 L

01

0H

8H

16 H

24 H

02

1L

9L

17 L

25 L

03

1H

9H

17 H

25 H

04

2L

10 L

18 L

26 L

05

2H

10 H

18 H

26 H

06

3L

11 L

19 L

27 L

07

3H

11 H

19 H

27 H

08

4L

12 L

20 L

28 L

09

4H

12 H

20 H

28 H

10

5L

13 L

21 L

29 L

11

5H

13 H

21 H

29 H

12

6L

14 L

22 L

30 L

13

6H

14 H

22 H

30 H

14

7L

15 L

23 L

31 L

15

7H

15 H

23 H

31 H

55

Page 69

Section

AR (Auxiliary Relay) Area

3-5

3-5-5 SYSMAC LINK System Data Link Settings AR 0700 to AR 0703 and AR 0704 to AR 0707 are used to designate word allocations for operating levels 0 and 1 of the SYSMAC LINK System. Allocation can be set to occur either according to settings from the SYSMAC-CPT Support Software or automatically in the LR and/or DM areas. If automatic allocation is designated, the number of words to be allocated to each node is also designated. These settings are shown below. Operating level 0

Words per Node

Operating level 1

AR 0700

AR 0701

AR 0704

AR 0705

0

0

0

0

1 0 1

0 1 1

1 0 1

0 1 1

Setting Words set externally (SYSMAC-CPT Support Software) Automatic LR area only allocation DM area only LR and DM areas

The following setting is necessary if automatic allocation is designated above. Operating level 0

Operating level 1

Words per node

Max. no. of nodes

AR 0702 0

AR 0703 0

AR 0706 0

AR 0707 0

LR area 4

DM area 8

16

1

0

1

0

8

16

8

0

1

0

1

16

32

4

1

1

1

1

32

64

2

The above settings are read every cycle while the SYSMAC LINK System is in operation.

3-5-6 Controller Link System Data Link Start Bit The following words are used to start and stop data links when a Controller Link Unit is used. Operating level 0 Data Link Start Bit

Operating level 1 Data Link Start Bit

AR 0700

AR 0704

0 to 1 or 1 when power is ON 1 to 0

Meaning

Data link is started. Data link is stopped.

3-5-7 Error History Bits AR 0713 (Error History Overwrite Bit) is turned ON or OFF by the user to control overwriting of records in the Error History Area in the DM area. Turn AR 0713 ON to overwrite the oldest error record each time an error occurs after 10 have been recorded. Turn OFF AR 0713 to store only the first 10 records that occur each time after the history area is cleared. AR 0714 (Error History Reset Bit) is turned ON and then OFF by the user to reset the Error Record Pointer (DM 6000) and thus restart recording error records at the beginning of the history area. AR 0715 (Error History Enable Bit) is turned ON by the user to enable error history storage and turned OFF to disable error history storage. Refer to 3-6 DM Area for details on the Error History Area. Error history bits are refreshed each cycle.

56

Page 70

Section

AR (Auxiliary Relay) Area

3-5

3-5-8 Active Node Flags AR 08 through AR 11 and AR 12 through AR 15 provide flags that indicate which nodes are active in the Controller Link/SYSMAC LINK System at the current time. These flags are refreshed every cycle while the Controller Link/SYSMAC LINK System is operating. The body of the following table show the node number assigned to each bit. If the bit is ON, the node is currently active. Level 0

Level 1

Bit (body of table shows node numbers) 00

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

AR 08

AR 12

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

AR 09

AR 13

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

AR 10

AR 14

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

AR 11

AR 15

49

50

51

52

53

54

55

56

57

58

59

60

61

62

*

**

*Communication Controller Error Flag **EEPROM Error Flag

3-5-9 Controller Link/SYSMAC LINK/SYSMAC NET Link System Service Time AR 16 provides the time allocated to servicing operating level 0 of the Controller LInk/SYSMAC LINK System and/or SYSMAC NET Link System during each cycle when a Controller Link/SYSMAC LINK Unit and/or SYSMAC NET Link Unit is mounted to a Rack. AR 17 provides the time allocated to servicing operating level 1 of the Controller Link/SYSMAC LINK System and/or SYSMAC NET Link System during each cycle when a Controller Link/SYSMAC LINK Unit and/or SYSMAC NET Link Unit is mounted to a Rack. These times are recorded in 4-digit BCD to tenths of a millisecond (000.0 ms to 999.9 ms) and are refreshed every cycle. Bits 15 to 12

11 to 08

07 to 04

03 to 00

102

101

100

10–1

3-5-10 Calendar/Clock Area and Bits Calendar/Clock Area

A clock is built into the C200HX/HG/HE CPU Units. If AR 2114 (Clock Stop Bit) is OFF, then the date, day, and time will be available in BCD in AR 18 to AR 20 and AR 2100 to AR 2108 as shown below. This area can also be controlled with AR 2113 (30-second Compensation Bit) and AR 2115 (Clock Set Bit).

Calendar/Clock Bits Bits AR 1800 to AR 1807 AR 1808 to AR 1815 AR 1900 to AR 1907 AR 1908 to AR 1915 AR 2000 to AR 2007 AR 2008 to AR 2015 AR 2100 to AR 2107

Contents Seconds Minutes Hours Day of month Month Year Day of week

Possible values 00 to 59 00 to 59 00 to 23 (24-hour system) 01 to 31 (adjusted by month and for leap year) 1 to 12 00 to 99 (Rightmost two digits of year) 00 to 06 (00: Sunday; 01: Monday; 02: Tuesday; 03: Wednesday; 04: Thursday; 05: Friday; 06: Saturday)

30-second Compensation Bit AR 2113 is turned ON to round the seconds of the Calendar/clock Area to zero, i.e., if the seconds is 29 or less, it is merely set to 00; if the seconds is 30 or greater, the minutes is incremented by 1 and the seconds is set to 00.

57

Page 71

Section

AR (Auxiliary Relay) Area

3-5

Clock Stop Bit

AR 2114 is turned OFF to enable the operation of the Calendar/clock Area and ON to stop the operation.

Clock Set Bit

AR 2115 is used to set the Calendar/clock Area as described below. This data must be in BCD and must be set within the limits for the Calendar/clock Area given above. 1, 2, 3...

1. Turn ON AR 2114 (Stop Bit). 2. Set the desired date, day, and time, being careful not to turn OFF AR 2114 (Clock Stop Bit) when setting the day of the week (they’re in the same word). (On the Programming Console, the Bit/Digit Monitor and Force Set/Reset Operations are the easiest ways to set this data.) 3. Turn ON AR 2115 (Clock Set Bit). The Calendar/clock will automatically start operating with the designated settings and AR 2114 and AR 2115 will both be turned OFF. The Calendar/clock Area and Bits are refreshed each cycle while operational.

3-5-11 TERMINAL Mode Key Bits If the Programming Console is mounted to the PC and is in TERMINAL mode, any inputs on keys 0 through 9 (including characters A through F, i.e, keys 0 through 5 with SHIFT) will turn ON a corresponding bit in AR 22. TERMINAL mode is entered by a Programming Console operation. The bits in AR 22 correspond to Programming Console inputs as follows: Bit AR 2200 AR 2201 AR 2202 AR 2203 AR 2204 AR 2205 AR 2206 AR 2207 AR 2208 AR 2209 AR 2210 AR 2211 AR 2212 AR 2213 AR 2214 AR 2215

Programming Console input 0 1 2 3 4 5 6 7 8 9 A B C D E F

Refer to Section 7 Program Monitoring and Execution for details on the TERMINAL mode.

3-5-12 Power OFF Counter AR 23 provides in 4-digit BCD the number of times that the PC power has been turned OFF. This counter can be reset as necessary using the PV Change 1 operation from the Programming Console. (Refer to 7-2-4 Hexadecimal/BCD Data Modification for details.) The Power OFF Counter is refreshed every time power is turned ON.

58

Page 72

Section

AR (Auxiliary Relay) Area

3-5

3-5-13 SYSMAC LINK – Programming Device Flags A Programming Device can be used through the SYSMAC LINK System from only one port at a time. When changing the port from which the Programming Device is being used, turn ON the SYSMAC LINK – Programming Device Initialization Bit (AR 2403). Bit

Function

AR 2400 SYSMAC LINK – RS-232C Programming Device Flag (This flag is turned ON when a Programming Device is being used through the SYSMAC LINK System from the RS-232C port.) AR 2401 SYSMAC LINK – Port A Programming Device Flag (This flag is turned ON when a Programming Device is being used through the SYSMAC LINK System from Communications Board port A.) AR 2402 SYSMAC LINK – Port B Programming Device Flag (This flag is turned ON when a Programming Device is being used through the SYSMAC LINK System form Communications Board port B.) AR 2403 SYSMAC LINK – Programming Device Initialization Bit (Turn this bit ON to initialize the usage of a Programming Device through the SYSMAC LINK System.)

3-5-14 Cycle Time Flag AR 2405 turns ON when the cycle time set with SCAN(018) is shorter than the actual cycle time. AR 2405 is refreshed every cycle while the PC is in RUN or MONITOR mode.

3-5-15 Link Unit Mounted Flags The following flags indicate when the specified Link Units are mounted to the Racks. (Refer to 3-5-16 CPU Unit-mounting Device Mounted Flag for CPU Unitmounting Host Link Units.) These flags are refreshed every cycle. Name SYSMAC LINK/SYSMAC NET Link Unit Level 1 Mounted Flag SYSMAC LINK/SYSMAC NET Link Unit Level 0 Mounted Flag Rack-mounting Host Link Unit Level 1 Rack-mounting Host Link Unit Level 0

Bit AR 2408

Link Unit SYSMAC LINK/SYSMAC NET Link Unit in operating level 1

AR 2409

SYSMAC LINK/SYSMAC NET Link Unit in operating level 0

AR 2413 AR 2414

Rack-mounting Host Link Unit in operating level 1 Rack-mounting Host Link Unit in operating level 0

3-5-16 CPU Unit-mounting Device Mounted Flag AR 2415 turns ON when any device is mounted directly to the CPU Unit. This includes CPU Unit-mounting Host Link Units, Programming Consoles, and Interface Units. This flag is refreshed every cycle.

3-5-17 FPD Trigger Bit AR 2508 is used to adjust the monitoring time of FPD(269) automatically. Refer to 5-26-12 FAILURE POINT DETECT – FPD(269) for details.

3-5-18 Data Tracing Flags and Control Bits The following control bits and flags are used during data tracing with TRSM(045). The Tracing Flag will be ON during tracing operations. The Trace Completed Flag will turn ON when enough data has been traced to fill Trace Memory. Bit

Name

AR 2512

Trace Completed Flag

AR 2513

Tracing Flag

AR 2514

Trace Trigger Bit (writeable)

AR 2515

Sampling Start Bit (writeable)

59

Page 73

Section

DM (Data Memory) Area

3-6

Note Refer to 5-26-3 TRACE MEMORY SAMPLING – TRSM(045) for details.

3-5-19 Cycle Time Indicators AR 26 contains the maximum cycle time that has occurred since program execution was begun. AR 27 contains the present cycle time. Both times are to tenths of a millisecond in 4-digit BCD (000.0 ms to 999.9 ms), and are refreshed every cycle.

3-6

DM (Data Memory) Area The DM area is divided into various parts as described in the following table. A portion of UM (up to 3,000 words in 1,000-word increments) can be allocated as Expansion DM. Addresses DM 0000 to DM 0999 DM 1000 to DM 2599 DM 2600 to DM 5999 DM 6000 to DM 6030 DM 6100 to DM 6143 DM 6144 to DM 6599 DM 6600 to DM 6655 DM 7000 to DM 9999

Note

User read/write Read/Write

Read only

Usage Normal DM Special I/O Unit Area1 Normal DM History Log Reserved System Settings PC Setup Expansion DM2

1. The PC Setup can be set so that DM 7000 through DM 8599 are used as the Special I/O Area instead of DM 1000 to DM 2599. Refer to 3-6-5 PC Setup for details. 2. The UM Area Allocation Programming Console operation can be used to allocate up to 3000 words of UM as Expansion DM. Although composed of 16-bit words like any other data area, data in the DM area cannot be specified by bit for use in instructions with bit operands. DM 0000 to DM 6143 can be written to by the program, but DM 6144 to DM 6655 can be overwritten only from a Programming Device, such as a Programming Console or computer running SYSMAC-CPT Support Software. The DM area retains status during power interruptions. DM 6031 cannot be used in user applications because it is used by the system to store EM bank number information and indirect DM addresses.

Indirect Addressing

Normally, when the content of a data area word is specified for an instruction, the instruction is performed directly on the content of that word. For example, suppose MOV(021) is performed with DM 0100 as the first operand and LR 20 as the second operand. When this instruction is executed, the content of DM 0100 is moved to LR 20. Note Expansion DM cannot be used for indirect addressing. It is possible, however, to use indirect DM addresses as the operands for many instructions. To indicate an indirect DM address, is input with the address of the operand. With an indirect address, with content of this operand does not contain the actual data to be used. Instead, it’s contents is assumed to hold the address of another DM word, the content of which will actually be used in the instruction. If 0100 was used in our example above and the content of DM 0100 is 0324, then 0100 actually means that the content of DM 0324 is to

60