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

The text of a manual · part 10 of 68

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

Pages 74 to 82 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 74

Section

DM (Data Memory) Area

3-6 be used as the operand in the instruction, and the content of DM 0324 will be moved to LR 00. MOV(021) 0100 LR 00

Indirect address

Word DM 0099 DM 0100 DM 0101

Content 4C59 0324 F35A

DM 0324 DM 0325 DM 0326

5555 2506 D541

Indicates DM 0324

5555 moved to LR 00.

3-6-1 Expansion DM Area The expansion DM area is designed to provide memory space for storing operating parameters and other operating data for Link Units and Special I/O Units. Up to 3,000 words of UM can be allocated as Expansion DM (in 1K-word increments) using the UM ALLOCATION operation in the Programming Console or SYSMAC-CPT Support Software. Expansion DM area addresses run from DM 7000 to DM 9999. The data in the expansion DM area can be transferred to the Special I/O Unit Default Area (DM 1000 to DM 1999) when starting the PC or via programming instruction to easily change operating parameters, enabling rapid switching between control processes. The expansion DM area can also be used to store parameters for other devices connected in the PC system, e.g., Programmable Terminal character string or numeral tables. The expansion DM area is used to store operating parameters and cannot be used in programming like the normal DM area. Expansion DM can only be overwritten from a Programming Device, retains status during power interruptions, and cannot be used for indirect addressing. The UM area can be allocated as expansion DM area in increments of 1K words. Once expansion DM area has been created, it is saved and transferred as part of the program, i.e., no special procedures are required when saving or transferring the program. UM ALLOCATION Operation

1, 2, 3...

The procedure for the Programming Console’s UM ALLOCATION operation is shown below. Refer to 4-6-3 Clearing Memory for details on the DATA CLEAR and UM ALLOCATION instructions. 1. Clear memory. CLR

SET

NOT

RESET

EXT

MONTR

Note UM allocation is not possible unless memory is cleared first. 2. The expansion DM area can be set to 0, 1, 2, or 3 K words. The following key sequence creates a 2-KW expansion DM area (DM 7000 to DM 8999). CLR

FUN

VER

CHG

2

SET

9

7

1

3

WRITE

Press the 0 Key to eliminate the expansion DM area (0 KW). or Press the 1 Key to allocate DM 7000 to DM 7999 (1 KW). or Press the 2 Key to allocate DM 7000 to DM 8999 (2 KW).

61

Page 75

Section

DM (Data Memory) Area

3-6 or Press the 3 Key to allocate DM 7000 to DM 9999 (3 KW).

3-6-2 Special I/O Unit Data Special I/O Units are allocated 1000 or 1600 words in the DM Area depending on the value set in word DM 6602 of the PC Setup. The DM 6602 setting determines whether the Special I/O Unit Data area is setup for 10 or 16 Units and whether the data is stored in read/write DM (DM 1000 to DM 2599) or read-only DM (DM 7000 to DM 8599). Unit 0 1 2 3 4 5 6 7 8 9 A B C D E F

Addresses DM 1000 to DM 1099 or DM 7000 to DM 7099 DM 1100 to DM 1199 or DM 7100 to DM 7199 DM 1200 to DM 1299 or DM 7200 to DM 7299 DM 1300 to DM 1399 or DM 7300 to DM 7399 DM 1400 to DM 1499 or DM 7400 to DM 7499 DM 1500 to DM 1599 or DM 7500 to DM 7599 DM 1600 to DM 1699 or DM 7600 to DM 7699 DM 1700 to DM 1799 or DM 7700 to DM 7799 DM 1800 to DM 1899 or DM 7800 to DM 7899 DM 1900 to DM 1999 or DM 7900 to DM 7999 DM 2000 to DM 2099 or DM 8000 to DM 8099 DM 2100 to DM 2199 or DM 8100 to DM 8199 DM 2200 to DM 2299 or DM 8200 to DM 8299 DM 2300 to DM 2399 or DM 8300 to DM 8399 DM 2400 to DM 2499 or DM 8400 to DM 8499 DM 2500 to DM 2599 or DM 8500 to DM 8599

Note These DM words can be used for other purposes when not allocated to Special I/O Units.

3-6-3 Special I/O Units The following table shows the Special I/O Units that can be used and the unit numbers that can be used for each. Name High-density I/O Units (see note)

DC Input Units Transistor Output Units DC Input/Transistor Output Units

Analog I/O Units

Analog Input Units

Analog Output Units

Mixed Analog I/O Unit

62

Model number

Unit number range

C200H-ID501 C200H-ID215 C200H-OD215 C200H-OD501 C200H-MD215 C200H-MD501 C200H-MD115 C200H-AD001 C200H-AD002

0 to 9

C200H-AD003 C200H-DA001

0 to F (See note 2) 0 to 9

C200H-DA002 C200H-DA003 C200H-DA004 C200H-MAD01

0 to F (See note 1) 0 to F (See note 2) 0 to F (See note 2) 0 to F (See note 2)

0 to 9 0 to F (See note 1)

Page 76

Section

DM (Data Memory) Area Name PID Control Units

Temperature Sensor Units

Temperature Control Units

Heat/Cool Temperature Control Units

High-speed Counter Units

Position Control Units

Note

Model number C200H-PID01 C200H-PID02 C200H-PID03 C200H-TS001 C200H-TS002 C200H-TS101 C200H-TS102 C200H-TC001 C200H-TC002 C200H-TC003 C200H-TC101 C200H-TC102 C200H-TC103 C200H-TV001 C200H-TV002 C200H-TV003 C200H-TV101 C200H-TV102 C200H-TV103 C200H-CT001-V1 C200H-CT002 C200H-CT021 C200H-NC111 C200H-NC112 C200H-NC211

Motion Control Unit Cam Positioner Unit Data Setting Console ASCII Unit

C200H-MC221 C200H-CP114 C200H-DSC01 C200H-ASC02

Fuzzy Logic Unit Voice Unit ID Sensor Units

C200H-FZ001 C200H-OV001 C200H-IDS01-V1 C200H-IDS21

3-6

Unit number range 0 to 9

0 to 9 0 to F (See note 4) 0 to 9 0 to 8, A to E (See note 3) 0 to 8, A to E 0 to 9

1. Unit numbers A to F can be set for these Units only for C200HXCPU54/CPU64-ZE or C200HG-CPU53/63-ZE CPU Units manufactured in or after January 1996 (manufacturing number **16). Only unit number 0 to 9 can be set for other CPU Units. 2. Unit numbers A to F can be set for these Units only for or CPU Units. Only unit number 0 to 9 can be set for other CPU Units. 3. Unit numbers A to E can be set for these Units only for C200HXCPU54/CPU64-ZE or C200HG-CPU53/63-ZE CPU Units manufactured in or after December 1995 (manufacturing number **16). Only unit number 0 to 9 can be set for other CPU Units. 4. Unit numbers 0 to F can be set for the C200HX/HG/HE. 5. Unit numbers must also be set for PC Link Units and PC Link Units are counted as Special I/O Units, but no words are allocated to them.

63

Page 77

Section

DM (Data Memory) Area

3-6

6. High-speed Counter Units, Position Control Unit, and Analog I/O Units are allocated words in the DM Area. No other Units are allocated words in the DM Area. 7. The C200H-NC221 and C200H-MC221 are allocated the words for two Special I/O Units (i.e., for two unit numbers).

3-6-4 Error History Area DM 6000 to DM 6030 are used to store up to 10 records that show the nature, time, and date of errors that have occurred in the PC. The Error History Area will store system-generated or FAL(006)/FALS(007)generated error codes whenever AR 0715 (Error History Enable Bit) is ON. Refer to Section 9 Troubleshooting for details on error codes. Area Structure

Error records occupy three words each stored between DM 6001 and DM 6030. The last record that was stored can be obtained via the content of DM 6000 (Error Record Pointer). The record number, DM words, and pointer value for each of the ten records are as follows: Record

Addresses

Pointer value

None

N.A.

0000

1

DM 6001 to DM 6003

0001

2

DM 6004 to DM 6006

0002

3

DM 6007 to DM 6009

0003

4

DM 6010 to DM 6012

0004

5

DM 6013 to DM 6015

0005

6

DM 6016 to DM 6018

0006

7

DM 6019 to DM 6021

0007

8

DM 6022 to DM 6024

0008

9

DM 6025 to DM 6027

0009

10

DM 6028 to DM 6030

000A

Although each of them contains a different record, the structure of each record is the same: the first word contains the error code; the second and third words, the day and time. The error code will be either one generated by the system or by FAL(006)/FALS(007); the time and date will be the date and time from AR 18 and AR 19 (Calender/date Area). Also recorded with the error code is an indication of whether the error is fatal (08) or non-fatal (00). This structure is shown below. Word First Second Third

64

Bit

