Help with adding PlasmaC to base config + 7i76e

More
11 May 2020 01:25 #167319 by phillc54
The following are from another users working config.

machine hal file:
loadrt hm2_eth board_ip="10.10.10.10" config=" num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=0xxxxx" 

connections hal file:
setp hm2_7i76e.0.encoder.00.scale -1
setp hm2_7i76e.0.encoder.00.filter 1
setp hm2_7i76e.0.encoder.00.counter-mode 1

net plasmac:arc-voltage-in hm2_7i76e.0.encoder.00.velocity => plasmac.arc-voltage-in
net plasmac:float-switch hm2_7i76e.0.7i76.0.0.input-29-not => debounce.0.0.in
net plasmac:breakaway hm2_7i76e.0.7i76.0.0.input-27-not => debounce.0.1.in
net plasmac:ohmic-probe hm2_7i76e.0.7i76.0.0.input-28 => debounce.0.2.in
net plasmac:ohmic-enable plasmac.ohmic-enable  => hm2_7i76e.0.7i76.0.0.output-12
net plasmac:torch-on => hm2_7i76e.0.7i76.0.0.output-11

Notice that the io pins begin with hm2_7i76e.0.7i76.0.0. but the encoder pins begin with hm2_7i76e.0.encoder.00.

You need to follow the same format.

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

More
11 May 2020 05:33 - 11 May 2020 05:34 #167328 by Plasmaguy
Am I supposed to add this into my base file before I go run and fill out the configurator? Or am I supposed to add this into some other file after I run the configurator?

Is it supposed to go anywhere special in the hal file?
Last edit: 11 May 2020 05:34 by Plasmaguy.

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

More
11 May 2020 05:43 - 11 May 2020 05:45 #167329 by Plasmaguy
I tried adding this format in my base file and now after I run configurator I get a crash report stating that error in file .plaz/connections.hal: 'Pin 'hm2_7i76e.0.0.spinena pin was already linked to signal 'spindle-enable'.
Last edit: 11 May 2020 05:45 by Plasmaguy.

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

More
11 May 2020 05:53 #167331 by phillc54
Try these two:
Attachments:

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

More
11 May 2020 13:50 - 11 May 2020 14:12 #167373 by Plasmaguy
Now after I replace the contents of my files with the files you posted I get another error.

Paraphrasing; Pin encoder velocity does not exist.

net plasmac:arc-voltage-in h2m_7i76e.0.encoder.00.velocity => plasmac.arc-voltage-in
net plasmac:float-switch h2m_7i76e.0.7i76.0.0.input-07 => debounce.0.0.in
# net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in
# net plasmac:ohmic-probe {YOUR OHMIC PROBE PIN} => debounce.0.2.in
# net plasmac:ohmic-enable plasmac.ohmic-enable => {YOUR OHMIC ENABLE PIN}
net plasmac:torch-on => h2m_7i76e.0.7i76.0.0.spinena


It looks like you had the hm2 as h2m so i corrected those and now get this error:
Attachments:
Last edit: 11 May 2020 14:12 by Plasmaguy.

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

More
11 May 2020 14:38 #167376 by tommylight
That is the same error you had before and the solution mentioned by PCW, namely the filter does not accept the value of -1, it does accept 0 or 1. Encoder scale be be -1 or whatever you need it to be.
You really, really have to stop editing stuff at random, you are wasting a lot of time and nerves doing constantly the same errors while editing.

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

More
11 May 2020 14:44 - 11 May 2020 15:14 #167377 by Plasmaguy

That is the same error you had before and the solution mentioned by PCW, namely the filter does not accept the value of -1, it does accept 0 or 1. Encoder scale be be -1 or whatever you need it to be.
You really, really have to stop editing stuff at random, you are wasting a lot of time and nerves doing constantly the same errors while editing.


I literally just added the files I was told to add, exactly as given to me by phill. Once those files failed, I only edited what was obviously erroneous which is the hm2's. I left the -1's as phill sent to me. Am I supposed to follow these instructions or not? There is numerous contradictory instructions in this thread. 4 days after asking for help I still have no working plasmac.

Did you not also see there are other errors than the -1? There is also an error "input-07 was already linked to probe-in"...again another error on using a file directly as it was given to me.

Accusing me of "not bothered to read" "randomly changing things" etc is not true and is rather counterproductive IMO. I have only changed what I was told to change, perhaps I implemented the changes incorrectly based on my understanding but I am certainly not randomly changing things around. You also gave misinformation earlier in this thread about the encoder and were corrected by PCW...well I try to follow what he says and also that is wrong apparently..
Last edit: 11 May 2020 15:14 by Plasmaguy.

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

More
11 May 2020 15:33 - 11 May 2020 15:35 #167382 by Plasmaguy
Well now I correct the file from the -1's I was given by phill and I've changed them into 1's as advised by tommylight and earlier PCW and now I'm just getting the error that :

h2m_7i76e.0.7i76.0.0.input-07 was already linked to signal probe in. Now what am I doing wrong this time?
Last edit: 11 May 2020 15:35 by Plasmaguy.

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

More
11 May 2020 15:36 #167383 by snowgoer540

Well now I correct the file from the -1's I was given by phill and I've changed them into 1's as advised by tommylight and earlier PCW and now I'm just getting the error that :

h2m_7i76e.0.7i76.0.0.input-07 was already linked to signal probe in. Now what am I doing wrong this time?


Hard to say without seeing your config and hal files. Can you attach them?

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

More
11 May 2020 15:38 - 11 May 2020 15:40 #167384 by Plasmaguy
You can find them in phill's most recent post ...he provided the files which I copied and pasted into my machine.
Last edit: 11 May 2020 15:40 by Plasmaguy.

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

Moderators: phillc54
Time to create page: 0.081 seconds
Powered by Kunena Forum