CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 16, 2018 6:21 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Oct 18, 2018 8:23 am 
Offline

Joined: Tue Sep 12, 2017 9:37 am
Posts: 77
hello:

There is some way to declare variables to detect if a change has occurred in them and to undertake an action, method or execute ST command.

Best Regards


Top
   
PostPosted: Thu Oct 18, 2018 6:23 pm 
Offline

Joined: Sun Jun 28, 2015 12:23 pm
Posts: 64
IF myVar <> oldMyVar THEN
oldMyVar := myVar;
//do something
END_IF;

or

xExecute := (myVar <> oldMyVar);
oldMyVar := myVar;


Top
   
PostPosted: Mon Oct 22, 2018 8:32 am 
Offline

Joined: Tue Sep 12, 2017 9:37 am
Posts: 77
hello:

Very thanks, but my question was oriented to whether there is a property that you can give to some points to know that they have modified their value, or to launch an action when one is modified.

Best Regards,


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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