Tutorial 18 (SCADA script Project)

preview_player
Показать описание
Script Program
Рекомендации по теме
Комментарии
Автор

Script Program
IF s1 == 1 AND BS <= 100 AND B1 <= 100
THEN
BS = BS + 1;

B1 = B1 + 1;
BV = 1;
ELSE

BV = 0;
ENDIF;
IF s1 == 1 AND BV == 0 AND B2 <= 100
THEN

B2 = B2 + 1;
BV2 = 1;
ENDIF;
IF s1 == 1 AND B2 == 100
THEN
SE1 = 1;

ENDIF;
IF SE1 == 1 AND F1 <= 100
THEN
F1 = F1 + 1 ;
ENDIF;
IF SE1 == 1 AND F1 > 99 AND BF <= 100
THEN
BF = BF + 1;
ENDIF;

IF BF == 100
THEN
BV2 = 0 ;
BV3=1;

ENDIF;
IF BV3 == 1 AND B3 <= 100
THEN
B3=B3 + 1;
ENDIF;
IF B3 == 100
THEN
SE2 = 1;
ENDIF;
IF B3 > 1 AND F1 >= 50
THEN
SE1 = 0;
F1=F1 - 1;
ENDIF;
IF B3 == 100
THEN
SE2 = 1;

ENDIF;
IF SE2 == 1 AND F2 <= 100
THEN
F2 = F2 + 1;
ENDIF;
IF F2 == 100
THEN
BV3 = 0;
BV4 = 1;
ENDIF;
IF BV4 == 1
THEN
B4 = B4 + 1;
ENDIF;
IF B4 > 1 AND F2 >= 50
THEN
SE2 = 0;
F2 = F2 - 1;
ENDIF;
IF B4 == 100
THEN
SE3 = 1;
ENDIF;

IF B4 == 100
THEN
SE3 = 1;
ENDIF;
IF SE3 == 1 AND F3 <= 100
THEN
F3 = F3 + 1;
ENDIF;

IF F3 == 100
THEN
BV4= 0;
BV5 = 1;
ENDIF;
IF BV5 == 1 AND B5 <= 100
THEN
B5 = B5 + 1;
ENDIF;
IF B5 > 1 AND F3 >= 50
THEN
SE3=0;
F3= F3 - 1;

ENDIF;

IF B5 == 100
THEN
BV5 = 0;
BV6 = 1;
ENDIF;
IF BV6 == 1 AND B6 <= 100
THEN
B6 = B6 + 1;
ENDIF;

IF B6 >= 100
THEN
BV6 = 0;

BV7 = 1;

ENDIF;
IF BV7 == 1 AND B7 <= 100 AND RACK <= 100
THEN
B7 = B7 + 1;
RACK = RACK + 1;
BV6 = 0;


ENDIF;
IF RACK > 99
THEN


B1 = 0;
BS = 0;

BV=0;
BV2 = 0;
B2 = 0;
SE1 = 0;
F1 = 0;
BF = 0;
B3 = 0;
F2 = 0;

BV3 = 0;
SE2=0;
SE3=0;
B4 = 0;
BV4 = 0;
F3 = 0;
BV5 = 0;
B5 = 0;
B6 = 0;
BV6 = 0;
B7 = 0;
BV7 = 0;
RACK = 0;

ENDIF;

viraj-eautomation