Sign in to follow this  
Followers 0
mulderm

Calling Subroutine

3 posts in this topic

Hello, I use Microwin V4.0 for a S7/222 CPU. In the main programma I calling a subroutine(name grafcet) when I0.0 =´1´ for activating the subroutine. When I calling I want all the steps in the grafcet (M0.1to M0.6) setting to ´0´ and set the step M0.0 to ´1´. This must happening for 1 scan when I0.0 = ´1´ Who can help me how to program for this? mulderm

Share this post


Link to post
Share on other sites
Hello, i hope i understand you, you want to call sbr0 only 1 time when you switch I0.0 on, try this: LD I0.0 EU CALL SBR_0 good luck dietmar

Share this post


Link to post
Share on other sites
Run the subroutine off a rising pulse input. Or do your bit set and reset off that rising pulse.

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