Sign in to follow this  
Followers 0
Rocll

Problem with SPED(885) instruction

3 posts in this topic

Hello all, I am experimenting with pulse output to a step motor. I achieved succes with simple instructions like P_0_02s. So I decided to try combining PULS(886) and SPED(885) instructions to make the step motor sping 360 º with a frequency of 1khz. Here I attach the ladder diagram of the program I made: MOV instruction referred to D0 Contains number of pulses to be output (1600 Pulses to spin 360 º) MOV instruction referred to D10 Containus target pulse output frequency (1000 Hz) (tried entering both as hexadecimal and integer) My problem is that 0.04 is detected but there is no pulse output at all at 100.02(pulse) nor 100.03(direction). I believe the problem is on SPED instruction as u can see that on the bottom part of dialog box there is a very big integer (&50332648,D) which exceeds the pulse output capacity (100 KHZ). I have tried storing the target frequency in all ways i could think of and problem still persists. No output light lit on 100.02 and 100.03 either. I would appreciate if you could point me what have I done wrong here or what am I missing. Thanks a lot in advance, and cheers for nice community! EDIT: Wrote STEP instead of SPED. Edited by Rocll

Share this post


Link to post
Share on other sites
Read Jay Anthony's excellent guide in the download section. http://forums.mrplc.com/index.php?app=downloads&showfile=268

Share this post


Link to post
Share on other sites
Hey bits, problem solved, thanks for the reference it was of great help!

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