Digital Dream Technology support

Title: Limit Switches [Print This Page]

Author: jsz    Time: 2019-11-6 14:42
Title: Limit Switches
I want to control one motor and detect 3 limit switches for a simple conveyor belt.
As the belt moves an object on it will be detected by the limit switch/sensor and stop the motor and wait for another limit switch to start again.
My problem is how to detect the limit switches on/off in the code.
I have searched a lot but cannot find in any Gcode lists on how to detect the limit switches.
Any help please!
Author: ytliu    Time: 2019-11-6 20:12
Sorry,DDCS does not have M instruction for limit status monitoring.
Author: jsz    Time: 2019-11-7 05:33
Thanks ytliu but then why are there inputs?
DDCSV2.1 has made the following changes on the basis of DDCSV1.1:
1: The input signal is modified to support the NPN switch;
2: Support limit and the home share the input port;
So I have NPN limit switch that I want to detect - how?
I want to use home/limit port - how do I detect a signal?
How can these inputs be used?
Author: Will_D    Time: 2019-11-8 20:48
The limit switches are used by the firmware to home the axes and prevent crashes [the hard limits]. There is no interface to g-code as implemented in this controller. Use an Arduino or Raspberry Pi
Author: jsz    Time: 2019-11-8 21:40
Well I already bought one based on the details shown.
So parameter #116-#119 set HOME, LIMIT++, LIMIT-- cant be used to change HOME to LIMIT?
There really is no way to use this with any inputs?
What about using the MPG inputs - could I use any of those?




Welcome Digital Dream Technology support (http://bbs.ddcnc.com/) Powered by Discuz! X3