Skip to content
Snippets Groups Projects
Commit 8dbe2ec6 authored by Jean-François Denis's avatar Jean-François Denis
Browse files

Add script to change PLC screens

parent fe282302
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
var pv0 = PVUtil.getString(pvs[0]);
if (pv0 == "home") {
widget.setPropertyValue("opi_file", "");
widget.setPropertyValue("opi_file", "/CSS/emu-plc-test/1-Home.opi");
} else if (pv0 == "fm123") {
widget.setPropertyValue("opi_file", "");
widget.setPropertyValue("opi_file", "/CSS/emu-plc-test/2-FM1,2,3.opi");
} else if (pv0 == "fm45") {
widget.setPropertyValue("opi_file", "");
widget.setPropertyValue("opi_file", "/CSS/emu-plc-test/3-FM4,5.opi");
} else if (pv0 == "InOut") {
widget.setPropertyValue("opi_file", "");
widget.setPropertyValue("opi_file", "/CSS/emu-plc-test/4-Inout_value.opi");
} else {
pv0 = "home";
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment