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

The text of a manual · part 54 of 60

SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: Appendix C Memory Areas, pages 477 to 485

Pages 477 to 485 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 477

Appendix C

Memory Areas

5. The contents of the HR area, LR area, Counter area, and read/write DM area are backed up by a capacitor. The backup time varies with the ambient temperature, but at the capacitor will back up memory for 20 days. If the power supply is off longer than the backup time, memory contents will be cleared and AR1314 will turn ON. (This flag turns ON when data can no longer be retained by the built-in capacitor.) Refer to 2-1-2 Characteristics in the CPM1 Operation Manual for a graph showing the backup time vs. temperature.

SR Area These bits mainly serve as flags related to CPM1/CPM1A operation or contain present and set values for various functions. The functions of the SR area are explained in the following table. Word(s)

Bit(s)

SR 232 to SR 235

00 to 15

Macro Function Input Area Contains the input operands for MCRO(99). (Can be used as work bits when MCRO(99) is not used.)

SR 236 to SR 239

00 to 15

Macro Function Output Area Contains the output operands for MCRO(99). (Can be used as work bits when MCRO(99) is not used.)

SR 240

00 to 15

Input Interrupt 0 Counter Mode SV SV when input interrupt 0 is used in counter mode (4 digits hexadecimal). (Can be used as work bits when input interrupt 0 is not used in counter mode.)

SR 241

00 to 15

Input Interrupt 1 Counter Mode SV SV when input interrupt 1 is used in counter mode (4 digits hexadecimal). (Can be used as work bits when input interrupt 1 is not used in counter mode.)

SR 242

00 to 15

Input Interrupt 2 Counter Mode SV SV when input interrupt 2 is used in counter mode (4 digits hexadecimal). (Can be used as work bits when input interrupt 2 is not used in counter mode.)

SR 243

00 to 15

Input Interrupt 3 Counter Mode SV SV when input interrupt 3 is used in counter mode (4 digits hexadecimal). (Can be used as work bits when input interrupt 3 is not used in counter mode.)

SR 244

00 to 15

SR 245

00 to 15

SR 246

00 to 15

SR 247

00 to 15

SR 248, SR 249 SR 250

00 to 15

SR 251

00 to 15

Input Interrupt 0 Counter Mode PV Minus One Counter PV–1 when input interrupt 0 is used in counter mode (4 digits hexadecimal). Input Interrupt 1 Counter Mode PV Minus One Counter PV–1 when input interrupt 1 is used in counter mode (4 digits hexadecimal). Input Interrupt 2 Counter Mode PV Minus One Counter PV–1 when input interrupt 2 is used in counter mode (4 digits hexadecimal). Input Interrupt 3 Counter Mode PV Minus One Counter PV–1 when input interrupt 3 is used in counter mode (4 digits hexadecimal). High-speed Counter PV Area (Can be used as work bits when the high-speed counter is not used.) Analog Volume Setting 0 Used to store the 4-digit BCD set value (0000 to 0200) from analog volume control 0. Analog Volume Setting 1 Used to store the 4-digit BCD set value (0000 to 0200) from analog volume control 1.

460

00 to 15

Function

Page 128

42

42

48 129

Page 478

Appendix C

Memory Areas Word(s) SR 252

Bit(s)

Function

00 01 to 07 08

High-speed Counter Reset Bit Not used. Peripheral Port Reset Bit Turn ON to reset peripheral port. (Not valid when peripheral device is connected.) Automatically turns OFF when reset is complete.

09 10

Not used. PC Setup Reset Bit Turn ON to initialize PC Setup (DM 6600 through DM 6655). Automatically turns OFF again when reset is complete. Only effective if the PC is in PROGRAM mode.

11

Forced Status Hold Bit (See note.) OFF: The forced status of bits that are forced set/reset is cleared when switching between PROGRAM mode and MONITOR mode. ON: The status of bits that are forced set/reset are maintained when switching between PROGRAM mode and MONITOR mode. The status of this bit can be maintained when PC power turns off by using the PC Setup. I/O Hold Bit (See note.) OFF: IR and LR bits are reset when starting or stopping operation. ON: IR and LR bit status is maintained when starting or stopping operation. The status of this bit can be maintained when PC power turns off by using the PC Setup. Not used. Error Log Reset Bit Turn ON to clear error log. Automatically turns OFF again when operation is complete. Not used. FAL Error Code The error code (a 2-digit number) is stored here when an error occurs. The FAL number is stored here when FAL(06) or FALS(07) is executed. This word is reset (to 00) by executing a FAL 00 instruction or by clearing the error from a Peripheral Device. Not used. Cycle Time Overrun Flag Turns ON when a cycle time overrun occurs (i.e., when the cycle time exceeds 100 ms). Not used. Always ON Flag Always OFF Flag First Cycle Flag Turns ON for 1 cycle at the start of operation. 1-minute clock pulse (30 seconds ON; 30 seconds OFF) 0.02-second clock pulse (0.01 second ON; 0.01 second OFF) Negative (N) Flag Not used. Differential Monitor Complete Flag Turns ON when differential monitoring is complete. STEP(08) Execution Flag Turns ON for 1 cycle only at the start of process based on STEP(08). Not used.

