Advanced Search

Search Results (Searched for: )

  • bkt
  • bkt's Avatar
31 Jul 2024 16:09 - 31 Jul 2024 16:10
Replied by bkt on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

for these pourpouse (one impot to multiple output) in 2014 i write a simple component .... think shared here pehaps ... but after really see Andy insert a new one for the same in Comp list of linuxcnc .... any how actually prefer to use logicladder ... more easy and efficent ..... yea block is short .... if is for a special pourpose you need write a new user comp .... at least is easy for these. .... if(x=1){.......} elseif(x=2){.....} etc etc ..... pherhaps compgenerator now it work well? into 2.7 and 2.8 not so ....
  • tommylight
  • tommylight's Avatar
31 Jul 2024 16:04 - 31 Jul 2024 16:08
Replied by tommylight on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

It is part of any servo config in LinuxCNC, even steppers with encoders have similar pins and all 3 tied to the same bus bar.
-
Is using the bus bar analogy helping or not?
I ask because using a joint(of wires) is a no go here due to joint being used for other stuff and causing confusion.
Edit:
Is this for the foam cutter?
If yes, you can download the configs for the "scratcher" and they use PWM and have logic for disabling PWM on stop or esc or e-stop, could save you headaches in use, a lot! :)
  • Aciera
  • Aciera's Avatar
31 Jul 2024 16:03 - 31 Jul 2024 16:05
Replied by Aciera on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

As I understand it you want the input signal to go to all the outputs. If so you don't need a component.

If however you want to select which output the input signal goes to (ie a demultiplexer) then you would need to insert hal components.

[edit]
Posting your hal file(s) and the error message would likely cut down on the guess work quite a bit :)
  • bkt
  • bkt's Avatar
31 Jul 2024 16:01
Replied by bkt on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

sorry wrong messages .... just try it can work in 2.7 not in 2.9 and not in 2.9.2 .... you receive error messages pin xxx is just connetc to out xxx.... so or use comp or logicladder
  • Aciera
  • Aciera's Avatar
31 Jul 2024 15:58
Replied by Aciera on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

I kept getting an error saying the spindle-enable signal was already connected to
somewhere else


that usually happens if you try to assign a second output pin to the same signal:

net signalname <= hal.pin-out1 => hal.pin-in1
net signalname <= hal.pin-out2 => hal.pin-in2

the second line will create an error saying that 'signalname' already has an output pin assigned to it

Likewise you will also get an error if you try to assign another signal name to the same output pin:

net signalname <= hal.pin-out => hal.pin-in1
net another_signalname <= hal.pin-out => hal.pin-in2
  • my1987toyota
  • my1987toyota's Avatar
31 Jul 2024 15:54 - 31 Jul 2024 15:57
Replied by my1987toyota on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

tommylight I will look into that. Is that part in the manual and if so what section should I check?

and thank you bkt. I will do some more looking around for that.
  • bkt
  • bkt's Avatar
31 Jul 2024 15:53 - 31 Jul 2024 16:00
Replied by bkt on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

in my mind AndyPugh done a component for these pourpouse ....think you means split an output to multiple of same type right? in hal normally these is not admit .... there are logical comp for these pourpouse ... but you write less code and more redable one if use logicladder ....
  • bkt
  • bkt's Avatar
31 Jul 2024 15:46

LinuxCNC and Beckhoff AX5000 servo drives

Category: EtherCAT

plase use "search" action on top right ... insert AX5000 et voilà .... easy!! But admit me too sometime need a suggestion for these ....
  • bkt
  • bkt's Avatar
31 Jul 2024 15:43
Replied by bkt on topic Getting servo into op state

Getting servo into op state

Category: EtherCAT

sorry why you set step motor but use 1600 register? ..... maybe is because I'm never try but not sure it can work.

Any how go to terminal and digit: /usr/bin/linuxcnc '/"your-home folder"/"your user-folder"/"your-linuxcnc-folder"/configs/"your-name-config-folder"/"your-ini-file".ini' ... so you can see all error and warning and you can share here for some helps ....
  • my1987toyota
  • my1987toyota's Avatar
