SECTION 4 PC Memory Allocation and Programming. Omron C200H-TC @@@@, Sysmac Temperature Control Units
The C200H-TC@@@@ Temperature Control Unit measures the temperature of an object with a connected temperature sensor (thermocouple or platinum resistance thermometer) and controls the temperature according to a preset control mode. It features PID with feed-forward circuitry (Feed-forward PID) for stable temperature control, offering two control loops and various output specifications.
Advertisement
Advertisement
SECTION 4
PC Memory Allocation and Programming
This section provides the C200H PC’s memory allocation for the Temperature Control Unit. Basic programming procedures and examples are also provided.
4-1-1 Memory Allocation Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1-2 Memory Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1-3 Table of Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3-1 C200HX/HG/HE, C200HS, C200H . . . . . . . . . . . . . . . . . . . . . . . . .
4-3-3 Operation Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
Memory Allocation
Section 4-1
4-1 Memory Allocation
Memory Allocation
CS Series
The Temperature Control Unit is allocated 10 words in the IR or CIO Area according to the unit number switch setting on the front of the Unit. These words are used as an I/O refresh data area. The IR or CIO Area words used by the Temperature Control Unit are refreshed each I/O refresh scan of the
CPU Unit.
Temperature Control Unit
CIO area
Unit#0 CIO 2000 to CIO 2009
Unit#1 CIO 2010 to CIO 2019
Unit#2 CIO 2020 to CIO 2029
Unit#3 CIO 2030 to CIO 2039
Unit#4 CIO 2040 to CIO 2049
Unit#5 CIO 2050 to CIO 2059
Unit#6 CIO 2060 to CIO 2069
Unit#7 CIO 2070 to CIO 2079
Unit#8 CIO 2080 to CIO 2089
Unit#9 CIO 2090 to CIO 2099
I/O refresh data area
Wd (n)
to
Wd (n+2)
Output refresh
During PC I/O refresh, each scan is executed for the outputs (PC to Temperature Control Unit) followed by the inputs (Temperature
Control Unit to PC).
Wd (n+3)
to
Wd (n+9)
Input refresh
(n=2000 + 10 x Unit number)
The terms "output" and 'input" are defined from the CPU Unit.
C200HX/HG/HE, C200HS, or C200H
IR area
Unit#0 IR 100 to IR 109
Unit#1 IR 110 to IR 119
Unit#2 IR 120 to IR 129
Unit#3 IR 130 to IR 139
Unit#4 IR 140 to IR 149
Unit#5 IR 150 to IR 159
Unit#6 IR 160 to IR 169
Unit#7 IR 170 to IR 179
Unit#8 IR 180 to IR 189
Unit#9 IR 190 to IR 199
Temperature Control Unit
I/O refresh data area
During PC I/O refresh, each scan is executed for the outputs
(PC to Temperature Control Unit) followed by the inputs (Temperature Control Unit to PC).
Wd (n)
to
Wd (n+2)
Wd (n+3)
to
Wd (n+9)
Output refresh
Input refresh
(n=100 + 10 x Unit number)
The terms "output" and "input" are defined from the CPU Unit.
Note A Duplicate I/O Unit error occurs if the set Unit number corresponds to the number of an existing Special I/O Unit.
Selecting Allocated Data
The data allocated to each IR word due to the Unit number setting is determined by the setting of SW2-1 on the front of the Unit.
ON
OFF
Normal All data can be set using commands.
Fixed Fixed data is allocated to memory. Direct reading and writing of data is possible.
This setting becomes valid immediately after the switch is set.
36
Memory Allocation
Section 4-1
4-1-1 Memory Allocation Table
SW2-1 Set for Fixed Memory Allocations
(CS Series: n=2000+10 x Unit number)
(C200HX/HG/HE, C200HS, C200H: n=100 + 10 x Unit number)
I/O
Output
Input
Word
n n+1 n+2 n+3 n+4 n+5 n+6 n+7 n+8 n+9
15 14 13
Loop 1 SP (see note)
12 11 10 09
Loop 2 SP (see note)
Loop 1 executed bank number
08
Loop 2 executed bank number
Bit
07 06 05 04
Loop 1
0
Loop 2
Stop 0 Stop
0
03 02 01 00
Loop 1 PV (see note)
Loop 2 PV (see note)
Loop 1 SP (see note)
Loop 2 SP (see note)
Loop 1 executed bank number
Loop 2 executed bank number
0 0 0 SW data
2-2 2-1
Loop 1 status data
0 Sensor error
CT overflow
0 0 0 0 STOP 0 0 0 Control output
AT HB AL1 AL2
Loop 2 status data
0 Sensor error
CT overflow
0 0 0 0 STOP 0 0 0 Control output
AT HB AL1 AL2
Note For four-digit BCD and platinum resistance thermometer data, the least significant digit = 0.1, and the most significant digit (F) = minus (–). For example,
“F200” represents –20.0
°
C for a platinum resistance thermometer.
SW2-1 Set for Normal Memory Allocations
(CS Series: n=2000+10 x Unit number)
(C200HX/HG/HE, C200HS, C200H: n=100 + 10 x Unit number)
I/O
Output
Word
n n+1 n+2
15 14 13 12 11
Read/write instruction
Read/write Loop no.
Bank no.
10 09 08
Write data (see note)
Loop 1 executed bank number
Loop 2 executed bank number
Bit
07 06
Instruction
05 04
Loop 1
0 STOP
Loop 2
0 STOP
0
03
0
02
0
01 00
Write request
37
Memory Allocation
Section 4-1
I/O
Input
Word
n+3 n+4 n+5 n+6 n+7
Bit
15 14 13 12 11
Loop 1 PV (see note)
Loop 2 PV (see note)
Read data
0
Loop 1 executed bank number
10 09 08
Write error
0 0 Write complete
Loop 2 executed bank number
0
0
07 06 05 04
n+8 Loop 1 status data
0 Sensor error
CT overflow
0 0 0 0 STOP 0 0 0 Control output
0
0
03
0
0
02
0
01 00
Read complete
SW data
2-2 2-1
AT HB AL1 AL2 n+9 Loop 2 status data
0 Sensor error
CT overflow
0 0 0 0 STOP 0 0 0 Control output
AT HB AL1 AL2
Note For four-digit BCD and platinum resistance thermometer data, the least significant digit = 0.1, and the most significant digit (F) = minus (–). For example,
“1000” represents 100.0
°
C for a platinum resistance thermometer.
4-1-2 Memory Contents
SW2-1 Set for Fixed Memory Allocations
(CS Series: n=2000+10 x Unit number)
(C200HX/HG/HE, C200HS, C200H: n=100 + 10 x Unit number)
I/O
Output n n+1
Word
Address
Bit
15 to 00
15 to 00
Data item Data contents
n+2 15 to 12
11 to 08
07
06
05
04
03 to 00
Loop 1 SP Sets the Loop 1 and Loop 2 SP (set point) as 4-digit BCD data. For
Loop 2 SP platinum resistance thermometer data, the least significant digit is
0.1. Set the most significant digit to F for minus (–).
These specified values apply to the bank number set with Wd
(n+2) and can only be changed in RAM. (Refer page 44)
Loop 1 executed bank number
Loop 2 executed bank number
---
Sets the bank number executed for Loop 1 and Loop 2 as 1-digit
BCD data. Set executed bank numbers from 1 to 8. If the value is set out of this range, the bank number reverts to the previous value
(default value = 1).
Not used. Set to 0.
Loop 1
STOP
---
Loop 2
STOP
---
Bit set to 0 during temperature control of Loop 1 and set to 1 when the control stop is executed. This bit will not be available under the program mode with SW203-5 set to ON (same as the control stop).
Not used. Set to 0.
Bit set to 0 during temperature control of Loop 2 and set to 1 when the control stop is executed. This bit will not be available under the program mode with SW203-5 set to ON (same as the control stop).
Not used. Set each bit to 0.
38
Memory Allocation
Input
I/O
Section 4-1
n+3 n+4
Word
Address
Bit
15 to 00
15 to 00 n+5 n+6 n+7
15 to 00
15 to 00
15 to 12
11 to 08
07 to 02
01
00 n+8 Loop 1 n+9 Loop 2
15
14
13
12 to 09
08
07 to 05
04
03
02
Data item Data contents
Loop 1 PV Outputs the Loop 1 and Loop 2 PV (process value) as 4-digit BCD
Loop 2 PV data. For platinum resistance thermometer data, the least significant digit is 0.1. The most significant digit is F for minus (–).
Loop 1 SP Outputs the Loop 1 and Loop 2 SP (set point) as 4-digit BCD data.
Loop 2 SP
For platinum resistance thermometer data, the least significant digit is 0.1. The most significant digit is F for minus (–).
Outputs the bank number currently executed for Loop 1 and Loop
2 as 1-digit BCD data. Executed bank numbers are from 1 to 8.
Loop 1 executed bank number
Loop 2 executed bank number
---
SW2-2
Not used. Each bit is set to 0.
Outputs the ON/OFF status of SW2-2 (setting direction).
0: Data Setting Console
1: CPU Unit
SW2-1 Outputs the ON/OFF status of SW2-1 (switching memory contents).
0: Fixed
---
Sensor error
1: Normal
Not used. Set to 0.
Bit set to 1 if the sensor is not connected, a sensor wire is broken, or the input data exceeds the operational temperature range.
CT overflow Bit set to 1 when the detected heater current exceeds 5.5 A.
Loop 1/2 status data
---
STOP
---
Control output
AT
HB
AL1
AL2
Not used. Each bit is set to 0.
Bit set to 0 during temperature control and set to 1 when the control stop is executed.
Not used. Each bit is set to 0.
Bit set to 1 when the control output (transistor or voltage output) is ON. The bit is always 0 for current output.
Bit set to 1 during auto-tuning (AT).
Bit set to 1 if the detected heater current drops below the set heater burnout current value. (HB: heater burnout)
Bit set to 1 when the temperature enters the set
alarm range (Refer to page 25).
01
00
Note If the setting direction of the Temperature Control Unit is set to the CPU Unit and the CPU Unit is in PROGRAM mode, all word data will be 0. Therefore, if the CPU Unit is in PROGRAM mode and has been set for continuous control, the Temperature Control Unit will continue executing temperature control even when the CPU Unit stops operating and will assume that the SP has been changed to 0
°
C. To prevent this, set SW2-2 on the Temperature Control Unit to OFF (i.e., the setting direction is set to the Data Setting Console) before the
CPU Unit stops operating and reset SW2-2 after the CPU Unit restarts.
39
Memory Allocation
Section 4-1
SW2-1 Set for Normal Memory Allocations
(CS Series: n=2000+10 x Unit number)
(C200HX/HG/HE, C200HS, C200H: n=100 + 10 x Unit number)
I/O
Output
Input n n+1 n+2
Word
Address
Bit
Data item Data contents
15 and 14 Read/Write The data bit sets operation to read or write.
Write = 01 Read = 00
13 and 12 Loop no.
The data bit sets the Loop Number to which the read or write operation applies.
Loop 1 = 01, Loop 2 = 10
11 to 08
Read/Write command
07 to 00
15 to 00
15 to 12
11 to 08
07
06
05
04
Bank no.
Sets the bank number to which the read or write operation applies as 1-digit BCD data. Set executed bank numbers from 1 to 8.
Command
Sets the command code (Refer to page 41) for the
read or write operation as 2-digit BCD data.
Write data Set the SP for a write operation as 4-digit BCD data. For data including 0.1 units, the least significant digit represents 0.1. Set the most significant digit to F for minus (–). The write operation commences on the ON rising-edge of the write request flag (Wd (n+2), bit 00).
Loop 1 executed bank number
Set the bank number currently executed for Loop 1 and Loop 2 as
1-digit BCD data. Executed bank numbers are from 1 to 8. If the value is set out of this range, the bank number reverts to the previous value (default value = 1).
Loop 2 executed bank number
---
Loop 1
STOP
---
Not used. Set to 0.
Bit set to 0 during temperature control of Loop 1 and set to 1 when the control stop is executed. This bit will not be available under the program mode with SW203-5 set to ON (same as the control stop).
Not used. Set to 0. n+3 n+4
03 to 01
00
15 to 00
15 to 00
Loop 2
STOP
Bit set to 0 during temperature control of Loop 2 and set to 1 when the control stop is executed. This bit will not be available under the program mode with SW203-5 set to ON (same as the control stop).
Not used. Set each bit to 0. ---
Write request
Turn this bit ON when writing the write data set with Wd (n+1) with the commands set to Wd (n).
Turn this bit OFF after the write complete flag (Wd (n+6), bit 08) turns ON.
Loop 1 PV Outputs the Loop 1 and Loop 2 PV (process value) as 4-digit BCD
Loop 2 PV data. For platinum resistance thermometer data, the least significant digit is 0.1. Set the most significant digit to F for minus (–). n+5 15 to 00 n+6 15 to 12
11
10 to 09
08
Read data Outputs the data read with the commands set with Wd (n). For data including 0.1 Units, the least significant digit represents 0.1.
Set the most significant digit to F for minus (–).
--Not used. Each bit is set to 0.
Write error Bit set to 1 when the write data exceeds the set permissible range.
The bit is automatically set to 0 on the OFF falling-edge of the write request flag (Wd (n+2), bit 00).
--Not used. Each bit is set to 0.
Write complete
Bit set to 1 when the write operation due to the instructions set with
Wd (n) ends normally. The bit is automatically set to 0 on the OFF falling-edge of the write request flag (Wd (n+2), bit 00).
40
Memory Allocation
Section 4-1
Input
I/O
n+6
Word
Address
Bit
07 to 01
00 n+7 15 to 12
11 to 08
07 to 02
01
00 n+8 Loop 1 n+9 Loop 2
15
14
13
12 to 09
08
07 to 05
04
03
02
01
00
Data item Data contents
---
Read complete
Not used. Each bit is set to 0.
Bit set to 1 when the read operation due to the commands set with
Wd (n) ends normally. The bit is set to 0 when the command is changed.
Outputs the bank number currently executed for Loop 1 and Loop
2 as 1-digit BCD data. Executed bank numbers are from 1 to 8.
Loop 1 executed bank number
Loop 2 executed bank number
---
SW2-2
SW2-1 Outputs the ON/OFF status of SW2-1 (switching memory contents).
0: Fixed
---
Sensor error
1: Normal
Not used. Set to 0.
Bit set to 1 if the sensor is not connected, a sensor wire is broken, or the input data exceeds the operational temperature range.
CT overflow Bit set to 1 when the detected heater current exceeds 5.5 A.
Loop 1/2 status data
---
STOP
Not used. Each bit is set to 0.
Outputs the ON/OFF status of SW2-2 (setting direction).
0: Data Setting Console
1: CPU Unit
---
Control output
AT
HB
AL1
AL2
Not used. Each bit is set to 0.
Bit set to 0 during temperature control and set to 1 when the control stop is executed.
Not used. Each bit is set to 0.
Bit set to 1 when the control output (transistor or voltage output) is ON. The bit is always 0 for current output.
Bit set to 1 during auto-tuning (AT).
Bit set to 1 if the detected heater current drops below the set heater burnout current value. (HB: heater burnout)
Bit set to 1 when the temperature enters the set
alarm range (Refer to page 25).
4-1-3 Table of Commands
The command codes shown below are set in bits (n Wd) 07 to 00 when the
SW2-1 (switching memory contents) on the front panel is set for normal memory allocations.
EEPROM Write/Read Command
Parameter
Set point 0
Command
Write
0 Yes
Read
Yes
Loop no.
Yes
Executed bank number 0 2 Yes Yes Yes
Bank no.
Yes
No
Actual data range
Write/Read data range
SV lower limit to SV upper limit
1 to 8
Default value
0
°
C
1
41
Memory Allocation
Section 4-1
Parameter
Alarm SV 1 (see note 4) 0
Command
Write
3 Yes
Read
Yes
Loop no.
Yes
Bank no.
Yes
Alarm SV 2 (see note 4)
Input shift value
Proportional band (see note 1)
Integral (reset) time (see note 1)
Derivative (rate) time
(see note 1)
SP lower limit
0
0
0
0
0
1
4
5
6
7
8
0
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Actual data range
Alarm mode
TC 1, 4, 5:
0
°
to 9999
°
C
Other TCs:
–999
°
to
9999
°
C
Pt 1, 4, 5:
0.0
°
to
999.9
°
C
Other Pts:
–99.9
°
to
999.9
°
C
–99.9
°
to
999.9
°
C
0.0
°
to
999.9
°
C
0 to 9999 s
0 to 9999 s
SP upper limit 1
Control period (see note
1 and 3)
1
Hysteresis (see note 2) 1
1
7
8
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Write/Read data range
0000 to
9999
F999 to
9999
0000 to
9999
F999 to
9999
F999 to
9999
0000 to
9999
Sensor measuring range lower limit to (SP upper limit value – 1 digit)
(SP lower limit + 1 digit) to sensor measuring range upper limit
1 to 99 s
Default value
0
°
C
0
°
C
0.0
°
40.0
20 s
C
°
240 s
40 s
C
TC: –200
Pt: –99.9
°
TC: 1,300
Pt: 450.0
°
°
C
°
C
C
C
Alarm hysteresis (see note 4)
Heater current monitor
(see note 3)
Heater burnout current
(see note 3)
Control output variable monitor
Auto-tuning start/stop
(see note 1)
Copy bank
Sensor-type monitor
Alarm 1 mode
Alarm 2 mode
1
1
1
2
2
2
2
2
2
9
A
B
0
1
2
3
4
5
Yes
No
Yes
No
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
No
No
No
0.0
°
to
999.9
°
C
0.0
°
to
999.9
°
C
0.0 to 5.6 A
0.0 to 5.0 A
0000 to
9999
0000 to
9999
0000 to
0056
0000 to
0050
0.8
0.2
---
0.0 A
0.0: No heater burnout detection, alarm signal OFF
5.0: No heater burnout detection, alarm signal ON
0.0% to
100.0%
0000 to
1000
---
°
°
C
C
AT start = 0001
AT stop = 0000
Run = 0001
0 to 9
0 to 9
Mode for Alarm SV 1/2 (0: no alarm)
---
---
Setting for
SW202
2
2
Note
Yes: Possible.
No: Not possible or not required.
1.
Only when advanced PID control is selected.
2.
Only when ON/OFF control is selected.
42
Memory Allocation
Section 4-1
3.
Does not apply to current output. A value of 5.6 (0056) for the heater current monitor indicates that the heater current value exceeds 5.6 A.
4.
Does not apply when Alarm Mode = 0
5.
Refer to
3-4 Parameter Displays and Settings
for details of the parameters.
6.
Thermocouple = TC
Platinum Resistance Thermometer = Pt
RAM Write Command
Parameter
Set point 4
Command
Write
0 Yes
Read
No
Loop no.
Yes
Executed bank number 4
Alarm SV 1 (see note 4) 4
Alarm SV 2 (see note 4) 4
Input shift value 4
Proportional band (see note 1)
Integral (reset) time (see note 1)
4
4
Derivative (rate) time
(see note 1)
SP lower limit
4
5
2 Yes
3 Yes
4 Yes
5 Yes
6 Yes
7 Yes
8 Yes
0 Yes
No
No
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Bank no.
Yes
No
Yes
Yes
Yes
Yes
Yes
Actual data range
SV lower limit to SV upper limit
1 to 8
Write/Read data range
Default value
0
°
C
1
0
°
C Alarm mode
TC 1, 4, 5:
0
°
to 9999
°
C
Other TCs:
–999
°
to
9999
°
C
Pt 1, 4, 5:
0.0
°
to
999.9
°
C
Other Pts:
–99.9
°
to
999.9
°
C
–99.9
°
to
999.9
°
C
0.0
°
to
999.9
°
C
0 to 9999 s
0000 to
9999
F999 to
9999
0000 to
9999
F999 to
9999
F999 to
9999
0000 to
9999
0
°
C
0.0
°
40.0
C
°
240 s
C
Yes
No
0 to 9999 s 40 s
TC: –200
°
C
Pt: –99.9
°
C
SP upper limit 5 1 Yes
7 Yes
No
No
Yes
Yes
No
No
Sensor measuring range lower limit to (SP upper limit value – 1 digit)
(SP lower limit + 1 digit) to sensor measuring range upper limit
1 to 99 s
TC: 1,300
°
C
Pt: 450.0
°
C
20 s Control period (see note
1 and 3)
5
Hysteresis (see note 2) 5 8 Yes No Yes Yes
Alarm hysteresis (see note 4)
Heater burnout current
(see note 3)
Alarm 1 mode
Alarm 2 mode
5
5
6
6
9 Yes
B Yes
4 Yes
5 Yes
No
No
No
No
Yes
Yes
Yes
Yes
No
No
No
No
0.0
°
to
999.9
°
C
0.0
°
to
999.9
°
C
0.0 to 5.0 A
0000 to
9999
0000 to
9999
0000 to
0050
0.0: No heater burnout detection, alarm signal OFF
5.0: No heater burnout detection, alarm signal ON
0 to 9
Mode for Alarm SV 1/2 (0: no alarm)
0.8
°
C
0.2
°
C
0.0 A
2
2
Yes: Possible.
No: Not possible or not required.
43
Data Flow
Note
Section 4-2
1.
Only when advanced PID control is selected.
2.
Only when ON/OFF control is selected.
3.
Does not apply to current output.
4.
Does not apply when Alarm Mode = 0
5.
Data written by the RAM write command will disappear when the power is turned OFF.
6.
Data cannot be read using the RAM write command.
7.
3-4 Parameter Displays and Settings
for details of the parameters.
4-2 Data Flow
Data Settings
Refer to
for the data flow in the Temperature Control Unit.
Before setting data with a user program or the Programming Console, turn
ON SW2-2 of the Unit to enable data setting from the CPU Unit. However, the executed bank number can be set with a user program or from the Programming Console regardless of the ON/OFF setting of SW2-2.
SW2-1 (switching memory contents) may be set in either the OFF (Fixed) or
ON (Normal) position, but care is required as the setting of this switch changes the stored data contents.
4-3 Programming
4-3-1 C200HX/HG/HE, C200HS, C200H
Example with SW2-1 with Fixed Memory Allocations
Description and Conditions
Example: The user program makes the following settings:
Loop 1 SP = 80
°
C
Loop 2 SP = 200
°
C
Loop 1 executed bank number = 1
Loop 2 executed bank number = 3
Conditions: C200H-TC001 (thermocouple)
SW203 set to 2 (K).
Unit number set to 0 (allocated memory: IR100 to IR109).
SW2-1 set OFF (Fixed) and SW2-2 set ON (C200H PC).
Sample Program
25315 10701
1 cycle ON
(C200H)
10700
Fixed
MOV (21)
#0080
100
Set #0080 for word 100 (Loop 1 SP).
MOV (21)
#0200
101
Set #0200 for word 101 (Loop 2 SP).
MOV (21)
#1300
102
Set #1300 for word 102 (executed bank number).
#1300
END (01)
Loop 2 executed bank number
Loop 1 executed bank number
Be sure to set the correct values for the Loop 1 and Loop 2 SP.
44
Programming
Section 4-3
The SV value is #0000 (0
°
C) if no data is set. If the executed bank number is set to a value out of the range from 1 to 8 the bank number reverts to the previous value (default value = 1).
Read monitored data into the program using Wd (n+3) to (n+9).
Reading Monitored Data
Example 1: Write with SW2-1 Set for Normal Memory Allocations
Description and Conditions
Example The user program makes the following settings:
Loop 1 SP = 200
°
C (Bank no. = 1)
Loop 2 SP = 250
°
C (Bank no. = 2)
Loop 1 executed bank number = 1
Loop 2 executed bank number = 2
Loop 1 heater burnout current value = 2.0 A
Loop 2 heater burnout current value = 2.5 A
Conditions C200H-TC001 (thermocouple)
SW202 set to 2 (K).
Unit number set to 0 (allocated memory: IR100 to IR109).
SW2-1 set ON (Normal) and SW2-2 set ON (C200H PC).
45
Programming
Sample Program
10701 10700
(C200H) Normal
25315 10701
1 cycle ON
(C200H)
23200
Normal
23201
10700
23202
23201
10608 Write complete
23203
46
23204
23203
10608
Write complete
23205
Next page
Section 4-3
DIFU (13)
23200
SW2-2 (10701) switch ON detection
(C200H PC)
23201
Program runs when operation is started or
SW2-2 turned ON.
MOV (21)
#1200
102
MOV (21)
#5100
100
MOV (21)
#0200
101
DIFD (14)
23203
S
KEEP(11)
23202
#1200
Loop 2 executed bank number
Loop 1 executed bank number
#5100
SP setting instruction
Bank number
Bit data: 0101
Loop 1
Write
Write data (200
°
C)
To start next data
R
MOV (21)
#6200
100
MOV (21)
#0250
101
DIFD (14)
23205
#6200
SP setting instruction
Bank number
Bit data: 0110
Loop 2
Write
Write data (250
°
C)
S
KEEP(11)
23204
To start next data
R
MOV (21)
#501B
100
MOV (21)
#0020
101
#501B
Write data (2A)
Heater burnout current value command
Bank number not required
Bit data: 0101
Loop 1
Write
Programming
23206
23205
10608
Write complete
23207
23208
10608
Write complete
23201
23203
23205
23207
Section 4-3
DIFD (14)
23207
S
KEEP(11)
23206
To start next data
R
MOV (21)
#601B
100
MOV (21)
#0025
101
#601B
Heater burnout current value command
Bank number not required
Bit data: 0101
Loop 2
Write
Write data (2.5A)
S
KEEP(11)
10200
R
Write request
DIFD (14)
23208
END (01)
47
Programming
Timing Chart
Section 4-3
1 cycle
25315
(1 cycle ON)
23201
23202
23203
23204
23205
23206
23207
10200
(Write request)
10608
(Write complete)
↑
: Point of Write command execution
In addition to the above, IR 23201 will turn ON for one cycle on the rising edge of SW2-2 (IR 10701). One cycle after IR 23208 turns ON, IR 10200 (write request) will turn ON.
Example 2: Read with SW2-1 Set for Normal Memory Allocations
Description and Conditions
Example: The following data is read from the indicated addresses:
Loop 1 PV: DM0000
Loop 1 control output variable: DM0001
Loop 2 heater current: DM0002
This read program is to be executed after writing the data with program example 1.
Conditions: C200H-TC001 (thermocouple)
SW202 set to 2 (K).
Unit number set to 0 (allocated memory: IR100 to IR109.
SW2-1 set ON (Normal) and SW2-2 set ON (C200H PC).
48
Programming
Sample Program
Section 4-3
25313
Normally ON
23209
(A)
23207
10608
Write complete
23300 10701 10700
(C200H)
Normal
23307
23301
Insert the program below before the END instruction in the program on
MOV (21)
103
DM0000
DIFD (14)
23300
S
Read Loop 1 PV from IR103 to DM 0000.
Read operation is not affected by SW2-1 and SW2-2 settings.
KEEP(11)
23209
Runs next Read command when final write complete is detected.
R
23301
23307 repeatedly executes the Read command when each Read Complete is detected.
23302
MOV (21)
#1020
100
DIFD (14)
23302
S
KEEP(11)
23303
#1020
Control output variable monitor command
Bank number not required
Bit data: to read data
0001
Wait for Read Complete
Loop 1
Read
R
10600
Read complete
23303
DIFD (14)
23304
Next page
49
Programming
23304
(B)
Section 4-3
23305
MOV (21)
105
DM0001
MOV (21)
#201A
100
DIFD (14)
23305
S
KEEP(11)
23306
Read data from IR105 to DM 0001.
Execute next Read command.
#201A
Heater Current
Monitor command
Bank number not required
Bit data 0010
Loop 2
Read
R
Wait for Read Complete to read data
10600
Read complete
23306
23307
DIFD (14)
23307
MOV (21)
105
DM0002
Read data from IR105 to DM 0002.
Change the above program as shown below if only reading is to be carried out.
Replace part (A) of the program with the following program.
10701 10700
(C200H) Normal
25315 10701 10700
1 cycle
(C200H)
ON
Normal
23200
DIFU (13)
23200
23301
SW2-2 (10701) switch ON detection (C200H PC)
Program runs when operation is started or SW2-2 turned ON
Add an END instruction (01) at position (B) of the program.
50
Programming
Timing Chart
Section 4-3
1 cycle
23301
23302
23303
23304
23305
23306
23307
Wd 105
(Read data)
10600
(Read complete)
1
2
: Point of Read command execution
: Point where data (1) is read.
: Point where data (2) is read.
4-3-2 CS Series
Example with Fixed Memory Allocations
Description and Conditions
Example: The user program makes the following settings:
Loop 1 SP = 80
°
C
Loop 2 SP = 200
°
C
Loop 1 executed bank number = 1
Loop 2 executed bank number = 3
Conditions: C200H-TC001 (thermocouple)
SW203 set to 2 (K).
Unit number set to 0 (allocated memory: CIO 2000 to CIO 2009).
SW2-1 set OFF (Fixed) and SW2-2 set ON (CPU Unit).
51
Programming
Sample Program
A20011 200701 200700
1 cycle ON CPU Unit Fixed
Section 4-3
MOV (021)
#0080
2000
Set #0080 for word 2000 (Loop 1 SP).
MOV (021)
#0200
2001
Set #0200 for word 2001 (Loop 2 SP).
MOV (021)
#1300
2002
END (001)
Set #1300 for word 2002 (executed bank number).
#1300
Loop 2 executed bank number
Loop 1 executed bank number
• Be sure to set the correct values for the Loop 1 and Loop 2 SP. The value is #0000 (0
°
C) if no data is set.
• If the executed bank number is set to a value out of the range from 1 to 8, the bank number reverts to the previous value (default value = 1).
Read monitored data into the program using Wd (n+3) to (n+9).
Reading Monitored Data
Example 1: Write Set for Normal Memory Allocations
Description and Conditions
Example The user program makes the following settings.
This example writes to EEPROM. To write to RAM, add 4 to the leftmost digit of the command.
Loop 1 SP = 200
°
C (Bank no. = 1)
Loop 2 SP = 250
°
C (Bank no. = 2)
Loop 1 executed bank number = 1
Loop 2 executed bank number = 2
Loop 1 heater burnout current value = 2.0 A
Loop 2 heater burnout current value = 2.5 A
Conditions C200H-TC001 (thermocouple)
SW202 set to 2 (K).
Unit number set to 0 (allocated memory: CIO 2000 to CIO 2009).
SW2-1 set ON (Normal) and SW2-2 set ON (CPU Unit).
52
Programming
Sample Program
20701 200700
CPU Unit Normal
A20011 200701 200700
1 cycle ON CPU Unit Normal
23200
23201
23202
23201
200608 Write complete
Next page
Section 4-3
DIFU (013)
2320
0
23201
SW2-2 (200701) switch ON detection (CPU Unit)
Program runs when operation is started or SW2-2 turned ON.
MOV (021)
#1200
2002
MOV (021)
#5100
2000
MOV (021)
#0200
2001
DIFU (014)
23203
KEEP(011)
23202
#1200
Loop 2 executed bank number
Loop 1 executed bank number
#5100
SP setting instruction
Bank number
Bit data: 0101
Loop 1
Write
Write data (200
°
C)
To start next data
53
Programming
23203
23204
23203
200608 Write complete
23205
23206
23205
200608
Write complete
23207
23208
200608
Write complete
23201
23203
23205
23207
54
Section 4-3
MOV (021)
#6200
2000
MOV (021)
#0250
2001
DIFD (014)
23205
S
KEEP(011)
23204
#6200
SP setting instruction
Bank number
Bit data:
0110
Loop 2
Write
Write data (250
°
C)
To start next data
R
MOV (021)
#501B
2000
MOV (021)
#0020
2001
#501B
Write data (2A)
Heater burnout current value command
Bank number not required
Bit data:
0101
Loop 1
Write
DIFD (014)
23207
S
KEEP(011)
23206
To start next data
R
MOV (021)
#601B
2000
MOV (021)
#0025
2001
#601B
Heater burnout current value command
Bank number not required
Bit data: 0101
Loop 2
Write
Write data (2.5A)
S
KEEP(011)
200200
R
Write request
DIFD (014)
23208
END (001)
Programming
Timing Chart
Section 4-3
1 cycle
A20011
(1 cycle ON)
23201
23202
23203
23204
23205
23206
23207
200200
(Write request)
200608
(Write complete)
↑
: Point of Write command execution
In addition to the above, CIO 23201 will turn ON for one cycle on the rising edge of SW2-2 (CIO 200701). One cycle after CIO 23208 turns ON, CIO
200200 (write request) will turn ON.
Example 2: Read Set for Normal Memory Allocations
Description and Conditions
Example: The following data is read from the indicated addresses:
Loop 1 PV: D0000
Loop 1 control output variable: D0001
Loop 2 heater current: D0002
This read program is to be executed after writing the data with program example 1.
Conditions: C200H-TC001 (thermocouple)
SW202 set to 2 (K).
Unit number set to 0 (allocated memory: CIO 2000 to CIO 2009.
SW2-1 set ON (Normal) and SW2-2 set ON (CPU Unit).
55
Programming
Sample Program
Section 4-3
(A)
CF113
Always ON
23209
23207
200608
Write complete
23300 200701 200700
CPU Unit
Normal
23307
23301
Insert the program below before the END instruction in the program on
MOV (021)
2003
D0000
DIFD (014)
23300
S
KEEP(011)
23209
Read Loop 1 PV from CIO 2003 to D0000.
Read operation is not affected by SW2-1 and SW2-2 settings.
Runs next Read command when final write complete is detected.
R
23301
23307 repeatedly executes the Read command when each Read Complete is detected.
23302
200600
Read complete
23303
MOV (021)
#1020
2000
DIFD (014)
23302
S
KEEP(011)
23303
#1020
Control output variable monitor command
Bank number not required
Bit data: to read data.
0001
Wait for Read Complete
Loop 1
Read
R
DIFD (014)
23304
Next page
56
Programming
23304
(B)
Section 4-3
23305
MOV (021)
2005
D0001
MOV (021)
#201A
2000
DIFD (014)
23305
S
KEEP(011)
23306
Read data from CIO 2005 to D0001.
Execute next Read command.
#201A
Heater Current
Monitor command
Bank number not required
Bit data 0010
Loop 2
Read
R
Wait for Read Complete to read data.
200600
Read complete
23306
23307
DIFD (014)
23307
MOV (021)
2005
D0002
Read data from CIO 2005 to D0002.
Change the above program as shown below if only reading is to be carried out.
Replace part (A) of the program with the following program.
200701 200700
CPU Unit Normal
A20011 200701 200700
1 cycle
ON
CPU Unit Normal
23200
DIFU (013)
23200
23300
SW2-2 (200701) switch
ON detection (CPU Unit)
Program runs when operation is started or SW2-2 turned ON
Add an END instruction (001) at position (B) of the program.
57
Programming
Timing Chart
Section 4-3
1 cycle
23301
23302
23303
23304
23305
23306
23307
Wd 2005
(Read data)
200600
(Read complete)
: Point of Read command execution
1
2
: Point where data (1) is read.
: Point where data (2) is read.
4-3-3 Operation Timing
The following descriptions apply to the C200HX/HG/HE, C200HS, C200H, and CS-series PCs.
Write Operation Timing
Command (Wd n)
Write data (Wd n+1)
Data (1) Data (2) Data (3) Data (4)
Write request
(Wd n+2), bit 00
ON
OFF
1,2,3...
Write complete
(Wd n+6), bit 08
ON
OFF
Approx.
140 ms
1.
The data is written to the Temperature Control Unit EEPROM when the
Write Request Flag turns ON.
2.
The Write Complete Flag turns ON when the data writing operation is completed. It takes approximately 140 ms to write the data.
3.
The Write Complete Flag automatically turns OFF when the Write Request
Flag turns OFF.
Check the Write Complete Flag is ON before turning OFF the Write Request Flag. If the Write Request Flag is set to OFF before the Write Com-
58
Programming
Section 4-3
plete Flag turns ON the Write Complete Flag will not subsequently turn
ON.
Temporarily turn the Write Request Flag OFF before executing the second and subsequent write operations. Writing is enabled on the ON rising edge of the Write Request Flag.
The Loop 1 and 2 executed bank number (Wd n+2) sets data directly. The data is written to the Temperature Control Unit RAM. If the value is set out of this range, the bank number reverts to the previous value (default value
= 1).
Timing for a Read Operation
1,2,3...
Command (n)
Read complete
(Wd n+6), bit 00
ON
OFF
Command (A) Command (B)
Read data
(Wd n+5)
Approx.
140 ms
Read data (A) Read data (B)
1.
The read data is output to Wd (n+5) approximately 140 ms after the Read command is executed.
2.
The read data is updated every 100 ms.
3.
When the Read command is modified, turn OFF the Read Complete Flag to execute the next read operation.
4-3-4 I/O Refresh
The following descriptions apply to the C200HX/HG/HE, C200HS, C200H, and CS-series PCs.
Temperature control cannot be performed properly unless the I/O refresh interval is at least 8 ms. Therefore, create programs that satisfy all of the following conditions.
• Set the cycle time to 8 ms min.
If the program processing time is short for the C200HX/HG/HE, C200HS, and C200H, use the CYCLE TIME instruction SCAN(18) to set a minimum cycle time.
If the program processing time is short for the CS-series PC, set the cycle time to a minimum value in the PC Setup.
• When using the I/O Refresh instruction IORF with the Unit, provide an interval of at least 8 ms between the end refreshes.
• Provide an interval of at least 8 ms between the I/O Refresh instructions.
Normal I/O refresh End refresh
8 ms min. (Cycle time)
Normal I/O refresh End refresh
8 ms min.
IORF I/O Refresh instruction
8 ms min.
IORF I/O Refresh instruction
8 ms min.
Normal I/O refresh End refresh
59
Download
Advertisement
Key features
PID with Feed-forward Circuitry
Two Temperature Control Loops
Heater Burnout Detection
Eight Banks of Data Settings
Data Setting Console
User Programs for Data Access
Frequently asked questions
The unit supports both thermocouples and platinum resistance thermometers.
It offers two control loops.
Three types of output specifications are available: transistor output (C200H-TC@@1), voltage output (C200H-TC@@2), and current output (C200H-TC@@3).
Heater burnout detection is achieved through a Current Transformer, allowing for quick detection with a minimum current difference of 0.5 A. The detection setting range is 0.1 to 4.9 A, enabling rapid problem correction.
The C200H-DSC01 Data Setting Console (sold separately) is used for inputting data and displaying process values (PV) and set values (SV). It has an easy-to-read display that can be panel-mounted.