You are not logged in.

#1 2017-06-25 18:04:19

Mikhail
Member
Registered: 2017-06-25
Posts: 3

Direct Z control

Hello!
I try to use direct motor control. I connect  motor driver and endstop to the GPIO pins.
It works but not enought correctly... When I try to move platform down - it works. But when I try to move it up it doesn't move and change "Current position" to "0".
What's the problem?
Or I need to use RAspberry board only with RAMPS?

Offline

#2 2017-06-25 21:28:46

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Direct Z control

It is a limit switch issue.

Offline

#3 2017-06-26 01:02:09

bigfilsing
Member
Registered: 2016-11-20
Posts: 100

Re: Direct Z control

Mikhail As per Shahins post it does sound like a limit switch issue . The reason is this. When you power on a machine it has no way of knowing where an axis is until that axis has been homed so it will limit motion until it has homed and hit the limit switch at least once.   From what you have written it sounds like your limit switch is wired wrong or the logic in the software needs changing

Offline

#4 2017-06-26 07:24:07

Mikhail
Member
Registered: 2017-06-25
Posts: 3

Re: Direct Z control

I use optic sensor wired on GND (20), +5V (2) and Limit (signal) (18). Enable Pin State Hight.
RAMPS doesn't know corrent position on power on. It make position at "0" and move up only.

Offline

#5 2017-06-26 10:19:51

bigfilsing
Member
Registered: 2016-11-20
Posts: 100

Re: Direct Z control

At power on the z axis will only move towards home until it has been triggered once.

So you potentially have a couple of problems . Either your motor is working in reverse and /or you end stop logic is incorrect.
So we can use terminal commands to see whats going wrong .
So power off your machine then manually turn the Z axis until its about half way up its travel.
Send the M119 to find out the end stop status This will give you feedback on whether the end stop is triggered or not.
If you place an object in the lightbeam of the end stop it should read triggered and without the object it should be open.
If this doesnt work then either your endstop logic is incorrect or the end stop itself isnt working.
When you are confident the endstop is working then try this >>
Power on the machine but be ready to kill the power if needed.
In terminal send the Gcode command G28 The axis should move towards your end stop ( down) and stop when the end stop is reached.
If it doesnt you can either change the direction in the firmware or change the wiring of the stepper motor

Offline

#6 2017-06-26 10:34:20

Mikhail
Member
Registered: 2017-06-25
Posts: 3

Re: Direct Z control

Ok! bigfilsing, thank you!
I forget that my stepper driver can be wired in 2 ways. I'll chek it

Offline

Board footer

Powered by FluxBB