Content

00 to 07

Error code

08 to 15

00 (non-fatal) or 80 (fatal)

00 to 07

Seconds

08 to 15

Minutes

00 to 07

Hours

08 to 15

Day of month

Page 78

Section

DM (Data Memory) Area

3-6

The following table lists the possible error codes and corresponding errors. Error severity Fatal errors

Non-fatal errors

Operation

Error code

Error

00 01 to 99 or 9F C0 to C3 E0 E1 F0 F1 01 to 99

Power interruption System error (FALS) I/O bus error Input-output I/O table error Too many Units No END(001) instruction Memory error System error (FAL)

8A

Interrupt Input error

8B

Interrupt program error

9A

Group 2 High-density I/O error

9B

PC Setup error

9C

Communications Board error

9D

UM Memory Cassette transfer error

B0 to B1

Remote I/O error

D0

Special I/O error

E7

I/O table verification error

F7

Battery error

F8

Cycle time overrun

When the first error code is generated with AR 0715 (Error History Enable Bit) turned ON, the relevant data will be placed in the error record after the one indicated by the History Record Pointer (initially this will be record 1) and the Pointer will be incremented. Any other error codes generated thereafter will be placed in consecutive records until the last one is used. Processing of further error records is based on the status of AR 0713 (Error History Overwrite Bit). If AR 0713 is ON and the Pointer contains 000A, the next error will be written into record 10, the contents of record 10 will be moved to record 9, and so on until the contents of record 1 is moved off the end and lost, i.e., the area functions like a shift register. The Record Pointer will remain set to 000A. If AR 0713 is OFF and the Pointer reaches 000A, the contents of the Error History Error will remain as it is and any error codes generate thereafter will not be recorded until AR 0713 is turned OFF or until the Error History Area is reset. The Error History Area can be reset by turning ON and then OFF AR 0714 (Error History Reset Bit). When this is done, the Record Pointer will be reset to 0000, the Error History Area will be reset (i.e., cleared), and any further error codes will be recorded from the beginning of the Error History Area. AR 0715 (Error History Enable Bit) must be ON to reset the Error History Area.

3-6-5 PC Setup The PC Setup (DM 6600 through DM 6655) contains settings that determine PC operation. Data in the PC Setup can be changed with a Programming Console or SYSMAC-CPT Support Software if UM is not write-protected by pin 1 of the CPU Unit’s DIP switch. Refer to page 23 for details on changing DIP switch pin settings. The data in DM 6600 through DM 6634 can be set or changed only when the PC is in PROGRAM mode. The data in DM 6635 through DM 6655 can be set or changed when the PC is in PROGRAM or MONITOR mode. The following words can be changed from the SYSMAC Support Software’s PC Setup menu. (The PC must be in PROGRAM mode.) 1, 2, 3...

1. Startup mode (DM 6600)

65

Page 79

Section

DM (Data Memory) Area

3-6

2. Startup mode designation (DM 6601) 3. Cycle monitor time (DM 6618) 4. Cycle time setting (DM 6619) 5. RS-232C Port Settings (DM 6645 through DM 6649) The PC can be operated with the default PC Setup, which requires changing only when customizing the PC’s operating environment to application needs. The PC Setup parameters are described in the following table. If there is an error in the settings in DM 6600 to DM 6655, a non-fatal error (error code 9B) will occur when the data is read by the PC and one of the flags from SR 27500 to SR 27502 will turn ON to indicate the location of the error. If there is an error in the settings in DM 6550 to DM 6559, a non-fatal error (error code 9C) will occur. Word(s)

Bit(s)

Function

Default

Startup Processing (DM 6600 to DM 6612) The following settings are accessed only once when the PC is turned ON. DM 6600 00 to 07 Startup mode (effective when bits 08 to 15 are set to 02). 00: PROGRAM; 01: MONITOR 02: RUN 08 to 15 Startup mode designation 00: Programming Console switch 01: Continue operating mode last used before power was turned OFF 02: Setting in 00 to 07 DM 6601 00 to 07 Reserved 08 to 11 IOM Hold Bit (SR 25212) Status 0: Reset; 1: Maintain 12 to 15 Forced Status Hold Bit (SR 25211) Status 0: Reset; 1: Maintain

66

PROGRAM Programming Console switch

--Reset

Page 80

Section

DM (Data Memory) Area Word(s) DM 6602

Bit(s) 00 to 07 08 to 15

