Learn YOKOGAWA-CENTUM-VP with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
PID Loop Automation
SP := 100;
PV := ProcessVariable;
CV := PID_Compute(SP, PV, Kp := 1.0, Ki := 0.1, Kd := 0.01);
Output := CV;
Automate a PID loop using Centum VP scripting functions.
2
Conditional Alarm Handling
IF Alarm1.Active THEN
SendNotification('Alarm1 triggered');
CloseValve(Valve1);
END_IF;
Trigger an action when a process alarm occurs.
3
Batch Step Control
IF SensorInput = TRUE THEN
BatchStep.Advance();
END_IF;
Advance a batch process step based on sensor input.