12

13 14

SR 253

15 00 to 07

08 09 10 to 12 13 14 15 SR 254

00 01 02 03 to 05 06 07 08 to 15

Page 48 92

3

17

17

431

205

---

------------134 206

461

Page 479

Appendix C

Memory Areas Word(s) SR 255

Bit(s) 00 01 02 03 04 05 06

07 08 to 15

Function

Page

0.1-second clock pulse (0.05 second ON; 0.05 second OFF) 0.2-second clock pulse (0.1 second ON; 0.1 second OFF) 1.0-second clock pulse (0.5 second ON; 0.5 second OFF) Instruction Execution Error (ER) Flag Turns ON when an error occurs during execution of an instruction. Carry (CY) Flag Turns ON when there is a carry in the results of an instruction execution. Greater Than (GR) Flag Turns ON when the result of a comparison operation is “greater.” Equals (EQ) Flag Turns ON when the result of a comparison operation is “equal,” or when the result of an instruction execution is 0.

---------

Less Than (LE) Flag Turns ON when the result of a comparison operation is “less.” Not used.

---

-------

Note DM 6601 in the PC Setup can be set to maintain the previous status of the I/O Hold Bit (SR 25212) and the I/O Hold Bit (SR 25212) when power is turned off. If power is left OFF for longer than the backup time, however, status may be cleared. For details regarding the backup time, refer to the CPM1A or CPM1 Operation Manual. Refer to 1-1-3 CPM1/CPM1A PC Setup Settings for details on the PC Setup.

AR Area These bits mainly serve as flags related to CPM1/CPM1A operation. These bits retain their status even after the CPM1/CPM1A power supply has been turned off or when operation begins or stops. Word(s)

Bit(s)

AR 00, AR 01 AR 02

00 to 15

Not used.

00 to 07 08 to 11 12 to 15 00 to 15

Not used. Number of I/O Units Connected Not used. Not used.

00 to 07 08 to 11

Not used. Peripheral Device Error Code 0: Normal completion 1: Parity error 2: Frame error 3: Overrun error

AR 09

12 13 to 15 00 to 15

Peripheral Device Error Flag Not used. Not used.

AR 10

00 to 15

Power-off Counter (4 digits BCD) This is the count of the number of times that the power has been turned off. To clear the count, write “0000” from a peripheral device.

---

AR 11

00 to 07

High-speed Counter Range Comparison Flags 00 ON: Counter PV is within comparison range 1 01 ON: Counter PV is within comparison range 2 02 ON: Counter PV is within comparison range 3 03 ON: Counter PV is within comparison range 4 04 ON: Counter PV is within comparison range 5 05 ON: Counter PV is within comparison range 6 06 ON: Counter PV is within comparison range 7 07 ON: Counter PV is within comparison range 8 Not used. Pulse Output Status ON: Stopped. OFF: Pulses being output.

51

AR 03 to AR 07 AR 08

08 to 14 15

462

Function

Page

---

99

---

Page 480

Appendix C

Memory Areas Word(s) AR 12 AR 13

Bit(s)

Function

Page

00 to 15

Not used.

00

3 Power-up PC Setup Error Flag Turns ON when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area that is read at power-up).

01

Start-up PC Setup Error Flag Turns ON when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area that is read at the beginning of operation).

02

RUN PC Setup Error Flag Turns ON when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area that is always read).

03, 04 05

Not used. Long Cycle Time Flag Turns ON if the actual cycle time is longer than the cycle time set in DM 6619. Not used. Memory Area Specification Error Flag Turns ON when a non-existent data area address is specified in the program. Flash Memory Error Flag Turns ON when there is an error in flash memory. Read-only DM Error Flag (See note 3.) Turns ON when a checksum error occurs in the read-only DM (DM 6144 to DM 6599) and that area is initialized.

