Download Getting Started with ControlWave Designer

Transcript
Example – Creating A Simple Project
Now you can proceed to define the irSetpoint, irDeadband, irProportion, irIntegral,
irDerivative, irReset, ibTrack, and orError variables of the PID3TERM by double clicking on
each parameter (see previous examples of this process on pages 35 to 37). Don’t forget to choose
the correct data type (in this case ‘REAL’ or ‘BOOL’), and, for the input variables, assign
appropriate initial values for this example. The table, below, shows the correct data types and
some recommended initial values for this example:
PID3TERM Parameter
Name
IrSetpoint
IrDeadband
IrProportion
IrIntegral
IrDerivative
IrReset
IbTrack
OrError
Data Type
REAL
REAL
REAL
REAL
REAL
REAL
BOOL
REAL
Initial Value for this example
40.0
0.0
2.0
0.5
0.0
0.0
FALSE
Not applicable
Choose F101_OUTPUT which
is the name of PIN1 on the
analog output board.
That just leaves the orOutput parameter of the PID3TERM. Remember that we need to feed the
output of the PID controller out to the analog output process I/O board, so it can actuate the flow
control valve, thereby controlling the flow in the pipeline. We defined the output pin for this
purpose to be F101_OUTPUT; we can reference that now. Double-click on the orOutput and
choose F101_OUTPUT from the “Name” field in the Variable Properties dialog box.
(Remember that to do this, you have chosen the IO_GLOBAL_VARIABLES group from the tree,
and clicked on the “Global” button.
So now we have defined data types for all of our variables, entered initial values where
necessary, etc.
41
Getting Started with ControlWave Designer