Sign in to follow this  
Followers 0
Miften

PWM Block in ST/Ladder Program -

4 posts in this topic

Hello again! This time I have issues with PWM Block in GX Works 2. Im using it to control output for Rudder Machine. S1 Time is Pulse time S2 is response wait time. I follow the rules that S1, S2 cannot be zero, N2<N1. I compile and run the program. Everything is ok, program works perfectly. Sometimes when I modify instructions in PWM Rung - i get an error No. Result Data Name Class Content Error Code 4 ERROR POU_01 Program compile Invalid list code 'PWM D992 D990 M1524'(Ladder Block No.7) F0161 I pinpoint that I use 2 block of PWM one for each side. They cannot work at the same time. See attachments with code Thank you in advance! Edited by Miften

Share this post


Link to post
Share on other sites
The PWM instruction should be used with an Y0 - Y 7 output.

Share this post


Link to post
Share on other sites
Thank you! Go_Left Variable is Y0 but when i connect another line after PWM it get an error. Thanks for fast reply!

Share this post


Link to post
Share on other sites
Maybe you should upload an ascii file for this part of the code so we can check

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