PcoValCon (FB)
FUNCTION_BLOCK PcoValCon
This function block is designed for controlling a control valve. The function block has build in a PID-controller, and software for Manual positioning.
- InOut:
Scope
Name
Type
Initial
Comment
Input
SpExtINT0
1: External setpoint. Calculated setpoint or output from another PID controller (e.g. PCO_PIDCON) in a cascade control system.
PVINT0
2: Process value (to be controlled). Process value obtained from the system
TrackBOOLFALSE
3: Tracking mode. PCO_VALVCON can be set in Tracking mode if Track = TRUE. Output of the controller will be set to TRACK_VALUE. (Track mode has higher priority compared to balancing mode). Track is independent of operation mode of PCO_VALVCON.
TrackSpINT0
4: Tracking value. Output of the controller will be set to TrackSp if Track = TRUE
BalBOOLFALSE
5: Balancing mode. PCO_VALVCON can be set in Balancing mode if Bal = TRUE and Track = FALSE. Output of the controller will be set to BalSp. Bal is independent of operation mode of PCO_VALVCON.
BalSpINT0
6: Balancing setpoint. Output of the controller will be set to BalSp if Bal = TRUE
RevActBOOLFALSE
7: RevAct = FALSE, controller will increase output if Setpoint is less than Process value. RevAct = TRUE, control- ler will decrease output if Setpoint is greater than Process value
EnAutoBOOLTRUE
Enable auto operation of PID controller
EnOpnBOOLTRUE
9: Enable valve to open
EnClsBOOLTRUE
10: Enable valve to close
ActPosINT0
11: Actual position of the valve Scaling 0-10000
OpnBOOLFALSE
12: Valve is open
ClsBOOLFALSE
13: Valve is closed
RdyBOOLTRUE
14: Valve is ready for operation. (Ready=FALSE results in external error)
RemoteBOOLTRUE
15: Valve can be controlled from OS (Remote=FALSE means local operation)
InhibErrorBOOLFALSE
16: InhibError=TRUE : Suppress all alarm. InhibError=FALSE : No suppression
Alarm1BOOLFALSE
17: Auxiliary alarm no. 1
Alarm2BOOLFALSE
18: Auxiliary alarm no. 2
Alarm3BOOLFALSE
19: Auxiliary alarm no. 3
Alarm4BOOLFALSE
20: Auxiliary alarm no. 4
Alarm5BOOLFALSE
21: Auxiliary alarm no. 5
Alarm6BOOLFALSE
22: Auxiliary alarm no. 6
RampTimeTIMETIME#30s0ms
23: Actuator time. (from 0% to 100 % position)
RampActiveBOOLFALSE
24: RampActive= TRUE activates ramp under manual positioning.
Inout
Scada25: Structure variable for connection to Scada system
Output
ErrorBOOLFALSE
Operation continues with error. The output ErrorID gives more details about the error.
OutINT0
1: Output from the controller (0-27648)
OutMaxBOOLFALSE
2: Output limited to the high value
OutMinBOOLFALSE
3: Output limited to the low value
ErrorIDERROR_ID.NO_ERROR
4: Err number, Output provides an error identifier if an invalid value was applied to an input