Physical feed override parallel port

More
01 Aug 2022 22:51 #248813 by Ingo
Hi guys,

I'm having trouble configuring physical feed override.  I looked in other posts here and couldn't find it, apologies if there is already.
 I've always configured the external feed with pncconf and I found it easy, now I have a machine doing it with a parallel port and I used stepconf and I'm not able to do it….  I don't use analog potentiometer, but binary switches.  Does anyone have any tips?

Ingo
Attachments:

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

More
02 Aug 2022 12:43 #248834 by Todd Zuercher
Pncconf is much more flexible for things like this than Stepconfig, because normally most parallel port configurations have far fewer i/o points available so are generally much more basic machine configurations. But if you've done this before in Pncconf, it would be accomplished in exactly the same way with a parallel port configuration, assuming that you have enough free inputs. (I'm guessing you have more than one parallel port, at least one of which is probably configured as input.) A parallel port configuration is capable of it, but you will have to make the changes by hand using a text editor. You should probably be able to simply copy the relevant lines from the Pncconf files and paste them into the Stepconfig files. Be sure to include the lines for the input pins as well (didn't see them in your attached image.) Then you will need to change the pin names from the Mesa card input pin names to the parallel port input pin names that you will be using.

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

More
02 Aug 2022 19:19 #248861 by Ingo
Hello Todd,

so I'm really using two parallel ports, I did that I copied from pncconf to stepconf but it's giving this error message.  I put the 4 entries above next for you to see…

Ingo
Attachments:

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

More
02 Aug 2022 20:26 #248864 by Todd Zuercher
I'm not familiar with the pin name "foincr." either. Could you post a copy of the working hal file you are coping from and the new one you are working on as attachments here so we can see what's going on. It is possible the original hal file is using a component I'm not familiar with, or is using an alias to rename the pins to other than normal. So we need to see the whole original file to understand what is going on.

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

More
02 Aug 2022 20:53 #248866 by tommylight
foincr= Feed Overide Increments ?

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

More
03 Aug 2022 00:55 #248886 by Ingo
This is a hal I've used with pncconf and 7i76E.  The new machine with parallel port that I'm trying to make tomorrow morning I can send the complete hal.  I copied this entire part of the Falcon machine's feed override increments.  Need some information in the header or in the ini file?
Attachments:

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

More
03 Aug 2022 22:08 #248975 by Ingo
The Falcon machine (created with pncconf) where I copied to hal Romi308(foincr).  This other hal Romi(mux16) was another one I tried it didn't work I also created a line at the beginning “loadrt mux16 count=4”, I don't know if you need something else?
Attachments:

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

More
03 Aug 2022 23:05 #248986 by andypugh
The foincr mux16 is controlled by outputs from classic-ladder. Perhaps that part of the config is wrong?

Use halshow (machine - show hal config in Axis, not sure about other GUIs) and use the watch tab to monitor the foincr sel0, sel1 etc.

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

More
04 Aug 2022 00:08 #248991 by Ingo
Sorry Andy, I didn't understand..., for example when I create a machine in pncconf it has external buttons and I can do FO, MVO and SO, etc. I already put the percentage values ​​and also address the corresponding entries for each one, but I don't link with classicladder works straight...

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

More
04 Aug 2022 13:33 - 04 Aug 2022 13:47 #249038 by Todd Zuercher
So you want to take the working foinc section from the falcon200 hal file and change it to work with the parallel port config in the Romi308 hal file. I can see a number of over sight mistakes in both of your attempts attached above.

In the Romi308(foincr) version you are missing both the loadrt and addf lines to load and start the mux16 component. And the loadrt line will need to use the names= option to create the name alias for the mux16 to change it to foincr. So the lines you need to add would be
loadrt mux16 names=foincr
and
addf foincr     servo-thread

You also made the same mistake in the Romi(mux16) version and you also had some of the pin names wrong where you were doing a bunch of setp lines. There the lines that should be added or changed are.
loadrt mux16 count=1
and
addf mux16.0     servo-thread
and
net fo-incr-a          =>  mux16.0.sel0
net fo-incr-b          =>  mux16.0.sel1
net fo-incr-c          =>  mux16.0.sel2
net fo-incr-d          =>  mux16.0.sel3
net feedoverride-incr  <=  mux16.0.out-s
     setp mux16.0.debounce-time     0.200000
     setp mux16.0.use-graycode      False
     setp mux16.0.suppress-no-input False
     setp mux16.0.in00              0.000000
     setp mux16.0.in01              5.000000
     setp mux16.0.in02              15.000000
     setp mux16.0.in03              30.000000
     setp mux16.0.in04              40.000000
     setp mux16.0.in05              50.000000
     setp mux16.0.in06              60.000000
     setp mux16.0.in07              70.000000
     setp mux16.0.in08              80.000000
     setp mux16.0.in09              90.000000
     setp mux16.0.in10              100.000000
     setp mux16.0.in11              110.000000
     setp mux16.0.in12              120.000000
     setp mux16.0.in13              130.000000
     setp mux16.0.in14              140.000000
     setp mux16.0.in15              150.000000
(I think?)
Last edit: 04 Aug 2022 13:47 by Todd Zuercher. Reason: Stupid forum editor sucks!!

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

Time to create page: 0.254 seconds
Powered by Kunena Forum