Confusion-please enlighten

More
10 years 2 months ago #78471 by bill.anderson
I made the assumption that the left side or the "=" of the "=>" indicated the origin of the signal or connections "black box" and the right side, the ">" the destination.

I thought that the expression:

net emcmot.00.enable <= axis.0.amp-enable-out
net emcmot.00.enable => hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable

meant that (axis.0.amp-enable-out) was joined with or became (emcmot.00.enable) which was joined with or became (hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable)
(stepgen.00.enable) corresponding to the StepGen 0 pins from the 5i25pinout.txt


IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

1 0 IOPort None
14 1 IOPort PWM 0 PWM (Out)
2 2 IOPort StepGen 0 Step/Table1 (Out)
15 3 IOPort None
3 4 IOPort StepGen 0 Dir/Table2 (Out)

Understanding the semantics the terminology and how these are parsed or interpreted is not an insignificant task and least for me. Thanks for your patience

bill a

Please Log in to join the conversation.

More
10 years 2 months ago #78472 by PCW
Replied by PCW on topic Confusion-please enlighten
The statements roughly mean:
Code:
net emcmot.00.enable <= axis.0.amp-enable-out

create signal emcmot.00.enable if it does not exist
connect pin axis.0.amp-enable-out to wire (signal) emcmot.00.enable
Code:
net emcmot.00.enable => hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable

connect signal emcmot.00.enable to pin hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable

Note that pin order (like the <= => and <=> symbols) is unimportant
you can replace the above two statements with:
Code:
net emcmot.00.enable hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable axis.0.amp-enable-out
or
Code:
net emcmot.00.enable axis.0.amp-enable-out hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable

They are all exactly the same functionally

Please Log in to join the conversation.

More
10 years 2 months ago #78473 by bill.anderson
Does the (hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable) correspond then to the
StepGen 0 pins from the 5i25pinout.txt

Please Log in to join the conversation.

More
10 years 2 months ago #78474 by PCW
Replied by PCW on topic Confusion-please enlighten
Yes its the enable for stepgen 0

Please Log in to join the conversation.

More
10 years 2 months ago #78475 by bill.anderson
Hallelujah, a little thinning of the clouds.

would that also mean that the following would be the positioning pulses?
net emcmot.00.pos-cmd <= axis.0.motor-pos-cmd
net emcmot.00.pos-cmd => hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd

Please Log in to join the conversation.

More
10 years 2 months ago #78476 by PCW
Replied by PCW on topic Confusion-please enlighten
That is the position command in machine units, the actual step pulses are not visible in hal in any useful way

Please Log in to join the conversation.

More
10 years 2 months ago #78477 by bill.anderson
I can see that there are a number of signals required to generate the outputs and I guess that I'll just have to experiment to see what does what. A picture is worth a thousand words and I surmise that since this circuit handles far more than open loop step and direction there are probably feedback signals that I won't need.

thanks for the insights
bill a.

Please Log in to join the conversation.

More
10 years 2 months ago #78488 by PCW
Replied by PCW on topic Confusion-please enlighten
You dont really need to experiment unless you want to, any of the sample hm2-stepper configurations or a pncconf generated sample configuration have the correct HAL "wiring" for a hardware stepgen

Please Log in to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum