script

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 everyone. On my current job, I have to copy the program of an old PLC to a new one, but I only have a transcript of the original program...
9
Replies
510
Views
I have a TP900 that is connected to a PC, we use it to read out CSV files stored on the PC to populate recipe data. Occasionally and for no...
0
Replies
311
Views
Hello, I am trying to bind a script to a button, that copies a .csv file from my project into an usb-stick, but I can't make it work. This is what...
0
Replies
951
Views
I know I have done this in the past, but now i cannot find an old app that has it. Basically I navigate it to a flow meters web page, then copy...
2
Replies
586
Views
Hi everyone, I'm trying to make sure that a faceplate in Cimplicity always stays in front of the screen and doesn't get hidden behind other...
0
Replies
811
Views
Top