Arum

How To use Timer Pulse in SOmachine

3 posts in this topic

Hello All,

I am quite new using SoMachine version 1.5. I am just trying to use Timer Pulse Fucntion block. I my understanding the timer pulse function block can generate pulse in the output. Hereby I attach the programm ive made. In this program, i want to add %MW0 by 1 until 10 second. I expect the result is 10 but when I simulate the program, it add 10 in every second. Why this is happend? Do I have a wrong understanding about the timer pulse. When I read the help I think this timer is the same as timer on. 

 

Thank you for your help

Regards, Arum

Capture.PNG

Share this post


Link to post
Share on other sites

Posted (edited)

Hallo Arum apa khabar ?

The problem at the trigger of function block must be put the pulse (rising edge). With out rising edge, the function block will execute every scan time. Please remember, the scan time is very fast. Please try this logic below :

 

that is my suggest.

Regards

TP_Logic.jpg

Edited by Azdi Mus

Share this post


Link to post
Share on other sites

Just a sidenote. This is somachine basic. Not to be confused with somachine

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