1/9/2024 5:05 PM | |
Joined: 11/9/2023 Last visit: 1/11/2024 Posts: 8 Rating:
|
Hi All, I am very new to the Logo! and recently posted about using it for some stepper motor drives. For this program I need to turn on the stepper motors for 180 degrees then stop the motor for 20 seconds before it repeats the process. I had originally tried using this through counting the pulses through the PWM but could not find a way to only send 100 pulses so I have tried to pivot to using an Automation Direct normally closed proximity sensor (DW-AS-614-M18-002) and SureStep Motor and Driver (STP-MTRAC-34156andSTP-DRVAC-24025). I have gotten the Logo! to turn on and off the motors using the C1 a pulse relay and a PWM to Q1 (Which can be seen in the 2 modified versions, but it will only let me upload 1 image). I tried modifying this program in 2 ways (The C2 and I2 should be C1 and I1 it just shows my two modifications in one image) to get the sensor to act as a trigger to turn off the motor, but neither of these methods worked. I was hoping someone could help me as I believe it is an issue with how I have the sensor setup. Whenever the sensor is triggered, the lights on the sensor housing are acting as they should (off when metal is present) but I am not sure how to tell if the Logo! is receiving the signal from the sensor to turn off the motor. I may also have a programming error which could be easily fixed and I apologize for the simple questions. I am very new to electrical work in any capacity as my background is completely mechanical. Thank you for all your help AttachmentScreenshots.zip (351 Downloads) |
Last edited by: TJG3D at: 01/09/2024 17:06:46Last edited by: Jen_Moderator at: 01/10/2024 10:41:24All files added as .zip file. |
|
1/9/2024 5:13 PM | |
Joined: 12/18/2014 Last visit: 9/7/2024 Posts: 33710 Rating:
|
You use the PWM block without knowing of the function of the block ... |
1/11/2024 4:36 PM | |
Joined: 12/18/2014 Last visit: 9/7/2024 Posts: 33710 Rating:
|
Here a example for the highest speed. |
This contribution was helpful to
2 thankful Users |
Follow us on