SCADA Application Solutions
Application of KingView PID Control
KingView’s KingviewPid control provides specialized control for the process volume to process closed-loop control. Through the control use may easily create PID control.
1. Control Functions:
a. PID control algorithm: Standard type is divided into incremental output and reverses effect.
b. Display process variable’s precise value, display range (-999999.99~999999.99).
c. Use percentage to display setting value (SP), actual valve (PV) and manual setting value (M).
d. Under the development condition may establish control’s overall attribute, settings/restore setting and parameter setting.
e. Operating status can be manually set by PID parameters and manual/automatic switch.
2. Operating instructions:
a. At the screen insert control: KingView screen menu’s edit/insert general control, or single-clicks "insert general control" button from the toolbox, in the pop up box select "KingView Pid Control", single click.
b. Presses down the mouse left key and drag on the screen to map region.

Graph 1 Control Screen
c. Settings of animation connection: Double-click control or select right key menu’s animation connection, in the pop up box establish control information and so on.
(1) Conventional:

Graph 2 Animation Connection Properties - Conventional
Setting control nameFShould be consistent with KingView’s name definition’s provision, such as: PIDCtrl0.
Priority: Is control’s operation priority, range in 1~999.
Safety range: safety range only allows choosing.
(2) Property Type Associated Objects:

Graph 3 Animation Connection Properties - Properties
SP: FLOAT, Controller settings.
PV: FLOAT, Controller feedback value.
YOUT: FLOAT, Controller's output value.
Type: LONG, PID’s type.
CtrlPeriod: LONG, Control cycle.
FeedbackFilter: BOOL, Feedback adding filters.
FillterTime: LONG, Filtering time constant.
CtrlLimitHigh: FLOAT, Control of high limit.
CtrlLimitLow: FLOAT, Control of low limit.
InputHigh: FLOAT, SP settings high limit.
InputLow: FLOAT, SP settings low limit.
OutputHigh: FLOAT, Feedback value of PV high limit.
OutputHigh: FLOAT, Feedback value of PV low limit.
Kp: FLOAT, Proportional coefficient.
Ti: LONG, Integrate time constant.
Td: LONG, Differential time constant.
Tf: LONG, Filtering time constant.
ReverseEffect: BOOL, Reverse effect
IncrementOutput: BOOL, whether the incremental is output.
DeadBandLow: Long, Invalid.
Status: BOOL, Manual automatic condition.
M: FLOAT, Manual automatic setting.
PercentRange: float, manual adjustment’s adjustment rate, the default is 1 (click in the run-time parameter button to manually adjust the ratio in the regulation of this parameter inside). New features.
Note: When associated variables and only when the control is on the active windows the function can be executed.
3) Use of Command Language
a. When using Variables Association:
At this point, only the controls that are on the screen which are active can be functioned.
If the project has multiple screens, PID control and the screen is not always in a state of activation, command language should be used use of PID control. That is, in the control of the screen where the screen command language uses assignment method, display the exchange value of PID control. Select the screen command language’s control, as followed:

Graph 4 Control Properties and Methods
In the property or method to select the appropriate option, when in the presence of command language, if we choose to SP and double- click it then the following will shows:

Graph 5 Screen Command Language
Display time: When the screen is displayed by the implicit into the "display" edit box the command language will be executed once.
Saved time: As long as the existence of the screen is "saved time" edit box on the command language repeated in accordance with the set time cycle.
Implied time: When the screen or implied by the show into the closure of the "implied time" edit box the command language will be executed once.
Enter the command language, shown below:

Graph 6 Screen Command Language
Among this, SP for setting variables, PV for feedback variable, YOUT for the controller output variables.
b. In the use of engineering applications browser command language: Application Language can be the implementation of the proceedings, the closure of the implementation or program to run during the regular implementation.
(1) Open Project Browser:

Graph 7 Application of Command Language
Application of Command Language’s procedure compiles with above. The procedure as followed:

Graph 8 Application Procedure Command Language
4 Set control properties: Right click choose menu’s "control property". Pop-up controls the inherent properties of page, can be set up following attributes:
(1) Overall property:

Graph 9 Overall property
Control cycle: PID control cycle integer greater than 100. And control cycle must be greater than the system-sampling period.
Feedback filters: Pv value added to the PID regulator can be added before a low-pass filter.
Output limiter: Controller's output limiter Yout value.
(2) Settings/feedback variable range:

Graph 10 Settings/feedback variable range:
Input variables: Sp settings or feedback pv corresponds the maximum value (100%) and minimum (0%) the actual value.
Setting value sp and the feedback value pv’s general maximum value and minimum value are the same.
Output variable: Value of exports Yout correspondence maximum value (100%) and minimum value (0%)’s actual value.
(3) Parameter choice:

Graph 11 Parameter choice
PID type: Choice to use standard type
Proportional coefficient Kp: Set the ratio coefficient. General range: 1-10
Integration time Ti: Set integral time constant is the integral of the output for each additional item with the proportion of output value equal to the time required. General range: 1000-5000ms
Differential time Td: Differential time constant is set for the same amount of output regulation, differential term advance in the proportion of response time. General range: 0
Reveres effect: receive reverse output value
Increase output: The controller outputs as increase.
5. Run-time operation:
Manual/automatic automatically, Regulating role of controller input. Manually, controller output for the manual settings range after the actual value after conversion. Manually set to M, is YOUT value.
Manual setting (up / down), each click will manually set increase/decrease of 1%
6.Run-time parameter settings: As shown in Graph 12
Standard PID parameters: Proportional coefficient, integral constant, constant differential, PID conventional parameters
Reverse effect: receive reverse output value
Under manual circumstances setting of the manual ratio adjustment:

Graph 12 PID Parameter settings
3. Features currently not supported:
a. Incremental temporary object is not easy to achieve
b. Control cycle cannot be lower than the sampling period.