31 Jul 2024 15:42
Replied by my1987toyota on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

Aciera post=306528 userid=25994Not sure I understand the question right but you can connect multiple hal inputs to the same signal:
 

to give some perspective of why this question has been asked is this, when I was trying to get my 7i96 to use a
general output pin to not only turn on the #5 SSR pin ON but also use PWM to control the hotwire for Foam cutting.
I was also using pyvcp to show what power the wire was running at and that it was ON. However when I did the HAL
and tried to connect that to pyvcp I kept getting an error saying the spindle-enable signal was already connected to
somewhere else, I can't remember where. If I could have split that signal I could
have achieved what I was doing.
   Instead I used the spindle-cw signal to achieve showing the hotwire was ON in pyvcp. It works, But I am still
trying to figure a way to split the original signal so it could have gone to were ever it originally went and send to where
I wanted it to go as well without involving Classic Ladder.
  • Mecanix
  • Mecanix
31 Jul 2024 15:26 - 31 Jul 2024 15:30

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

O M G. Wait, are you showing us that all what's missing to RIO to be fully functional is a fpga dev board and the toolchain installed? As in "screw Gowin IDE'??? If that's the case then that's a pretty serious game changer.

I have so much to learn about your solution, obviously. Excitement is getting outta control!!
  • Aciera
  • Aciera's Avatar
31 Jul 2024 15:16 - 31 Jul 2024 16:20
Replied by Aciera on topic Is a parport fast enough?

Is a parport fast enough?

Category: General LinuxCNC Questions

it does deserve a reply.

Ok, I'll give it the benefit of the doubt.

So to start with some basics:
- your 'hal.ini' is not an '.ini' format but a '.hal' format.
- your 'config' would be called a 'hal component'

Whether PP is going to be fast enough will mostly depend on what kind of use you have in mind for the DAC.

Now before you make a PCB you may want to try and get that hal component of yours compiled and installed (prepend 'sudo' if you are on a package install):
halcompile --install <path/your_component.comp>

Once that hurdle is overcome you can then create a simulation config to test your custom component and your .hal file.
You can use the 'halscope' tool to check the output of your custom component:
linuxcnc.org/docs/devel/html/hal/tutoria...ec:tutorial-halscope

To get an idea of how a custom component file is structured see the components included in the source code:
github.com/LinuxCNC/linuxcnc/tree/master/src/hal/components

[edit]
Please keep in mind that presenting a ChatGPT spit out on a technical forum like this will most likely make you look like somebody who doesn't want to spend any time learning the basics. I know it may look like a good start to somebody who has no clue but to people who know just a little bit more it just simply looks like a serious lack of effort.
  • tommylight
  • tommylight's Avatar
31 Jul 2024 14:56
Replied by tommylight on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

net x-pos-fb        =>  pid.x.feedback

net x-pos-fb               <=  [HMOT](CARD0).encoder.00.position

net x-pos-fb               =>  joint.0.motor-pos-fb
Just an example from a normal servo config, where x-pos-fb is just an arbitrary name and is wired to 3 other pins, or all 3 pins are wired together to the bus bar, and the bus bar is named x-pos-fb
  • Aciera
  • Aciera's Avatar
31 Jul 2024 14:48
Replied by Aciera on topic How to Turn One Output Signal Into Many

How to Turn One Output Signal Into Many

Category: HAL

Not sure I understand the question right but you can connect multiple hal inputs to the same signal:

net signal <= hal.pin-out => hal.pin-in1 => hal.pin-in2 ...
  • my1987toyota
  • my1987toyota's Avatar
31 Jul 2024 14:42 - 31 Jul 2024 14:43
How to Turn One Output Signal Into Many was created by my1987toyota

How to Turn One Output Signal Into Many

Category: HAL

 I have been reading through the Manual looking for a way to turn one signal into multiple signals.
I know it's possible in Classic Ladder, but is it possible to do it in HAL? Like AND 2 but in reverse.
(1in 2out)? Basically I want to make a signal splitter.
Displaying 23761 - 23775 out of 25540 results.
Time to create page: 1.417 seconds
Powered by Kunena Forum