Limit Switches - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
View: 10225|Reply: 4
Print Previous Topic Next Topic

Limit Switches

[Copy Link]

1

Threads

3

Posts

15

Credits

Newbie Member

Rank: 1

Credits
15
Jump to the specified floor
Landlord
Posted at 2019-11-6 14:42:38 | Only Author Replies reward |Descending browser |Read mode
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!
Reply

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
Sofa
Posted at 2019-11-6 20:12:18 | Only Author
Sorry,DDCS does not have M instruction for limit status monitoring.
Reply Support Opposition

Use props Report

1

Threads

3

Posts

15

Credits

Newbie Member

Rank: 1

Credits
15
Bench
 Author| Posted at 2019-11-7 05:33:41 | Only Author
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?
Reply Support Opposition

Use props Report

9

Threads

53

Posts

669

Credits

Senior Member

Rank: 4

Credits
669
Floor
Posted at 2019-11-8 20:48:45 | Only Author
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
Reply Support Opposition

Use props Report

1

Threads

3

Posts

15

Credits

Newbie Member

Rank: 1

Credits
15
5#
 Author| Posted at 2019-11-8 21:40:38 | Only Author
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?
Reply Support Opposition

Use props Report

You need to log in before you can reply Login | Register now

This forum Credits Rules

Shenzhen Digital Dream Numerical Technology Co., Ltd. support
Adress:507,A Building,Leibo Industry Zone,No. 22 Jinxiu East Road,Kengzi Street,Pingshan district,Shenzhen City,P.R. of China
Phone:13244704799
E-mail:info@ddcnc.com

TEL

0755-87654321

Wchat

Website designed by DigitalDream Technology Support
Quick Reply Back to top Back to list