06, 07 08 09 10

11 12

13 14

PC Setup Error Flag Turns ON when a checksum error occurs in the PC Setup area. Program Error Flag Turns ON when a checksum error occurs in the program memory (UM) area, or when an improper instruction is executed. Not used. Data Save Error Flag Turns ON when power is turned on if data could not be saved with the built-in capacitor. Data is saved in the following areas with the built-in capacitor: DM area (Read/write-capable: DM 0000 to 0999 and DM 1022 to 1023) HR area (HR 00 to 19) Counter area (CNT 000 to 127) SR area, word 252, bits 11, 12 (when PC Setup in DM 6601 is set to maintain status) AR area, word 10 (power-off counter) Operation mode (when PC Setup in DM 6600 is set to continue mode last used before power failure)

---

----3

---

---

If data could not be saved in the above areas: The DM, error log, HR, counter, SR (word 252, bits 11 and 12), and AR (word 10) areas will be cleared. The operation mode will go into Program Mode. (For details regarding the holding time, refer to the CPM1A Operation Manual.) AR 14

AR 15

15 00 to 15

00 to 15

Not used. Maximum Cycle Time (4 digits BCD) (See note 1.) The longest cycle time since the beginning of operation is stored. It is cleared at the beginning, and not at the end, of operation.

21

The units can be any of the following, depending on the setting of in DM 6618. Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 ms Current Cycle Time (4 digits BCD) (See note 1.) The most recent cycle time during operation is stored. The Current Cycle Time is not cleared when operation stops. The units can be any of the following, depending on the setting of in DM 6618. Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 ms

Note 1. The units will be as follows, depending on the unit setting for the cycle monitor time (DM 6618): Initial status: 0.1-ms unit When 10-ms unit is set: 0.1-ms unit When 100-ms unit is set: 1-ms unit When 1-s unit is set: 10-ms unit

463

Page 481

Appendix C

Memory Areas

2. Areas that cannot be used are cleared when the power is turned on. 3. The contents of AR 10 is backed up by the built-in capacitor. If power is left OFF for longer than the backup time, however, the contents may be cleared. For details regarding the backup time, refer to the CPM1A or CPM1 Operation Manual.

SRM1 Memory Areas Memory Area Structure The following memory areas can be used with the SRM1. Data area IR area1 Input area

Output area

Work area

Words

Bits

IR 000 to IR 009 (10 words)

IR 00000 to IR 00915 (160 bits)

IR 010 to IR 019 (10 words)

IR 01000 to IR 01915 (160 bits)

IR 200 to IR 239 (40 words)

IR 20000 to IR 23315 (640 bits)

Any I/O bits not used for I/O can be used as work bits.

Work bits can be freely used within the program. IR 232 to IR 239 however, cannot be used as the the MACRO input area for the MACRO instruction. SR 24000 to SR 25507 These bits serve as storage space for flags (248 bits) and function set values/present values for SRM1 operation. Refer to SR Area.

SR area

SR 240 to SR 255 (16 words)

TR area

---

TR 0 to TR 7 (8 bits)

HR area2

HR 00 to HR 19 (20 words)

HR 0000 to HR 1915 (320 bits)

AR area2

AR 00 to AR 15 (16 words)

AR 0000 to AR 1515 (256 bits)

LR area1

LR 00 to LR 15 LR 0000 to LR 1515 (16 words) (256 bits) TC 000 to TC 127 (timer/counter numbers)3

Timer/Counter area2

Function These bits can be allocated to the external I/O terminals. The ON/OFF status of the I/O bits will be the same as the ON/OFF status of the I/O terminals

When a complicated ladder diagram cannot be recorded as a mnemonic these bits are used to temporarily store ON/OFF status at program branches. These temporary bits cannot be used within the same block but if the blocks are different several may be used. The ON/OFF status of these bits cannot be monitored using the monitoring function of a peripheral device. These bits store data and retain their ON/ OFF status when power is turned off, or operation starts or stops. They are used in the same way as work bits. These bits serve specific functions such as flags and control bits. AR 04 to 07 are used as slaves. Refer to AR Area. Used for a 1:1 data link with another SRM1, CQM1 or C200HS PC. Timers and counter use the TIM, TIMH(15), CNT and CNTR(12) instructions. The same numbers are used for both timers and counters. Timer/counter numbers should be specified as bits when dealing with timer/counter present values. The counter data will be stored even when the SRM1 power is turned off or operation is stopped or started. When timer/counter are treated as up-flags the number should be specified as relay data.

