Panasonic FP Series Programming Manual page 949

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Process control instructions
ST
When programming with structured text, enter the following:
(* Auto Tuning: *)
if
DF(bStartAutoTuning)
ControlData.b0_AT_Request:=TRUE;
end_if;
y_bPwmOutput:=F356_PID_PWM(
Control
ParametersHold
ParametersNonHold
ProcessValue
F356_Control_DUT
This data type, a DUT with overlapping elements (see page 53), is predefined in the FP Library and is used by
the function F356_PID_PWM (see page 945).
We recommend specifying the non-hold type area.
Identifier
Description
Since this is a DUT with overlapping elements, the BOOL members occupy the same
w0
data areas as the WORD member w0. Therefore by using w0 you can
simultaneously access all bits.
When set, auto- tuning is requested. This bit is reset with the instruction
b0_AT_Request
F356_PID_PWM when auto-tuning is complete. Reset this bit to cancel auto-tuning.
(bit 0)
When not set, PID control will be executed.
When set, auto-tuning has been completed successfully.
b1_AT_Complete
(bit 1)
When set, the manipulated value output is held by switching F356_PID_PWM (see
b2_HoldMV
page 945) from off to on.
(bit 2)
FALSE to use PWM control.
b3_UseAnalogOutpu
tControl
TRUE to use an analog output unit for output. In this case transmit the output value
(bit 3)
(F356_Parameters_NonHold_DUT.MV) to WY of an analog output unit.
When FALSE, the maximum value of the internal output is the output upper limit
b4_UseReducedInter
value +20% of the output range (output upper limit value - output lower limit value),
nalOutputRange
and the minimum value is the output lower limit value -20% of the output range.
(bit 4)
When TRUE, the maximum value of the internal output is the output upper limit value,
and the minimum value is the output lower limit value.
The output upper limit value is specified by
F356_Parameters_NonHold_DUT.UpperLimit, and the output lower limit value is
specified by F356_Parameters_NonHold_DUT.LowerLimit.
Are reserved and normally 0.
Bits 5–F
948
then
Run
:= ControlData,
:= ParametersHold,
:= ParametersNonHold,
:= x_iTemperatureInput);
:= bRunPidControl,

Advertisement

Table of Contents
loading

Table of Contents