Help with adding PlasmaC to base config + 7i76e
- phillc54
- Offline
- Platinum Member
- Posts: 5711
- Thank you received: 2088
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.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
Is it supposed to go anywhere special in the hal file?
Please Log in or Create an account to join the conversation.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
- Posts: 5711
- Thank you received: 2088
Please Log in or Create an account to join the conversation.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
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:
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
- Posts: 19488
- Thank you received: 6535
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.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
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..
Please Log in or Create an account to join the conversation.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
h2m_7i76e.0.7i76.0.0.input-07 was already linked to signal probe in. Now what am I doing wrong this time?
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
- Posts: 2397
- Thank you received: 786
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.
- Plasmaguy
- Topic Author
- Offline
- Senior Member
- Posts: 76
- Thank you received: 9
Please Log in or Create an account to join the conversation.