464

Page 482

Appendix C

Memory Areas Data area DM area Read/write2

Words DM 0000 to DM 1999 --(2,000 words)

Error log4

DM 2000 to DM 2021 --(22 words)

Read-only4

DM 6144 to DM 6599 --(456 words) DM 6600 to DM 6655 --(56 words)

PC Setup4

Bits

Function DM area data can be accessed in word units only. Word values are retained when the power is turned off, or operation started or stopped. Read/write areas can be read and written freely within the program. Used to store the time of occurrence and error code of errors that occur. Refer to 5-5 Coding Right-hand Instructions. Cannot be overwritten from program. Used to store various parameters that control PC operation.

Note 1. IR and LR bits that are not used for their allocated functions can be used as work bits. 2. The contents of the HR area, LR area, Counter area, and read/write DM area are backed up by a capacitor. At the capacitor will back up memory for 20 days. Refer to 2-1-2 Characteristics in the SRM1 Master Control Unit Operation Manual for a graph showing the backup time vs. temperature. 3. When accessing a PV, TC numbers are used as word data; when accessing Completion Flags, they are used as bit data. 4. Data in DM 6144 to DM 6655 cannot be overwritten from the program, but they can be changed from a Peripheral Device.

SR Area These bits mainly serve as flags related to SRM1 operation or contain present and set values for various functions. The functions of the SR area are explained in the following table. Word(s)

Bit(s)

SR 240 to SR247

00 to 15

Not used. Can be used as work bits.

SR 248, SR249 SR 250, SR251 SR 252

00 to 15

Reserved.

00 to 15

Not used. Can be used as work bits. Not used. (system use) Not used. Peripheral Port Reset Bit Turn ON to reset peripheral port. (Not valid when peripheral device is connected.) Automatically turns OFF when reset is complete.

00 01 to 07 08

09 10

Function

RS-232C Port Reset Bit Automatically turns OFF when reset is complete. PC Setup Reset Bit Turn ON to initialize PC Setup (DM 6600 through DM 6655). Automatically turns OFF again when reset is complete. Only effective if the PC is in PROGRAM mode.

Page

92

3

11

Forced Status Hold Bit OFF: The forced status of bits that are forced set/reset is cleared when switching between PROGRAM mode and MONITOR mode. ON: The status of bits that are forced set/reset are maintained when switching between PROGRAM mode and MONITOR mode.

17

12

I/O Hold Bit OFF: IR and LR bits are reset when starting or stopping operation. ON: IR and LR bit status is maintained when starting or stopping operation.

17

13 14

Not used. Error Log Reset Bit Turn ON to clear error log. Automatically turns OFF again when operation is complete. Not used.

15

431

465

Page 483

Appendix C

Memory Areas Word(s) SR 253

Bit(s)

Function

00 to 07

FAL Error Code The error code (a 2-digit number) is stored here when an error occurs. The FAL number is stored here when FAL(06) or FALS(07) is executed. This word is reset (to 00) by executing a FAL 00 instruction or by clearing the error from a Peripheral Device. Not used. Cycle Time Overrun Flag Turns ON when a cycle time overrun occurs. Not used. RS-232C Port Set Bit Turn ON to set RS-232C port. Turn OFF when reset is complete.

205

Always ON Flag Always OFF Flag First Cycle Flag Turns ON for 1 cycle at the start of operation. 1-minute clock pulse (30 seconds ON; 30 seconds OFF) 0.02-second clock pulse (0.01 second ON; 0.01 second OFF) Negative (N) Flag Not used. Overflow Flag Underflow Flag Differential Monitor Complete Flag Turns ON when differential monitoring is complete. STEP(08) Execution Flag Turns ON for 1 cycle only at the start of process based on STEP(08). Not used. 0.1-second clock pulse (0.05 second ON; 0.05 second OFF) 0.2-second clock pulse (0.1 second ON; 0.1 second OFF) 1.0-second clock pulse (0.5 second ON; 0.5 second OFF) Instruction Execution Error (ER) Flag Turns ON when an error occurs during execution of an instruction. Carry (CY) Flag Turns ON when there is a carry in the results of an instruction execution. Greater Than (GR) Flag Turns ON when the result of a comparison operation is “greater.” Equals (EQ) Flag Turns ON when the result of a comparison operation is “equal,” or when the result of an instruction execution is 0.

-------