Function Not used. Special I/O Unit Area (See 3-4-8 Special I/O Unit Area Settings for details.) 00: C200H-compatible RAM Mode (Default) Use DM 1000 through DM 2599 for the Special I/O Unit Area. • Data in the Special I/O Unit Area can be read/written.

3-6

Default --DM 1000 to DM 2599

• The data cannot be converted to ROM. 01: C200H-compatible ROM Mode 1 Transfer the contents of DM 7000 through DM 7999 to DM 1000 through DM 1999 at startup and use DM 1000 through DM 1999. • The UM Area Allocation operation must be performed beforehand. • The data is compatible with C200H applications that use EEPROM/ EPROM. • ROM conversion is possible indirectly by writing DM 7000 through DM 7999 to ROM. 02: DM Linear Mode 1 Use DM 7000 through DM 7999 for the Special I/O Unit Area. • The UM Area Allocation operation must be performed beforehand. • DM 1000 through DM 1999 can be used as regular DM. • DM 7000 through DM 7999 can be converted to ROM. 11: C200H-compatible ROM Mode 2 Transfer the contents of DM 7000 through DM 8599 to DM 1000 through DM 2599 at startup and use DM 1000 through DM 2599. • The UM Area Allocation operation must be performed beforehand. • ROM conversion is possible indirectly by converting DM 7000 through DM 8599 to ROM. 12: DM Linear Mode 2 Use DM 7000 through DM 8599 for the Special I/O Unit Area. • The UM Area Allocation operation must be performed beforehand. • DM 1000 through DM 2599 can be used as regular DM. • DM 7000 through DM 8599 can be converted to ROM. See also 3-6-7 Special I/O Unit Area Settings. DM 6603 to DM 6604 DM 6605

00 to 15

Not used.

---

00 to 07

Momentary power interruption time (0 to 10 ms) Set the momentary power interruption time from 00 to 10 in BCD. Not used. Not used.

0 ms

08 to 15 00 to 15

DM 6606 to DM 6612 Communications and Cycle Time Settings (DM 6613 to DM 6619)

The following settings are accessed only once when program execution begins. DM 6613 00 to 07 Servicing time for Communications Board port B (effective when bits 08 to 15 are set to 01) 00 to 99 (BCD): Percentage of cycle time used to service port B. 08 to 15

-----

No setting (0000)

Minimum: 0.26 ms; maximum 58.254 ms Communications Board port B servicing setting enable 00: Do not set service time (Fixed at 5%, 0.26 ms min.) 01: Use time in 00 to 07. Service time is 10 ms when operation is stopped, regardless of this setting.

67

Page 81

DM (Data Memory) Area Word(s) DM 6614

Bit(s) 00 to 07

08 to 15

Function Servicing time for Communications Board port A (effective when bits 08 to 15 are set to 01) 00 to 99 (BCD): Percentage of cycle time used to service port A.

Section Default No setting (0000)

Minimum: 0.26 ms; maximum 58.254 ms Communications Board port A servicing setting enable 00: Do not set service time (Fixed at 5%, 0.26 ms min.) 01: Use time in 00 to 07. Service time is 10 ms when operation is stopped, regardless of this setting.

DM 6615

00 to 15

Reserved

---

DM 6616

00 to 07

Servicing time for RS-232C port (effective when bits 08 to 15 are set to 01) 00 to 99 (BCD): Percentage of cycle time used to service RS-232C port.

No setting (0000)

Minimum: 0.26 ms; maximum 58.254 ms 08 to 15

(RS-232C port servicing setting enable) 00: Do not set service time (Fixed at 5%, 0.26 ms min.) 01: Use time in 00 to 07. Service time is 10 ms when operation is stopped, regardless of this setting.

DM 6617

00 to 07

Servicing time for peripheral port (effective when bits 08 to 15 are set to 01) 00 to 99 (BCD): Percentage of cycle time used to service peripheral.

No setting (0000)

Minimum: 0.26 ms; maximum 58.254 ms 08 to 15

Peripheral port servicing setting enable 00: Do not set service time (Fixed at 5%, 0.26 ms min.) 01: Use time in 00 to 07. Service time is 10 ms when operation is stopped, regardless of this setting.

DM 6618

00 to 07 08 to 15

DM 6619

00 to 15

Cycle monitor time (effective when bits 08 to 15 are set to 01, 02, or 03) 00 to 99 (BCD) × setting unit (see 08 to 15) Cycle monitor enable (Setting in 00 to 07 × setting unit; 99 s max.) 00: 120 ms (setting in bits 00 to 07 disabled) 01: Setting unit: 10 ms 02: Setting unit: 100 ms 03: Setting unit: 1 s

00

Cycle time 0000: Variable (no minimum) 0001 to 9999 (BCD): Minimum time in ms

Variable

00: 120 ms

Interrupt/Refresh Processing (DM 6620 to DM 6623) The following settings are accessed only once when program execution begins. DM 6620

00 to 09

10 to 11 12 to 15

68

Special I/O Unit cyclic refresh (Bit number corresponds to unit number, PC Link Units included) 0: Enable cyclic refresh and I/O REFRESH (IORF(097)) from main program 1: Disable (refresh only for I/O REFRESH from interrupt programs)

Enable

A setting of 01 (Disable) is valid only when the interrupt response is set to high-speed response mode. It is not valid for normal interrupt response or for Special I/O Units mounted in Slave Racks. Reserved --Interrupt response Normal 0:

Normal (C200H compatible) Interrupts cannot be received when Host Link servicing, execution of a single instruction, Remote I/O processing, or Special I/O processing is being performed. The interrupt subroutine will be executed after the processing is completed.

1:

High-speed Response (C200HS or C200HX/HG/HE) Interrupts will be received when Host Link servicing, execution of a single instruction, Remote I/O processing, or Special I/O processing is being performed. If there is an interrupt input, the current processing will be interrupted and the interrupt subroutine will be executed.

3-6

Page 82

Section

DM (Data Memory) Area Word(s) DM 6621

Bit(s) 00 to 07 08 to 15

Function

3-6

Default

Reserved Special I/O Unit refresh (PC Link Units included) 00: Enable refresh for all Special I/O Units 01: Disable refresh for all Special I/O Units (but, not valid on Slave Racks)

--Enable

A setting of 1 (Disable) is not valid for Special I/O Units mounted in Slave Racks. DM 6622

DM 6623

00 to 07

Scheduled interrupt time unit 00: 10 ms 01: 1 ms

10 ms (0000)

08 to 15

Scheduled interrupt time unit enable 00: Disable (10 ms) 01: Enable setting in 00 to 07

00 to 15

Special I/O Unit cyclic refresh (PC Link Units included) (Bit numbers 00 to 15 correspond to unit numbers 0 to F.) 0: Enable cyclic refresh and I/O REFRESH (IORF(097)) from main program 1: Disable (refresh only for I/O REFRESH from interrupt programs)

Enable

A setting of 01 (Disable) is valid only when the interrupt response is set to high-speed response mode. It is not valid for normal interrupt response or for Special I/O Units mounted in Slave Racks. Reserved ---

DM 6624 to 00 to 15 DM 6644 RS-232C Port Settings (DM 6645 to DM 6649)

The following settings are accessed continually while the PC is ON. DM 6645 00 to 03 Port settings 0:

04 to 07

Standard

Standard (Host Link or peripheral bus serial communications mode, 1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps)

1: Settings in DM 6646 CTS control setting

Disable

0: Disable CTS control 1: Enable CTS control 08 to 11

12 to 15

DM 6646

00 to 07 08 to 15

DM 6647

00 to 15

Words linked for 1:1 PC Link 0: LR 00 to LR 63; 1: LR 00 to LR 31; 2: LR 00 to LR 15 Maximum PT node number for 1:N NT Link 1 to 7 BCD (1 to 3 with a PC) Serial communications mode 0: Host link; 1: RS-232C; 2: 1-to-1 PC Link Slave; 3: 1-to-1 PC Link Master; 4: 1:1 NT link; 5: 1:N NT link Baud rate 00: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2K Frame format Start Length Stop 00: 1 bit 7 bits 1 bit 01: 1 bit 7 bits 1 bit 02: 1 bit 7 bits 1 bit 03: 1 bit 7 bits 2 bit 04: 1 bit 7 bits 2 bit 05: 1 bit 7 bits 2 bit 06: 1 bit 8 bits 1 bit 07: 1 bit 8 bits 1 bit 08: 1 bit 8 bits 1 bit 09: 1 bit 8 bits 2 bit 10: 1 bit 8 bits 2 bit 11: 1 bit 8 bits 2 bit Transmission delay 0000 to 9999: BCD in 10-ms units.

LR 00 to LR 63

Host Link

1.2 K

Parity Even Odd None Even Odd None Even Odd None Even Odd None

1 start bit, 7-bit data, 1 stop bit, even parity

0 ms

69