Sign in to follow this  
Followers 0
Preet

SCL Source file : How to call "R_Trig "

3 posts in this topic

Hi, I am writing a SCL Source file for a FB.Actually I need to use a R_Trig(Rising edge trigger).But I don't know how to call it in SCL source file and use it.Will somebody help me. Thanks in advance Preet

Share this post


Link to post
Share on other sites
Hello Preet. Before I tell you how to do it, I must warn you against writing code in SCL that is mostly boolean logic. SCL is great for pointers, algorithms, string manipulation and such, but sucks at "normal" logic code. Better is to handle the boolean logic in a separate FB with LAD or FBD, and then call the SCL block for doing the more complex stuff.

Share this post


Link to post
Share on other sites
Hi, Thanks for replying.I do agree with you.It really sucks to write code in SCL even for complex logics coz debugging is really horrible. Nywayz I made a FB for R_Trig and wrote the code in SCL Q :=NOT(Old_Clk) AND Clk ; Old_Clk:= Clk; Nyhow it is working.But yeah better to avoid that . Thanks Preet

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0