Less Than (LE) Flag Turns ON when the result of a comparison operation is “less.” Not used.

---

08 09 10 to 11 12

13 14 15 SR 254

00 01 02 03 04 05 06 07

SR 255

08 to 15 00 01 02 03 04 05 06

07 08 to 15

Page

---

----------134 206

---------------

AR Area These bits mainly serve as flags related to SRM1 operation. These bits retain their status even after the SRM1 power supply has been turned off or when operation begins or stops. Word(s)

Bit(s)

AR 00, AR 01 AR 02

00 to 15

Not used.

00 to 07 08 to 11 12 to 15 00 to 15

Not used. Not used. (system use) Not used. Not used.

00 to 15

Slave Status Flag

AR 03 AR 04 to AR 07

466

Function

Page

---

Page 484

Appendix C

Memory Areas Word(s) AR 08

Bit(s)

Function

Page

00 to 03

RS-232C Error Code (1-digit number) 0: Normal completion 1: Parity error 2: Framing error 3: Overrun error

---

04 05

RS-232C Communications Error RS-232C Transmission Enabled Flag Valid only when host link, no protocol communications are used. RS-232C Reception Completed Flag Valid only when no protocol communications are used. RS-232C Reception Overflow Flag Valid only when no protocol communications are used. Peripheral Device Error Code 0: Normal completion 1: Parity error 2: Frame error 3: Overrun error

-----

06 07 08 to 11

12 13 14 15 AR 09

00 to 15

AR 10

00 to 15

AR 11

00 to 15

AR 12 AR 13

00 to 15

Peripheral Device Error Flag Peripheral Device Transmission Enabled Flag Valid only when host link, no protocol communications are used. Peripheral Device Reception Completed Flag Valid only when no protocol communications are used. Peripheral Device Reception Overflow Flag Valid only when no protocol communications are used. RS-232C Reception Counter (4 digits BCD) Valid only when no protocol communications are used. Peripheral Device Reception Counter (4 digits BCD) Valid only when no protocol communications are used. 4 digits BCD Power supply cut frequency. Not used.

----99

-------------

00

3 Power-up PC Setup Error Flag Turns ON when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area that is read at power-up).

01

Start-up PC Setup Error Flag Turns ON when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area that is read at the beginning of operation).

02

RUN PC Setup Error Flag Turns ON when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area that is always read).

03, 04 05

Not used. Long Cycle Time Flag Turns ON if the actual cycle time is longer than the cycle time set in DM 6619. Turns ON when the program memory (UM) area is full. Turns ON when instructions other than those in the support software area used. Memory Area Specification Error Flag Turns ON when a non-existent data area address is specified in the program. Flash Memory Error Flag Turns ON when there is an error in flash memory. Read-only DM Error Flag Turns ON when a checksum error occurs in the read-only DM (DM 6144 to DM 6599) and that area is initialized.

06 07 08 09 10

11 12

PC Setup Error Flag Turns ON when a checksum error occurs in the PC Setup area. Program Error Flag Turns ON when a checksum error occurs in the program memory (UM) area, or when an improper instruction is executed.

13

Not used. (Cleared when power is turned on.)

----------3

---

467

Page 485

Appendix C

Memory Areas Word(s) AR 13

Bit(s) 14

Function

Page

Data Save Error Flag Turns ON when power is turned on if data could not be saved in the following areas: DM area (read/write-capable), HR area, CNT area, SR 252, bits 11, 12 (when PC Setup in DM 6601 is set to maintain status), error log, operation mode (when PC Setup in DM 6600 is set to continue mode last used before power failure). (For details regarding the holding time, refer to the SRM1 Operation Manual.)

AR 14

AR 15

15 00 to 15

00 to 15

If data could not be saved in the above areas: The DM (read/write-capable), error log, HR, and CNT areas, and SR 252, bits 11 and 12 will be cleared. The operation mode will go into Program Mode. SRM1 CompoBus/S Communications Error Flag --21 Maximum Cycle Time (4 digits BCD) The longest cycle time since the beginning of operation is stored. It is cleared at the beginning, and not at the end, of operation. The units can be any of the following, depending on the setting of in DM 6618. Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 ms Current Cycle Time (4 digits BCD) The most recent cycle time during operation is stored. The Current Cycle Time is not cleared when operation stops. The units can be any of the following, depending on the setting of in DM 6618. Default: 0.1 ms; “10 ms” setting: 0.1 ms; “100 ms” setting: 1 ms; “1 s” setting: 10 ms

468