![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262395.webp)
16-5
16 Other Functions
CP2E CPU Unit Software User’s Manual(W614)
1
6
-1 PID T
e
mp
eratu
re
Con
tr
o
l
16
16-1-
3
Application Example
•
The Temperature Sensor Unit
’
s temperature input PV is stored in CIO 2.
•
The control output is the transistor output used to control the heater through the SSR using time-pro-
portional control.
•
The PIDAT sampling cycle is 1 second.
•
Control cycle: 20 s
•
When W0.00 turns ON, autotuning is immediately executed and PID control is started with the PID
constants calculated by autotuning.
The CP1W-TS001 Temperature Sensor Unit is used with an input type of K -200 to 1
3
00°C (set the
rotary switch to 0). The decimal values -200 to 1
3
00°C are converted to signed hexadecimal data (FF
38
to 0514 hex) and stored in CIO 2 in the Input Area.
However, the PIDAT instruction can only handle unsigned hexadecimal data as the PV. The value is
thus converted from the range FF
38
to 0514 to the PIDAT instruction input range of 0000 to 1FFF hex
(0 to
8
191) using the APR instruction.
Ladder Programming Example for an Input Range of -200 to 1300°C for a K
Thermocouple
PIDAT
S
D600
C
D100
D
D200
TPO
S
D200
C
D300
D
100.00
RSET
100.00
W
1.00
W
1.00
W
0.00
C:D100
&1966
C+1:D101
&1
C+2:D102
&1
C+3:D103
&1
C+4:D104
&100
C+5:D105
#0002
C+6:D106
#0595
C+7:D107
#0000
C+8:D108
C+9:D109
C+10:D110
#0005
C+11:D111
C+40:D140
C:D300
#0315
C+1:D301
&2000
C+2:D302
&0
C+3:D303
&0
C+4:D304
C+6:D306
APR
S
2
C
D500
D
D600
C:D500
#0800
C+1:D501
-200
C+2:D502
#0000
C+3:D503
+1300
C+4:D504
#1FFF
#0000
#8000
P
u
lse o
u
tp
u
t
W
ork Area
W
ork Area
PV
Scale PV to
w
ithin #0000 to
#1FFF hex
MV
MV
Specify 16-
b
it signed data (
b
it 11: O
N
,
b
it 10: OFF)/
Nu
m
b
er
of coordinates in data ta
b
le: 1 (
b
its 0 to 7: #00 hex)
Minim
u
m manip
u
lated
v
aria
b
le inp
u
t: -200 decimal
(#FF38 hex)
Minim
u
m
v
al
u
e in PID inp
u
t range: #0000 hex
Maxim
u
m manip
u
lated
v
aria
b
le inp
u
t: 1300 decimal
(#0514 hex)
Maxim
u
m
v
al
u
e in PID inp
u
t range: #1FFF hex
Set
v
al
u
e: 160˚C (set as calc
u
lated
v
al
u
e: 1966)
Proportional
b
and: 0.1%
Integral time: 0.1 s
Deri
v
ati
v
e time: 0.1 s
Sampling period: 1 s
Re
v
erse operation (
b
it 00: OFF)/PID constants
u
pdated each
time a sample is taken
w
hile the inp
u
t condition is O
N
(
b
it 01:
O
N
)/2-PID parameter
α
= 0.65 (
b
its 04 to 15: #000 hex)
Inp
u
t/O
u
tp
u
t: 13
b
its (
b
its 00 to 03, 08 to 11: #5 hex)/Integral
and deri
v
ati
v
e constants: Time designation (
b
its 04 to 07: #9
hex)/Manip
u
lated
v
aria
b
le limit control:
N
o (
b
it 12: OFF)
AT exec
u
tion (
b
it 15: O
N
)/AT Calc
u
lation Gain = 1.00
(
b
its 0 to 11: #000 hex)
Limit-cycle Hysteresis = 0.05% (approximately 0.8˚C)
W
hen a
u
tot
u
ning is completed, the content of D109 is a
u
tomatically o
v
er
w
ritten
b
y #0000 hex and the calc
u
lated PID constants are inp
u
t to D101 to 103.
Manip
u
lated
v
aria
b
le range: 13
b
its (
b
its 0 to 3: #5 hex)/
Inp
u
t type: Manip
u
lated
v
aria
b
le (
b
its 4 to 7: #1 hex),
al
w
ays read inp
u
t (
b
its 8 to 11: #3 hex)/O
u
tp
u
t limit
disa
b
led (
b
its 12 to 15: #0 hex)
Control cycle: 20.00 s
N
o
u
pper o
u
tp
u
t limit
N
o lo
w
er o
u
tp
u
t limit
~
~
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......