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

The text of a manual · part 5 of 60

SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: SECTION 1 PC Setup and Other Features, pages 31 to 40

Pages 31 to 40 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 31

Section

PC Setup Word(s)

Bit(s)

Function

1-1 Page

Peripheral Port Settings The following settings are effective after transfer to the PC. DM 6645 to 00 to 15 Not used. DM 6649 DM 6650 00 to 07 Port settings 00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps) 01: Settings in DM 6651 08 to 11 12 to 15

88

(Other settings will cause a non-fatal error and AR 1302 will turn ON.) Link area for one-to-one PC link via peripheral port: 0: LR 00 to LR 15 Communications mode 0: Host link; 2: One-to-one PC link (slave); 3: One-to-one PC link (master); 4: NT Link (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

DM 6651

00 to 07

08 to 15

Baud rate 00: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2K, 05 to 07: Cannot be used (see note 2) (Other settings will cause a non-fatal error and AR 1302 will turn ON.) Frame format Start Length Stop Parity 00: 1 bit 7 bits 1 bit Even 01: 1 bit 7 bits 1 bit Odd 02: 1 bit 7 bits 1 bit None 03: 1 bit 7 bits 2 bit Even 04: 1 bit 7 bits 2 bit Odd 05: 1 bit 7 bits 2 bit None 06: 1 bit 8 bits 1 bit Even 07: 1 bit 8 bits 1 bit Odd 08: 1 bit 8 bits 1 bit None 09: 1 bit 8 bits 2 bit Even 10: 1 bit 8 bits 2 bit Odd 11: 1 bit 8 bits 2 bit None (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

DM 6652

00 to 15

Transmission delay (Host Link) (See note 4.) 0000 to 9999: In ms. (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

DM 6653

00 to 07

Node number (Host link) 00 to 31 (BCD) (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

08 to 15 Not used. DM 6654 00 to 15 Not used. Error Log Settings (DM 6655) The following settings are effective after transfer to the PC. DM 6655 00 to 03 Style 0: Shift after 7 records have been stored 1: Store only first 7 records (no shifting) 2 to F: Do not store records 04 to 07 Not used. 08 to 11 Cycle time monitor enable 0: Detect long cycles as non-fatal errors 1: Do not detect long cycles 12 to 15

22

Not used.

Note

1. When the startup mode is set to continue the operating mode last used before the power was turned off, that operating mode will be retained by the built-in capacitor. If the power remains off for longer than the backup time of the capacitor, the data may be lost. (For details on the holding time, refer to the CPM1A or CPM1 Operation Manual.)

11

Page 32

Section

PC Setup

1-1

2. Do not set to “05” to “07.” If set to this value, the CPM1/CPM1A will not operate properly and the RUN PC Setup Error Flag (AR 1302 ON) will not turn ON. 3. Retention of IOM Hold Bit (SR 25212) Status If the “IOM Hold Bit Status at Startup” (DM 6601, bits 08 to 11) is set to “Maintain” with the IOM Hold Bit (SR 25212) turned ON, operation can be started with the I/O memory (I/O, IR, LR) status just as it was before the power was turned OFF. (The input area is refreshed at startup, however, so it is overwritten by the most recently updated input status.) Retention of Forced Status Hold Bit (SR 25211) Status If the “Forced Status Hold Bit Status at Startup” (DM 6601, bits 12 to 15) is set to “Maintain” with the Forced Status Hold Bit (SR 25211) turned ON, operation can be started with the forced set/reset status just as it was before the power was turned OFF. (When starting up in RUN Mode, however, the forced set/reset status is cleared.) Even if the “IOM Hold Bit Status at Startup” or “Forced Status Hold Bit Status at Startup” is set to “Maintain,” the IOM Hold Bit (SR 25212) or Forced Status Hold Bit (SR 25211) status may be cleared if the power remains OFF for longer than the backup time of the built-in capacitor. (For details on the holding time, refer to the CPM1A or CPM1 Operation Manual.) At this time the I/O memory will also be cleared, so set up the system so that clearing the I/O memory will not cause problems. 4. The transmission delay is the delay between the previous transmission and the next transmission. Host computer

Command

Programmable Controller

Command

Response

Response

Transmission delay time

5. If an out-of-range value is set, the following communications conditions will result. In that case, reset the value so that it is within the permissible range. Communications mode: Host Link Communications format: Standard settings (1 start bit, 7-bit data; even parity, 2 stop bits, 9,600 bps) Transmission delay: No Node number: 00

12

Page 33

Section

PC Setup

1-1

1-1-4 SRM1 PC Setup Settings The PC Setup is broadly divided into three categories: 1) Settings related to basic PC operation and I/O processes, 2) Settings related to the cycle time, and 3) Settings related to communications. This section will explain the settings according to these classifications. The following table shows the settings for SRM1 PCs in order. Refer to the page number in the last column for more details on that setting. Word(s)

Bit(s)

Function

Page

Startup Processing (DM 6600 to DM 6614) The following settings are effective after transfer to the PC only after the PC is restarted. DM 6600

Startup mode (effective when bits 08 to 15 are set to 02). 00: PROGRAM; 01: MONITOR 02: RUN Startup mode designation 00: Programming Console switch 01: Continue operating mode last used before power was turned off 02: Setting in 00 to 07

16

Not used. IOM Hold Bit (SR 25212) Status 0: Reset; 1: Maintain (See caution on page 17.) Forced Status Hold Bit (SR 25211) Status 0: Reset; 1: Maintain

17

00 to 03

Program memory write-protection 0: Program memory unprotected 1: Program memory write-protected (except DM 6602 itself)

17

04 to 07

Programming Console display language 0: English; 1: Japanese Expansion Instructions 0: Default settings; 1: User settings Not used.

00 to 07 08 to 15

DM 6601

00 to 07 08 to 11 12 to 15

DM 6602

08 to 11 12 to 15 DM 6603

DM 6604

DM 6605 to DM 6614

00 to 03

Maximum number of CompoBus/S devices 0: Max. no. 32 1: Max. no. 16

04 to 15

Not used.

00 to 07

08 to 15

00: If data could not be saved for a power interruption (AR 1314 ON), a memory error will not be generated. 01: If data could not be saved for a power interruption (AR 1314 ON), a memory error will be generated. Not used.

00 to 15

Not used.

Cycle Time Settings (DM 6615 to DM 6619) The following settings are effective after transfer to the PC the next time operation is started. DM 6615

00 to 15

Not used.

DM 6616

00 to 07

Servicing time for RS-232C port (effective when bits 08 to 15 are set) 00 to 99 (BCD): Percentage for cycle time used to service peripheral. RS-232C port servicing enable 00: 5% of the cycle time 01: Use time in 00 to 07.

18

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. Peripheral port servicing setting enable 00: 5% of the cycle time 01: Use time in 00 to 07.

18

08 to 15

DM 6617

00 to 07 08 to 15

13

Page 34

Section

PC Setup Word(s) DM 6618

Bit(s) 00 to 07 08 to 15

Function Cycle monitor time (effective when bits 08 to 15 are set to 01, 02, or 03) 00 to 99 (BCD): Setting (see 08 to 15) Cycle monitor enable (Setting in 00 to 07 x 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

DM 6619

00 to 15

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

DM 6620 to DM 6644

00 to 15

Not used.

1-1 Page 21

18

RS-232C Port Settings The following settings are effective after transfer to the PC. DM 6645

00 to 03

Port settings 0: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps) 1: Settings in DM 6646

04 to 07

CTS control settings 0: Disable; 1: Set

08 to 11

Link words for 1:1 link 0: LR 00 to LR 15; Other: Not effective Communications mode 0: Host link; 1: RS-232C (no protocol); 2: 1:1 data link slave; 3: 1:1 data link master; 4: NT Link

12 to 15

DM 6646

00 to 07 08 to 15

DM 6647

00 to 15

DM 6648

00 to 07 08 to 11 12 to 15

DM 6649

00 to 07 08 to 15

Baud rate 00: 1.2K, 01: 2.4K, 02: 4.8K, 03: 9.6K, 04: 19.2K Frame format Start Length Stop Parity 00: 1 bit 7 bits 1 bit Even 01: 1 bit 7 bits 1 bit Odd 02: 1 bit 7 bits 1 bit None 03: 1 bit 7 bits 2 bit Even 04: 1 bit 7 bits 2 bit Odd 05: 1 bit 7 bits 2 bit None 06: 1 bit 8 bits 1 bit Even 07: 1 bit 8 bits 1 bit Odd 08: 1 bit 8 bits 1 bit None 09: 1 bit 8 bits 2 bit Even 10: 1 bit 8 bits 2 bit Odd 11: 1 bit 8 bits 2 bit None Transmission delay (Host Link) 0000 to 9999 (BCD): Set in units of 10 ms, e.g., setting of 0001 equals 10 ms Node number (Host link, effective when bits 12 to 15 of DM 6645 are set to 0.) 00 to 31 (BCD) Start code enable (RS-232C, effective when bits 12 to 15 of DM 6645 are set to 1.) 0: Disable; 1: Set End code enable (RS-232C, effective when bits 12 to 15 of DM 6645 are set to 1.) 0: Disable (number of bytes received) 1: Set (specified end code) 2: CR, LF Start code (RS-232C) 00 to FF (binary) When bits 12 to 15 of DM 6648 are set to 0: Number of bytes received 00: Default setting (256 bytes) 01 to FF: 1 to 255 bytes When bits 12 to 15 of DM 6648 are set to 1: End code (RS-232C) 00 to FF (binary)

14

95

95

Page 35

Section

PC Setup Word(s)

Bit(s)

Function

1-1 Page

Peripheral Port Settings The following settings are effective after transfer to the PC. DM 6650 00 to 03 Port settings 00: Standard (1 start bit, 7-bit data, even parity, 2 stop bits, 9,600 bps) 01: Settings in DM 6651 04 to 07 08 to 11 12 to 15

95

(Other settings will cause a non-fatal error and AR 1302 will turn ON.) Not used. Not used. Communications mode 0: Host link; 1: No protocol (Other settings will cause a non-fatal error and and AR 1302 will turn ON.)

DM 6651

00 to 07 08 to 15

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

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

(Other settings will cause a non-fatal error and AR 1302 will turn ON.) DM 6652

00 to 15

Transmission delay (Host Link) 0000 to 9999 (BCD): Set in units of 10 ms. (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

DM 6653

00 to 07

Node number (Host link) 00 to 31 (BCD) (Other settings will cause a non-fatal error and AR 1302 will turn ON.)

DM 6654

08 to 11

Start code enable (RS-232C, effective when bits 12 to 15 of DM6650 are set to 1.) 0: Disable 1: Set

12 to 15

End code enable (RS-232C, effective when bits 12 to 15 of DM6650 are set to 1.) 0: Disable (number of bytes received) 1: Set (specified end code) 2: CR, LF Start code (effective when bits 08 to 11 of DM6650 are set to 1.) 00: 256 bytes 01 to FF: 1 to 255 bytes

00 to 07

08 to 15

End code When bits 12 to 15 of DM6653 are set to 0: 00: 256 bytes 01 to FF: 1 to 255 bytes When bits 12 to 15 of DM6653 are set to 1: Setting: 00 to FF (binary)

15

Page 36

Section

Basic PC Operation and I/O Processes Word(s)

Bit(s)

Function

1-2 Page

Error Log Settings (DM 6655) The following settings are effective after transfer to the PC. DM 6655 00 to 03 Style 0: Shift after 7 records have been stored 1: Store only first 7 records

22

04 to 07 08 to 11

Errors will not be stored if other values are set. Not used. Cycle time monitor enable 0: Detect long cycles as non-fatal errors 1: Do not detect long cycles

12 to 15

Not used.

Note If an out-of-range value is set, the following communications conditions will result. In that case, reset the value so that it is within the permissible range. Communications mode: Communications format:

Transmission delay: Node number:

1-2

Host Link Standard settings (1 start bit, 7-bit data; even parity, 2 stop bits, 9,600 bps) No 00

Basic PC Operation and I/O Processes This section explains the PC Setup settings related to basic operation and I/O processes.

1-2-1 Startup Mode The operation mode the PC will start in when power is turned on can be set as shown below. Bit 15 DM6600

Startup Mode Designation 00: Programming Console Mode Selector (If not connected: RUN mode) 01: Operating mode last used before power was turned off 02: Mode set in bits 00 to 07 Startup Mode (Bits 08 to 15: Valid when bits 00 to 07 are set to 02) 00: PROGRAM mode 01: MONITOR mode 02: RUN mode Default: Programming Console Mode Selector or RUN mode when Programming Console is not connected.

16

0

Page 37

Section

Basic PC Operation and I/O Processes

1-2

1-2-2 Hold Bit Status Make the settings shown below to determine whether, when the power supply is turned on, the Forced Status Hold Bit (SR 25211) and/or IOM Hold Bit (SR 25212) will retain the status that was in effect when the power was last turned off, or whether the previous status will be cleared. Bit 15

0

0

DM6601

0

Always 00

SR 25211 setting 0: Clear status 1: Retain status SR 25212 setting 0: Clear status 1: Retain status Default: Clear both.

The Forced Status Hold Bit (SR 25211) determines whether or not the forced set/reset status is retained when changing from PROGRAM mode to MONITOR mode. The IOM Hold Bit (SR 25212) determines whether or not the status of IR bits and LR bits is retained when PC operation is started and stopped. ! Caution

Do not use the I/O Hold Bit Status and Forced Status Hold Bit Status Bits (DM 6601) when the power to the PC is going to be turned off longer than the memory backup time of the internal capacitor. If the memory backup time is exceeded, memory status will be unstable even if the I/O Hold Bit Status and Forced Status Hold Bit Status Bits are used. Unpredictable results may occur if operation is attempted with unstable memory status.

Note

1. The memory backup time of the internal capacitor varies with the ambient temperature, but is 20 days at Refer to hardware specifications for more details. 2. The memory backup time assumes that the internal capacitor is fully charged before power is turned off. Fulling charging the capacitor requires that power is supplied to the CPU Unit for at least 15 minutes.

1-2-3 Program Memory Write-protection (CPM1/CPM1A Only) In CPM1/CPM1A PCs the program memory can be protected by setting bits 00 to 03 of DM 6602 to 0. Bits 04 to 07 determine whether Programming Console messages are displayed in English or Japanese. Bit 15 DM6602

0

0

0

Always 00 Programming Console messages 0: English 1: Japanese Program memory 0: Not write-protected 1: Write-protected Default: English displays, not write-protected

Note DM 6602 itself can still be changed after the program memory has been writeprotected by setting bits 04 to 07 of DM 6602 to 1.

17

Page 38

Section

Basic PC Operation and I/O Processes

1-2

1-2-4 RS-232C Port Servicing Time (CQM1/SRM1 Only) The following settings are used to determine the percentage of the cycle time devoted to servicing the RS-232C port. Bit 15

0

DM6616

Servicing time setting enable 00: Disabled (5% used) 01: Enabled (setting in bits 00 to 07 used) Servicing time (%, valid with bits 08 to 15 are 01) 00 to 99 (BCD, two digits) Default: 5% of cycle time

Example: If DM 6616 is set to 0110, the RS-232C port will be serviced for 10% of the cycle time. The servicing time will be 0.34 ms minimum. The entire servicing time will not be used unless processing requests exist.

1-2-5 Peripheral Port Servicing Time The following settings are used to determine the percentage of the cycle time devoted to servicing the peripheral port. Bit 15

0

DM6617

Servicing time setting enable 00: Disabled (5% used) 01: Enabled (setting in bits 00 to 07 used) Servicing time (%, valid with bits 08 to 15 are 01) 00 to 99 (BCD, two digits) Default: 5% of cycle time

Example: If DM 6617 is set to 0115, the peripheral port will be serviced for 15% of the cycle time. The servicing time will be 0.34 ms minimum. The entire servicing time will not be used unless processing requests exist.

1-2-6 Cycle Time Make the settings shown below to standardize the cycle time and to eliminate variations in I/O response time by setting a minimum cycle time. Bit 15

0

DM6619

Cycle time (4 digits BCD) 0000:Cycle time variable 0001 to 9999: Minimum cycle time (Unit: 1 ms) Default: Cycle time variable

If the actual cycle time is shorter than the minimum cycle time, execution will wait until the minimum time has expired. If the actual cycle time is longer than the minimum cycle time, then operation will proceed according to the actual cycle time. AR 2405 will turn ON if the minimum cycle time is exceeded.

18

Page 39

Section

Basic PC Operation and I/O Processes

1-2

1-2-7 Input Time Constants Make the settings shown below to set the time from when the actual inputs from the DC Input Unit are turned ON or OFF until the corresponding input bits are updated (i.e., until their ON/OFF status is changed). Make these settings when you want to adjust the time until inputs stabilize. Increasing the input time constant can reduce the effects from chattering and external noise. Input from an input device such as a limit switch Input bit status t Input time constant t

The SRM1 does not have this setting. CQM1 PCs

DM 6620 contains the input time constants for both IR 000 and IR 001. Input Time Constants for IR 000 and IR 001 Bit 15 DM 6620

0

Time constant for IR 001 (2 digits BCD; see below.) Time constant for IR 00008 to IR 00015 (1 digit BCD; see below.) Time constant for IR 00000 to IR 00007 (1 digit BCD; see below.) Default: 0000 (8 ms for each)

Input Time Constants for IR 002 to IR 015 DM 6621: IR 002 and IR 003 DM 6622: IR 004 and IR 005 DM 6623: IR 006 and IR 007 DM 6624: IR 008 and IR 009 DM 6625: IR 010 and IR 011 DM 6626: IR 012 and IR 013 DM 6627: IR 014 and IR 015

Bit 15

0

DM 6621 to DM 6627

Time constant for IR 003, IR 005, IR 007, IR 009, IR 011, IR 013, and IR 015 Time constant for IR 002, IR 004, IR 006, IR 008, IR 010, IR 012, and IR 014 Default: 0000 (8 ms for each)

The nine possible settings for the input time constant are shown below. Set only the rightmost digit for IR 000. 0: 8 ms 1: 1 ms 2: 2 ms 3: 4 ms 4: 8 ms 5: 16 ms 6: 32 ms 7: 64 ms 8: 128 ms CPM1/CPM1A PCs

Set the input time constants for CPM1/CPM1A inputs from a Peripheral Device. Input Time Constants for IR 000 Bit 15

0

DM 6620 Time constant for IR 00007 to IR 00011 (1 digit BCD; see below.) Time constant for IR 00005 to IR 00006 (1 digit BCD; see below.) Time constant for IR 00003 to IR 00004 (1 digit BCD; see below.) Time constant for IR 00000 to IR 00002 (1 digit BCD; see below.) Default: 0000 (8 ms for each)

19

Page 40

Section

Basic PC Operation and I/O Processes

1-2

Input Time Constants for IR 001 to IR 009

DM 6621: IR 001 and IR 002 DM 6622: IR 003 and IR 004 DM 6623: IR 005 and IR 006 DM 6624: IR 007 and IR 008 DM 6625: IR 009

Bit 15

0

DM 6621 to DM 6625

Time constant for IR 002, IR 004, IR 006, and IR 008 Time constant for IR 001, IR 003, IR 005, IR 007, and IR 009 Default: 0000 (8 ms for each)

The nine possible settings for the input time constant are shown below. Set only the rightmost digit for IR 000. 0: 8 ms 5: 16 ms

1: 1 ms 6: 32 ms

2: 2 ms 7: 64 ms

3: 4 ms 8: 128 ms

4: 8 ms

The CPM1/CPM1A’s I/O response time is the input time constant (1 ms to 128 ms; default is 8 ms) + the cycle time. Refer to 7-2 CPM1/CPM1A Cycle Time and I/O Response Time for more details.

1-2-8 High-speed Timers (CQM1 Only) Make the settings shown below to set the number of high-speed timers created with TIMH(15) that will use interrupt processing.

Bit 15

0

DM6629

High-speed timer interrupt setting enable 00: Setting disabled (Interrupt processing for all high-speed timers, TIM 000 to TIM 015) 01: Enabled (Use setting in bits 00 to 07.) Number of high-speed timer for interrupts (valid when bits 08 to 15 are 01) 00 to 15 (2 digits BCD) Default: Interrupt processing for all high-speed timers,TIM 000 to TIM 015.

The setting indicates the number of timers that will use interrupt processing beginning with TIM 000. For example, if “0108” is specified, then eight timers, TIM 000 to TIM 007 will use interrupt processing. Note High-speed timers will not be accurate without interrupt processing unless the cycle time is 10 ms or less. Interrupt response time for other interrupts will be improved if interrupt processing is set to 00 when high-speed timer processing is not required. This includes any time the cycle time is less than 10 ms. Note If the SPED(64) instruction is used and pulses are output at a frequency of 500 Hz or greater, then set the number of high-speed timers with interrupt processing to four or less. Refer to information on the SPED(64) instruction for details.

20