script

Join Date
May 2018
Location
london
Posts
20
please help me to read this script.
also suggest me the link where i can learn script


IF lifting_mov3_p = true
THEN
destination_tank3 := 10;
process_number3 := 1;
END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and phosphating_only = false and process_number3 = 1
THEN destination_tank3 :=11;
process_number3 := process_number3+1;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and phosphating_only = true and process_number3 = 1
THEN destination_tank3 :=15;
process_number3 := 10;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_p = true and process_number3 = 2
THEN destination_tank3 :=12;
process_number3 := process_number3+1;
END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and process_number3 = 3
THEN destination_tank3 :=13;
process_number3 := process_number3+1;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_p = true and process_number3 = 4
THEN destination_tank3 :=13;
process_number3 := process_number3+1;
END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and process_number3 = 5
THEN destination_tank3 :=14;
process_number3 := process_number3+1;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_p = true and process_number3 = 6
THEN destination_tank3 :=14;
process_number3 := process_number3+1;
END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and process_number3 = 7
THEN destination_tank3 :=15;
process_number3 := process_number3+1;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_p = true and process_number3 = 8
THEN destination_tank3 :=11;
process_number3 := process_number3+1;
END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_n = true and process_number3 = 9
THEN destination_tank3 :=12;
process_number3 := process_number3+1;

END_IF;
IF tanknumber3 = destination_tank3 and bottom_limit3_p = true and process_number3 = 10
THEN destination_tank3 :=10;
process_number3 := 1;
END_IF;
 
That script seems to configure a sequence for tank filling in the PLC.

This seems pretty easy to understand... if you want to know special functions available, that will depend on your SCADA package.
 

Similar Topics

Hello. I have a db which is 1000 INT, and this db is represented in WinCC as a raw data type set of 5x 400 Bytes. This set is read with a script...
Replies
1
Views
79
Hello Experts I am working on a project with WinCC Unified v16 PC system and want to create an option on the screen to export logs to the...
Replies
0
Views
70
Hello, I am learning to create shapes and VB Scripts in HMIWeb Display Builder. I wanted to change color of my rounded rectangle by script. I...
Replies
0
Views
121
Hello, I have a quick question. I have been using scripts to change the color of buttons. The reason, I am usually using multiple hmiruntime.tags...
Replies
1
Views
128
Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
815
Back
Top Bottom