The text of a manual · part 4 of 60
SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: SECTION 1 PC Setup and Other Features, pages 21 to 30
Pages 21 to 30 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 21
SECTION 1 PC Setup and Other Features This section explains the PC Setup and other CQM1/CPM1/CPM1A/SRM1 features, including interrupt processing and communications. The PC Setup can be used to control the operating parameters of the CQM1/CPM1/CPM1A/SRM1. To change the PC Setup, refer to the CQM1 Operation Manual, CPM1 Operation Manual, CPM1A Operation Manual or SRM1 Master Control Units Operation Manual for Programming Console procedures. Refer to the SSS Operation Manual: C-series PCs for SSS procedures. If you are not familiar with OMRON PCs or ladder diagram program, you can read 1-5 PC Setup as an overview of the operating parameters available for the CQM1/CPM1/CPM1A/SRM1, but may then want to read Section 3 Memory Areas, Section 4 Ladder-diagram Programming, and related instructions in Section 5 Instruction Set before completing this section. 1-1
1-2
1-3
1-4
1-5
1-6
PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1-1 Changing the PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1-2 CQM1 PC Setup Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1-3 CPM1/CPM1A PC Setup Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1-4 SRM1 PC Setup Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic PC Operation and I/O Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-1 Startup Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-2 Hold Bit Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-3 Program Memory Write-protection (CPM1/CPM1A Only) . . . . . . . . . . . . . . . . . 1-2-4 RS-232C Port Servicing Time (CQM1/SRM1 Only) . . . . . . . . . . . . . . . . . . . . . . 1-2-5 Peripheral Port Servicing Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-6 Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-7 Input Time Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-8 High-speed Timers (CQM1 Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2-9 DSW(87) Input Digits & Output Refresh Method (CQM1 Only) . . . . . . . . . . . . . 1-2-10 Error Log Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse Output Function (CQM1 Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3-1 Types of Pulse Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3-2 Standard Pulse Output from an Output Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3-3 Standard Pulse Output from Ports 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3-4 Variable-duty-ratio Pulse Output from Ports 1 and 2 . . . . . . . . . . . . . . . . . . . . . . 1-3-5 Determining the Status of Ports 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse Output Function (CPM1A Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4-1 Programming Example in Continuous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4-2 Programming Example in Independent Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4-3 Using Pulse Output Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4-4 Changing the Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4-5 Stopping Pulse Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CQM1 Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-1 Types of Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-2 Input Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-3 Masking All Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-4 Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-5 High-speed Counter 0 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-6 High-speed Counter 0 Overflows/Underflows . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5-7 High-speed Counter 1 and 2 Interrupts (CQM1-CPU43-EV1) . . . . . . . . . . . . . . . 1-5-8 Absolute High-speed Counter Interrupts (CQM1-CPU44-EV1) . . . . . . . . . . . . . CPM1/CPM1A Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6-1 Types of Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6-2 Input Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6-3 Masking All Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6-4 Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6-5 High-speed Counter Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 3 4 9 13 16 16 17 17 18 18 18 19 20 21 21 22 22 23 25 32 34 35 36 36 36 37 37 38 38 39 44 44 47 53 55 62 67 67 69 73 74 76
1
Page 22
Section 1-7
SRM1 Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7-1 Types of Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7-2 Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8 CompoBus/S Distributed I/O Functions (SRM1 Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9 Communications Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-1 CQM1 PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-2 Wiring Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-3 CQM1 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-4 CPM1/CPM1A Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-5 SRM1 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-6 RS-232C Communications (CQM1/SRM1 Only) . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-7 CQM1 One-to-one Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-8 CPM1/CPM1A One-to-one Link Communications . . . . . . . . . . . . . . . . . . . . . . . 1-9-9 CPM1/CPM1A NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-10 SRM1 One-to-one Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-11 SRM1 NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-12 SRM1 No Protocol Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-13 Transmission Data Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-14 Transmission Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9-15 No Protocol Communications Program Example . . . . . . . . . . . . . . . . . . . . . . . . . 1-10 Calculating with Signed Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10-1 Definition of Signed Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10-2 Arithmetic Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10-3 Inputting Signed Binary Data Using Decimal Values . . . . . . . . . . . . . . . . . . . . . . 1-10-4 Using Signed-binary Expansion Instructions (CQM1 Only) . . . . . . . . . . . . . . . . . 1-10-5 Application Example Using Signed Binary Data . . . . . . . . . . . . . . . . . . . . . . . . .
2
83 83 83 86 87 88 91 91 93 95 98 100 101 103 104 106 107 110 110 111 111 112 113 113 113 114
Page 23
Section
PC Setup
1-1
1-1
PC Setup The PC Setup comprises various operating parameters that control CQM1/CPM1/CPM1A/SRM1 operation. In order to make the maximum use of CQM1/CPM1/CPM1A/SRM1 functionality when using interrupt processing and communications functions, the PC Setup may be customized according to operating conditions. At the time of shipping, the defaults are set for general operating conditions, so that the CQM1/CPM1/CPM1A/SRM1 can be used without having to change the settings. You are, however, advised to check the default values before operation.
Default Values
The default values for the PC Setup are 0000 for all words. The default values can be reset at any time by turning ON SR 25210. ! Caution
When data memory (DM) is cleared from a Programming Device, the PC Setup settings will also be cleared to all zeros.
1-1-1 Changing the PC Setup PC Setup settings are accessed at various times depending on the setting, as described below. • DM 6600 to DM 6614: Accessed only when PC’s power supply is turned on. • DM 6615 to DM 6644: Accessed only when program execution begins. • DM 6645 to DM 6655: Accessed regularly when the power is on. Since changes in the PC Setup become effective only at the times given above, the CQM1/CPM1/CPM1A/SRM1 will have to be restarted to make changes in DM 6600 to DM 6614 effective, and program execution will have to be restarted to make changes in DM 6615 to DM 6644 effective. When DM 6602 bits 00 to 03 are set to protect the program memory, DM 6602 cannot be changed using the PC Setup operation of the Support Software. To change DM 6602, use the I/O Monitor or DM Edit operation. Making Changes from a Peripheral Device
The PC Setup can be read, but not written into, from the user program. Writing can be done only by using a Programming Device. Although the PC Setup is stored in DM 6600 to DM 6655, settings can be made and changed only from a Programming Device (e.g., SSS, or Programming Console). DM 6600 to DM 6644 can be set or changed only while in PROGRAM mode. DM 6645 to DM 6655 can be set or changed while in either PROGRAM mode or MONITOR mode. The following settings can be made in PROGRAM mode from the SSS using menu operations. All other settings must be made using the hexadecimal setting operation. • Startup Mode (DM 6600) • I/O Hold Bit Status and Forced Status Hold Bit Status (DM 6601) • Cycle Monitor Time (DM 6618) • Cycle Time (DM 6619) • RS-232C Port Settings (DM 6645 to DM 6649) Note The RS-232C Port Settings (DM 6645 to DM 6649) are not used in CPM1/CPM1A PCs because these PCs aren’t equipped with an RS-232C port.
Errors in the PC Setup
If an incorrect PC Setup setting is accessed, a non-fatal error (error code 9B) will be generated, the corresponding error flag (AR 2400 to AR 2402 in the CQM1, AR 1300 to AR 1302 in the CPM1/CPM1A/SRM1) will be turned ON, and the default setting will be used instead of the incorrect setting.
3
Page 24
Section
PC Setup
1-1
1-1-2 CQM1 PC Setup Settings The PC Setup is broadly divided into four categories: 1) Settings related to basic CQM1 operation and I/O processes, 2) Settings related to pulse output functions, 3) Settings related to interrupts, and 4) Settings related to communications. This section will explain the settings according to these classifications. The following table shows the setting in order in the DM area. For details, refer to the page numbers shown. 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
00 to 07 08 to 15
DM 6601
00 to 07 08 to 11 12 to 15
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 Not used. IOM Hold Bit (SR 25212) Status 0: Reset; 1: Maintain Forced Status Hold Bit (SR 25211) Status 0: Reset; 1: Maintain
DM 6602 to DM 6610
00 to 15
Not used.
DM 6611
00 to 15
CQM1-CPU43-EV1: Mode setting for ports 1 and 2 0000: High-speed counter mode; 0001: Pulse output mode
DM 6612
00 to 15
16
17
25, 63
CQM1-CPU44-EV1: Origin compensation setting for port 1 (4-digit BCD) CQM1-CPU44-EV1: Origin compensation setting for port 2 (4-digit BCD)
63
Pulse Output and 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 07 08 to 15
DM 6616
00 to 07 08 to 15
DM 6617
00 to 07 08 to 15
DM 6618
00 to 07 08 to 15
DM 6619
4
00 to 15
Word for pulse output. 00: IR 100; 01: IR101; 02: IR 102... 15: IR 115 Not used.
23
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. RS-232C port servicing setting 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
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
21
Cycle time 0000: Variable (no minimum) 0001 to 9999 (BCD): Minimum time in ms
18
Page 25
Section
PC Setup Word(s)
Bit(s)
Function
1-1 Page
Interrupt Processing (DM 6620 to DM 6639) The following settings are effective after transfer to the PC the next time operation is started. DM 6620
19
04 to 07 08 to 15
Input constant for IR 00000 to IR 00007 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 Input constant for IR 00008 to IR 00015 (Setting same as bits 00 to 03) Input constant for IR 001 00: 8 ms; 01: 1 ms; 02: 2 ms; 03: 4 ms; 04: 8 ms; 05: 16 ms; 06: 32 ms; 07: 64 ms; 08: 128 ms
00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15
Input constant for IR 002 (Setting same as for IR 001.) Input constant for IR 003 (Setting same as for IR 001.) Input constant for IR 004 (Setting same as for IR 001.) Input constant for IR 005 (Setting same as for IR 001.) Input constant for IR 006 (Setting same as for IR 001.) Input constant for IR 007 (Setting same as for IR 001.) Input constant for IR 008 (Setting same as for IR 001.) Input constant for IR 009 (Setting same as for IR 001.) Input constant for IR 010 (Setting same as for IR 001.) Input constant for IR 011 (Setting same as for IR 001.) Input constant for IR 012 (Setting same as for IR 001.) Input constant for IR 013 (Setting same as for IR 001.) Input constant for IR 014 (Setting same as for IR 001.) Input constant for IR 015 (Setting same as for IR 001.)
DM 6628
00 to 03 04 to 07 08 to 11 12 to 15
Interrupt enable for IR 00000 (0: Normal input; 1: Interrupt input) Interrupt enable for IR 00001 (0: Normal input; 1: Interrupt input) Interrupt enable for IR 00002 (0: Normal input; 1: Interrupt input) Interrupt enable for IR 00003 (0: Normal input; 1: Interrupt input)
40
DM 6629
00 to 07
20
08 to 15
Number of high-speed timers for interrupt refreshing 00 to 15 (BCD; e.g., set 15 for 00 to 14) High-speed timer interrupt refresh enable 00: 16 timers (setting in bits 00 to 07 disabled) 01: Use setting in 00 to 07
00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15
First input refresh word for I/O interrupt 0: 00 to 11 (BCD) Number of input refresh words for I/O interrupt 0: 00 to 12 (BCD) First input refresh word for I/O interrupt 1: 00 to 11 (BCD) Number of input refresh words for I/O interrupt 1: 00 to 12 (BCD) First input refresh word for I/O interrupt 2: 00 to 11 (BCD) Number of input refresh words for I/O interrupt 2: 00 to 12 (BCD) First input refresh word for I/O interrupt 3: 00 to 11 (BCD) Number of input refresh words for I/O interrupt 3: 00 to 12 (BCD)
40
DM 6634
00 to 07 08 to 15
First input refresh word for high-speed counter 1: 00 to 11 (BCD) Number of input refresh words for high-speed counter 1: 00 to 12 (BCD)
40
DM 6635
00 to 07 08 to 15
First input refresh word for high-speed counter 1: 00 to 11 (BCD) Number of input refresh words for high-speed counter 1: 00 to 12 (BCD)
40
DM 6636
00 to 07 08 to 15 00 to 07 08 to 15 00 to 07
First input refresh word for interval timer 0: 00 to 07 (BCD) Number of input refresh words for interval timer 0: 00 to 08 (BCD) First input refresh word for interval timer 1: 00 to 07 (BCD) Number of input refresh words for interval timer 1: 00 to 08 (BCD) First input refresh word for interval timer 2 (also used for high-speed counter 0): 00 to 07 (BCD) Number of input refresh words for interval timer 2: 00 to 08 (BCD) (also used for high-speed counter 0)
45, 50
DM 6621 DM 6622 DM 6623 DM 6624 DM 6625 DM 6626 DM 6627
DM 6630 DM 6631 DM 6632 DM 6633
DM 6637 DM 6638
00 to 03
08 to 15
5
Page 26
Section
PC Setup Word(s) DM 6639
Bit(s)
Function
00 to 07
Output refresh method 00: Cyclic; 01: Direct 08 to 15 Number of digits for DIGITAL SWITCH (DSW(87)) instruction 00: 4 digits; 01: 8 digits High-speed Counter Settings (DM 6640 to DM 6644)
1-1 Page 21, 383 21, 122
The following settings are effective after transfer to the PC the next time operation is started. DM 6640, 00 to 15 Not used. DM 6641 DM 6642 50 00 to 03 High-speed counter 0 mode 0: Up/down counter mode; 4: Incrementing counter mode 04 to 07 High-speed counter 0 reset mode 0: Z phase and software reset; 1: Software reset only 08 to 15 High-speed counter 0 enable 00: Don’t use high-speed counter; 01: Use high-speed counter with settings in 00 to 07 DM 6643 00 to 03 CQM1-CPU43-EV1: Port 1 input setting 55, 62 0: Differential phase input; 1: Pulse/Direction input; 2: Up/Down input
04 to 07
CQM1-CPU44-EV1: Port 1 input setting 0: 8-bit input; 1: 10-bit input; 2: 12-bit input CQM1-CPU43-EV1: Port 1 reset setting 0: Z phase and software reset; 1: Software reset only
57
CQM1-CPU44-EV1: Not used. Set to 0. 08 to 11
12 to 15
CQM1-CPU43-EV1: Port 1 counting mode setting 0: Linear mode; 1: Ring mode CQM1-CPU44-EV1: Port 1 mode setting 0: BCD mode; 1: 360° mode CQM1-CPU43-EV1: Port 1 pulse type setting 0: Standard pulse output (0.5 duty ratio); 1: Variable-duty-ratio pulse output CQM1-CPU44-EV1: Not used. Set to 0.
DM 6644
6
00 to 15
Port 2 settings (Identical to the port 1 settings in DM 6643.)
55, 62
25, 32
Page 27
Section
PC Setup Word(s)
Bit(s)
Function
1-1 Page
RS-232C Port Settings The following settings are effective after transfer to the PC. DM 6645 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 6646 08 to 11 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
Link words for 1:1 link (Effective when bits 12 to 15 are set to 3.) 0: LR 00 to LR 63; 1: LR 00 to LR 31; 2: LR 00 to LR 15 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 (1:1) (NT Link setting is only applicable to the CPU Units.) 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
88
88
When bits 12 to 15 of DM 6648 are set to 1: End code (RS-232C) 00 to FF (binary)
7
Page 28
Section
PC Setup Word(s)
Bit(s)
Function
1-1 Page
Peripheral Port Settings The following settings are effective after transfer to the PC. These settings are effective when a CQM1-CIF01 Connecting Cable is used. They are not effective when a CQM1-CIF11 Connecting Cable or Programming Console is used. DM 6650
DM 6651
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
Not used. Communications mode 0: Host link; 1: RS-232C 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: In ms. Node number (Host link, effective when bits 12 to 15 of DM 6650 are set to 0.) 00 to 31 (BCD) Start code enable (RS-232C, effective when bits 12 to 15 of DM 6650 are set to 1.) 0: Disable; 1: Set End code enable (RS-232C, effective when bits 12 to 15 of DM 6650 are set to 1.) 0: Disable (number of bytes received) 1: Set (specified end code) 2: CR, LF Start code (RS-232C, effective when bits 08 to 11 of DM 6653 are set to 1.) 00 to FF (binary) When bits 12 to 15 of DM 6653 are set to 0: Number of bytes received 00: Default setting (256 bytes) 01 to FF: 1 to 255 bytes
00 to 07 08 to 15
DM 6652
00 to 15
DM 6653
00 to 07 08 to 11 12 to 15
DM 6654
00 to 07 08 to 15
88
88
When bits 12 to 15 of DM 6653 are set to 1: End code (RS-232C) 00 to FF (binary) Error Log Settings (DM 6655) The following settings are effective after transfer to the PC. DM 6655
00 to 03
04 to 07 08 to 11
12 to 15
8
Style 0: Shift after 10 records have been stored 1: Store only first 10 records (no shifting) 2 to F: Do not store records Not used. Cycle time monitor enable 0: Detect long cycles as non-fatal errors 1: Do not detect long cycles Low battery error enable 0: Detect low battery voltage as non-fatal error 1: Do not detect low batter voltage
22
22
Page 29
Section
PC Setup
1-1
1-1-3 CPM1/CPM1A PC Setup Settings The PC Setup is broadly divided into four categories: 1) Settings related to basic PC operation and I/O processes, 2) Settings related to the cycle time, 3) Settings related to interrupts, and 4) Settings related to communications. This section will explain the settings according to these classifications. The following table shows the settings for CPM1/CPM1A 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. (See note 1.) 02: Setting in 00 to 07
16
Not used. IOM Hold Bit (SR 25212) Status at Startup 0: Reset; 1: Maintain (See note 3.) Forced Status Hold Bit (SR 25211) Status at Startup 0: Reset; 1: Maintain (See note 3.)
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 08 to 15
Programming Console display language 0: English; 1: Japanese Not used.
DM 6603
00 to 15
Not used.
DM 6604
00 to 07
00: If data could not be saved with the built-in capacitor (AR 1314 ON), a memory error will not be generated.
00 to 07 08 to 15
DM 6601
00 to 07 08 to 11 12 to 15
DM 6602
DM 6605 to DM 6614
08 to 15
01: If data could not be saved with the built-in capacitor (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, DM 6616 DM 6617
00 to 15
Not used.
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. Peripheral port servicing setting enable 00: 5% of the cycle time 01: Use time in 00 to 07.
18
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
21
Cycle time 0000: Variable (no minimum) 0001 to 9999 (BCD): Minimum time in ms
18
08 to 15
DM 6618
00 to 07 08 to 15
DM 6619
00 to 15
9
Page 30
Section
PC Setup Word(s)
Bit(s)
Function
1-1 Page
Interrupt Processing (DM 6620 to DM 6639) The following settings are effective after transfer to the PC the next time operation is started. DM 6620 00 to 03 Input constant for IR 00000 to IR 00002 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 04 to 07 Input constant for IR 00003 and IR 00004 (Setting same as bits 00 to 03) 08 to 11 Input constant for IR 00005 and IR 00006 (Setting same as bits 00 to 03) 12 to 15 Input constant for IR 00007 and IR 00011 (Setting same as bits 00 to 03) DM 6621 00 to 07 Input constant for IR 001 00: 8 ms; 01: 1 ms; 02: 2 ms; 03: 4 ms; 04: 8 ms; 05: 16 ms; 06: 32 ms; 07: 64 ms; 08: 128 ms DM 6622 DM 6623 DM 6624 DM 6625 DM 6626 to DM 6627 DM6628
08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 07 08 to 15 00 to 15
Input constant for IR 002 (Setting same as for IR 001.) Input constant for IR 003 (Setting same as for IR 001.) Input constant for IR 004 (Setting same as for IR 001.) Input constant for IR 005 (Setting same as for IR 001.) Input constant for IR 006 (Setting same as for IR 001.) Input constant for IR 007 (Setting same as for IR 001.) Input constant for IR 008 (Setting same as for IR 001.) Input constant for IR 009 (Setting same as for IR 001.) Not used. Not used.
00 to 03 04 to 07 08 to 11 12 to 15 00 to 15
Interrupt enable for IR 00003 (0: Normal input; 1: Interrupt input; 2: Quick-response) Interrupt enable for IR 00004 (0: Normal input; 1: Interrupt input; 2: Quick-response) Interrupt enable for IR 00005 (0: Normal input; 1: Interrupt input; 2: Quick-response) Interrupt enable for IR 00006 (0: Normal input; 1: Interrupt input; 2: Quick-response) Not used.
DM 6629 to DM 6641 High-speed Counter Settings (DM 6640 to DM 6644)
The following settings are effective after transfer to the PC the next time operation is started. DM 6640 to 00 to 15 Not used. DM 6641 DM 6642 00 to 03 High-speed counter mode 0: Up/down counter mode; 4: Incrementing counter mode 04 to 07 High-speed counter reset mode 0: Z phase and software reset; 1: Software reset only 08 to 15 High-speed counter enable 00: Don’t use high-speed counter; 01: Use high-speed counter with settings in 00 to 07 DM 6643, 00 to 15 Not used. DM 6644
10
19
40
40
50