Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 02:19:03 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
FAQs
Step and Dir signals
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Step and Dir signals (Read 1183 times)
0 Members and 1 Guest are viewing this topic.
nishantpol
Active Member
Offline
Posts: 4
Step and Dir signals
«
on:
May 13, 2010, 06:45:05 PM »
Can someone please tell me the truth table for the step and dir signals. In the manual, it says that the dir signal is active low, however, how can the computer tell the machine to go cw and ccw while in the low state? Is it that high is cw and low is ccw, or the other way around?
Thank you,
Nishant
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Step and Dir signals
«
Reply #1 on:
May 14, 2010, 04:28:57 AM »
Hi Nishant,
The step and direction signals can be configured either active high or active low within Mach3.
Your driver board will prefer either the 'high to low transition' for a step pulse (active low) or a 'low to high transition' but either way trial and error will tell if the driver board instructions do not. The direction bit set active low will produce stepper rotation in one direction and active high rotation in the opposite direction and this is set to match the machine axis etc.
Hope this helps,
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
nishantpol
Active Member
Offline
Posts: 4
Re: Step and Dir signals
«
Reply #2 on:
May 14, 2010, 07:44:27 PM »
Thanks.
Also, what is the state of the dir pin when the motor is not supposed to turn?
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Step and Dir signals
«
Reply #3 on:
May 15, 2010, 12:11:23 AM »
Quote
Also, what is the state of the dir pin when the motor is not supposed to turn?
The direction pin retains it's current state until it is changed by the next direction move - so it could be either state.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
Zero Cool
Active Member
Offline
Posts: 86
Re: Step and Dir signals
«
Reply #4 on:
June 29, 2010, 10:18:13 PM »
The step pulse is a square wave and the machine triggers either on the rising or falling edge of the square wave. So active low i think....is when the transition is going from high to low. and the active high would be when the transition is going high...but i am guessing.
and the direction line...i am still a bit confused about...I think the line is in either a high or low state but have no idea how that works just yet... any one with some definitive answers?
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Step and Dir signals
«
Reply #5 on:
June 30, 2010, 12:44:47 AM »
Hi Zero Cool,
Welcome to the forum.
You are correct in what you say about the step and direction signals. Some controllers prefer active high for these signals but all the ones I have used (so far) prefer active low.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
john351
Active Member
Offline
Posts: 18
Re: Step and Dir signals
«
Reply #6 on:
July 12, 2010, 06:36:44 AM »
One way of looking at this is to realise that a two bit up/down counter is the basic logic for driving a stepper motor
The signal controlling the direction of the counter is the signal that is equivalent to controloling the direction of the motor.
given tw outputs q1 and q2 the table of outputs for one direction is:
Logged
john351
Active Member
Offline
Posts: 18
Re: Step and Dir signals
«
Reply #7 on:
July 12, 2010, 06:46:10 AM »
sorry about the previous posting. it happened because of my inadvertent use of the tab key.
One way of looking at this is to realise that a two bit up/down counter is the basic logic for driving a stepper motor
The signal controlling the direction of the counter is the signal that is equivalent to controlling the direction of the motor.
given two outputs q1 and q2 the table of outputs for one direction is:
q1 q2
0 0
0 1
1 0
1 1
0 0
q1 and q2 are the signals drining the power amplifiers
if dir is reversed then we get
q1 q2
0 0
1 1
1 0
this shows that the dir signal sets things up so on the next clock another step is taken
clock = step
changing dir by itself does nothing
the waves are not square waves since the time between clock signals can be anything.
It is not really meaningful to talk about these signals as having active levels since they are doing something whatever level they are.
where the sense of the signal can be active low or active high is arbitrary but the ability to swap the sense can be useful for testing
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Step and Dir signals
«
Reply #8 on:
July 12, 2010, 07:33:05 AM »
Hi John,
Excellent explanation you have given there.
Quote
It is not really meaningful to talk about these signals as having active levels since they are doing something whatever level they are.
where the sense of the signal can be active low or active high is arbitrary but the ability to swap the sense can be useful for testing
Not quite sure about this bit though. The terms "active high" or "active low" are meaningful to me and are understood by Mach3 when it comes to setting everything up.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
john351
Active Member
Offline
Posts: 18
Re: Step and Dir signals
«
Reply #9 on:
July 12, 2010, 09:26:34 AM »
yes because thats the way that mach3 allows you to handle them. But on say a board with
a micro processor on it some control signals are often inactive and are often at a high level
during this time. When something has to be done the signal goes low. examples would be chip select, memory write.
the advantage of the way mach3 allows you to change the active level is that you can use this to toggle individual signals to test the effect (if any!)
john f
Logged
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...