CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat May 27, 2017 3:26 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: WITH .. DO?
PostPosted: Thu May 18, 2017 12:08 pm 
Offline

Joined: Wed Dec 28, 2016 11:00 pm
Posts: 18
Does anybody know if there is some Codesys OOP variant of the WITH statement?
This type of statement would be usefull when initiliasing objects or setting more then one property at the same time.

pseudocode example;

WITH <object> DO
.<PROPERTY1> := Value1;
.<PROPERTY2> := Value2;
.<PROPERTY3> := Value3;
.<PROPERTY4> := Value4;
END_WITH;


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited