Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-07 11:10 PM
Hi, all🙂
I am looking for set/reset expression on ST language.
I found that machine expert(previously Somachine) support set/reset instruction.
( s= / r= )
But it seems that it is not the ST but ExST.
So I reached this conclusion. "ESME-HVAC don't support set/reset on ST".
Is there any other way to use set/reset instruction on ST?
even similar expression will be helpful.
Thank you!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-07 11:40 PM
Hello,
Codesys offer this enhancement of the language ST. Regarding to this the most codesys based softwares like ESME or SOM offer also this feature. ESME HVAC is not based on codesys. And it offers in my personal expirence not this feature and not this language extension.
But I did not understand the use case or the advantag of this expression.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-11-08 03:12 AM
Hello,
some alternatives to Set/Reset functions in ST are:
Set:
IF <Set condition> THEN
xVar :=TRUE;
END_IF;
or
xVar := SEL(<Set Condiftion>,xVar,TRUE);
or
SR RS bistable function blocks (Basic Library)
For Reset:
IF <Set condition> THEN
xVar :=FALSE;
END_IF;
or
xVar := SEL(<Set Condiftion>,FALSE,xVar);
or
SR RS bistable function blocks (Basic Library)
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.