Example 1
1) Create window Tagname as shown in below window
add below code in window script --> onshow
************************************************************
v1 = 0;
v2 = 0;
v3 = 0;
tank1 = 0;
tank2 = 0;
sw1 = 0;
s1 = 0;
s2 = 0;
s3 = 0;
s4 = 0;
v2 = 0;
v3 = 0;
tank1 = 0;
tank2 = 0;
sw1 = 0;
s1 = 0;
s2 = 0;
s3 = 0;
s4 = 0;
*****************************************
2) Add below code in Window script --> while show
**************************************************************
IF tank1 == 100 THEN
s1 =1;
ELSE s1 = 0;
ENDIF;
IF tank1 == 0 THEN s2 = 0;
ELSE s2 = 1;
ENDIF;
IF tank2 == 200 THEN s3 = 1; ELSE s3 =0; ENDIF;
IF tank2 == 0 THEN s4 = 0; ELSE s4 = 1; ENDIF;
IF s1 ==1 AND s2 == 1 THEN v3 = 1; v1 =0; v2 =0;
ENDIF;
IF s1 == 0 AND s2 ==0 THEN v3 =0; v1 = 1 ; v2 = 1;
ENDIF;
IF s3 ==1 AND s4 ==1 THEN v3 = 0;
ENDIF;
IF v1 ==1 AND v2 == 1 THEN
tank1 = tank1 + 1;
ENDIF;
IF v3 == 1 THEN
tank1 = tank1 - 1;
tank2 = tank2 + 1;
ENDIF;
s1 =1;
ELSE s1 = 0;
ENDIF;
IF tank1 == 0 THEN s2 = 0;
ELSE s2 = 1;
ENDIF;
IF tank2 == 200 THEN s3 = 1; ELSE s3 =0; ENDIF;
IF tank2 == 0 THEN s4 = 0; ELSE s4 = 1; ENDIF;
IF s1 ==1 AND s2 == 1 THEN v3 = 1; v1 =0; v2 =0;
ENDIF;
IF s1 == 0 AND s2 ==0 THEN v3 =0; v1 = 1 ; v2 = 1;
ENDIF;
IF s3 ==1 AND s4 ==1 THEN v3 = 0;
ENDIF;
IF v1 ==1 AND v2 == 1 THEN
tank1 = tank1 + 1;
ENDIF;
IF v3 == 1 THEN
tank1 = tank1 - 1;
tank2 = tank2 + 1;
ENDIF;
super sir i need more examples like it
ReplyDeletenice
ReplyDeleteyou can guide more intouch
ReplyDeletewhats means ''tank1 -1'' and ''tank2+1'' ?
ReplyDeletei need more examples like this
ReplyDeleteNice Blog...
ReplyDeleteThanks for Sharing...
PLC and SCADA Training,
PLC Training in Delhi,
Industrial Automation Training.
Automation PLC SCADA Training
Industrial Training in Delhi NCR
Internships in Noida NCR
This comment has been removed by a blog administrator.
ReplyDeleteNice blog...
ReplyDeleteThanks for Sharing...
PLC and SCADA,
Industrial Training,
Internships,
PLC Training,
Industrial Automation Training
Boom Barrier Manufacturers in Chennai
ReplyDeletegood ..
ReplyDeleteGood Post. I like your blog. Thanks for Sharing
ReplyDeleteSCADA Training in Noida
thanks to you such usful information....
ReplyDeleteI need more examples such as variable data reading.
Thanks for sharing such a great blog Keep posting..
ReplyDeleteindustrial Automation Training in Delhi
industrial Automation Training institute in Delhi
ReplyDeleteAPTRON Gurgaon provides real-time and placement oriented R Programming Training in Gurgaon. Our R Programming Training course includes basic to advanced level and our R Programming Training course is designed to get the placement in major MNC companies in Gurgaon when you complete the R Programming Training in Gurgaon from our institute.
For More Info: R Programming Training in Gurgaon
ReplyDeleteHello, Good Article you know your article it's useful me and Thanks for Sharing Information.
Industrial Automation Training in Delhi
ReplyDeleteI'm too lazy to sign up an account just for comment your article. it's really good and helping dude. thanks!
Industrial Automation Training in Delhi
Thank you for sharing information. Wonderful blog & good post.
ReplyDeleteLoad testing companies in UAE
EVERYBODY READ THIS TESTIMONY ON HOW I GOT MY LOAN FROM A LEGIT AND TRUSTED LOAN COMPANY My name is Kjerstin Lis, I have been searching for a loan to settle my debts, everyone I met scammed and took my money until I finally met Mr, Benjamin Breil Lee He was able to give me a loan of R 450,000.00.He also helped some other colleagues of mine. i am talking as the happiest person in the whole wide world today and i told my self that any lender that rescue my family from our poor situation, i will tell the name to the whole wide world and i am so happy to say that my family is back for good because i was in need a loan to start my life all over as i am a single mum with 3 kids and the whole world seemed like it was hanging on me until i meant the GOD sent loan lender that changed my life and that of my family, a GOD fearing lender, Mr, Benjamin, he was the Savior GOD sent to rescue my family and at first i thought it was not going to be possible until i received my loan, i invited him over to my family get-together party which he did not decline and i will advise any one who is in genuine need of a loan to contact Mr, Benjamin Breil Lee via email at (lfdsloans@outlook.com ) because he is the most understanding and kind hearten lender I have ever met with a caring heart. He doesn't know that i am doing this by spreading his goodwill towards me but I feel I should share this with you all to free yourself from scammers, please beware of impersonators and contact the right loan company Email us via: lfdsloans@outlook.com or whatsapp +1-989-394-3740. .
ReplyDeleteIf you are searching for best industrial automation training institute in delhi ncr, then get enrolled with DIAC. Online or Classroom training with practical demos, dedicated practical sessions, placement assistance; everything is provided to make your training a successful one. You will get expert guidance and a complete personality transformation here. Call now 91-9953489987/9711287737.
ReplyDeletethakyou sir
ReplyDeleteGood job
ReplyDeleteSmm panel
ReplyDeletesmm panel
iş ilanları
İnstagram takipçi satın al
HİRDAVATCİBURADA.COM
beyazesyateknikservisi.com.tr
servis
TİKTOK HİLE
ümraniye mitsubishi klima servisi
ReplyDeletebeykoz vestel klima servisi
üsküdar vestel klima servisi
beykoz bosch klima servisi
üsküdar bosch klima servisi
çekmeköy alarko carrier klima servisi
çekmeköy daikin klima servisi
ataşehir daikin klima servisi
maltepe toshiba klima servisi