Posted 27 Nov 2014 (edited) 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 27 Nov 2014 by Miften Share this post Link to post Share on other sites
Posted 27 Nov 2014 The PWM instruction should be used with an Y0 - Y 7 output. Share this post Link to post Share on other sites
Posted 27 Nov 2014 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
Posted 27 Nov 2014 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