PcoPidCon (FB)
FUNCTION_BLOCK PcoPidCon
This function block is designed to be the primary controller to e.g. PCO_MOTCON or PCO_VALVCON. 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_PIDCON 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_PIDCON.
TrackSpINT0
4: Tracking value. Output of the controller will be set to TrackSp if Track = TRUE
BalBOOLFALSE
5: Balancing mode. PCO_PIDCON 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_PIDCON.
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, controller will decrease output if Setpoint is greater than Process value
EnAutoBOOLTRUE
Enable auto operation of PID controller
ActPosINT0
9: controller position of the controller Scaling 0-10000
RampTimeTIMETIME#30s0ms
10: Controller time. (from 0% to 100 % )
RampActiveBOOLFALSE
11: RampActive= TRUE activates ramp under manual positioning.
Inout
Scada12: 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 of 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