Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 652

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Control Instructions
0.00
1000
D200
2000
Parameters
PV: word
1000
PID control
Manipulated variable output:
CIO 2000
Input Values and
Manipulated Variable
Ranges
012C
C: D200
Set value: 300
C+1: D201
0064
Proportional band: 10.0%
C+2: D202
04B0
Integral time: 120.0 s
C+3: D203
0190
Derivative time: 40.0 s
C+4: D204
0032
Sampling period: 0.5 s
C+5: D205
0008
C+6: D206
0494
C+7: D207
0000
C+8: D208
0000
C+9: D209
Work Area
to
C+38: D238
Note
The number of valid input data bits for the measured value is designated by
the input range setting in C+6, bits 08 to 11, and the number of valid output
data bits for the manipulated variable output is designated by the output range
setting in C+6, bits 0 to 3. These ranges are shown in the following table.
C+6, bits 08 to 11 or
Number of valid bits
C+6, bits 00 to 03
0
8
1
9
2
10
3
11
4
12
5
13
6
14
7
15
8
16
If the range of data handled by an Analog Input Unit or Analog Output Unit
cannot be set accurately by setting the number of valid bits, APR(069)
(ARITHMETIC PROCESS) can be used to convert to the proper ranges
before and after PID(190).
The following program section shows an example for a DRT1-AD04 Analog
Input Unit and DRT1-DA02 Analog Output Unit operating as DeviceNet
slaves. The data ranges for these two Units is 0000 to 1770 hex, which cannot
be specified merely by setting the valid number of digits. APR(069) is thus
used to convert the 0000 to 1770 hex range of the Analog Input Unit to 0000
to FFFF hex for input to PID(190) and then the manipulated variable output
from PID(190) is converted back to the range 0000 to 1770 hex, again using
APR(069), for output from the Analog Output Unit.
Reverse operation (bit 00: 0) /PID constant updating
timing=input condition is ON (bit 01: 0)/ set value =
manipulated variable output 50% (bit 03: 1) / 2-PID
parameter = 0.65 (bits 04 to 15: 000 hex)
Manipulated variable output range: 12 bits (bits 00 to 03:
4 hex) Integral/derivative constant: time designation (bits
04 to 07: 9 hex) Input range: 12 bits (bits 08 to 11: 4 hex)
Manipulated variable limit control: No (bits 12: 0 hex)
When CIO 0.00 is OFF, operation can be the same
as manual operation by writing to CIO 2000.
0000 to 00FF hex
0000 to 01FF hex
0000 to 03FF hex
0000 to 07FF hex
0000 to 0FFF hex
0000 to 1FFF hex
0000 to 3FFF hex
0000 to 7FFF hex
0000 to FFFF hex
Section 3-17
Range
619

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents