Confusion-please enlighten

More
08 Aug 2016 01:41 #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 or Create an account to join the conversation.

More
08 Aug 2016 01:55 - 08 Aug 2016 01:56 #78472 by PCW
Replied by PCW on topic Confusion-please enlighten
The statements roughly mean:
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
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:
net  emcmot.00.enable hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable  axis.0.amp-enable-out 
or
net  emcmot.00.enable  axis.0.amp-enable-out  hm2_[HOSTMOT2](BOARD).0.stepgen.00.enable

They are all exactly the same functionally
Last edit: 08 Aug 2016 01:56 by PCW.

Please Log in or Create an account to join the conversation.

More
08 Aug 2016 02:20 #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 or Create an account to join the conversation.

More
08 Aug 2016 02:31 #78474 by PCW
Replied by PCW on topic Confusion-please enlighten
Yes its the enable for stepgen 0

Please Log in or Create an account to join the conversation.

More
08 Aug 2016 02:43 #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 or Create an account to join the conversation.

More
08 Aug 2016 03:10 #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 or Create an account to join the conversation.

More
08 Aug 2016 03:55 #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.
Attachments:

Please Log in or Create an account to join the conversation.

More
08 Aug 2016 13:11 #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 or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum