Re: [Emc-users] Take control of PID control

2013-05-12 Thread Viesturs Lācis
2013/5/12 Andrew parallel.kinemat...@gmail.com OK, I see now. There's a workaround for the problem. http://linuxcnc.org/lucid/emc2/index.php/italian/forum/24-hal-components/6487-pid-pin-problems Could You, please, explain, how does it solve the problem? OUT pin cannot be connected to IO

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
On 5/11/2013 3:52 PM, Andrew wrote: An IO pin can be connected unless there’s an OUT pin on the signal An OUT pin can be connected only if there are no other OUT or IO pins on the signal Regards, Kent Yes, I have read that too. I fail to understand what is the meaning of an IO pin? It is

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Andrew
2013/5/12 Viesturs Lācis viesturs.la...@gmail.com Could You, please, explain, how does it solve the problem? OUT pin cannot be connected to IO pin. That solution proposes inserting passthru component in the middle, so initial OUT is linked to passthru.in and initial IO is connected to

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
2013/5/12 Viesturs Lācis viesturs.la...@gmail.com Could You, please, explain, how does it solve the problem? OUT pin cannot be connected to IO pin. That solution proposes inserting passthru component in the middle, so initial OUT is linked to passthru.in and initial IO is connected to

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
2013/5/12 Viesturs Lācis viesturs.la...@gmail.com Could You, please, explain, how does it solve the problem? OUT pin cannot be connected to IO pin. That solution proposes inserting passthru component in the middle, so initial OUT is linked to passthru.in and initial IO is connected to

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
On 05/11/2013 02:19 PM, Lars Andersson wrote: Hi group, Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. The statement net P0 input.0.abs-rx-position == pid.0.Pgain gives me servo2.hal:35: Signal 'P0' can not add I/O pin 'pid.0.Pgain', it

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Kent A. Reed
On 5/12/2013 3:39 AM, Lars Andersson wrote: On 5/11/2013 3:52 PM, Andrew wrote: An IO pin can be connected unless there’s an OUT pin on the signal An OUT pin can be connected only if there are no other OUT or IO pins on the signal Regards, Kent Yes, I have read that too. I fail to

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Andrew
2013/5/12 Kent A. Reed kentallanr...@gmail.com I admit I struggled to wrap my brain around this notion when I first read the LinuxCNC docs. Syntactically, there is a difference in these pin types simply because the parsing rules in halcmd say there is a difference. In particular, the two

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Kent A. Reed
On 5/12/2013 6:02 AM, Lars Andersson wrote: The symbol == is new to me. Lars: '=' denotes bidirectional signal flow and is the symbol intended to correspond to IO pins as opposed to IN or OUT pins. Remember, though, the quote from the docs in my earlier message---these direction-indicator

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Gene Heskett
On Sunday 12 May 2013 10:08:08 Kent A. Reed did opine: On 5/12/2013 6:02 AM, Lars Andersson wrote: The symbol == is new to me. Lars: '=' denotes bidirectional signal flow and is the symbol intended to correspond to IO pins as opposed to IN or OUT pins. Remember, though, the quote

Re: [Emc-users] Take control of PID control

2013-05-12 Thread andy pugh
On 11 May 2013 20:19, Lars Andersson l...@larsandersson.com wrote: Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. As you have seen, an underlying problem is that the Gains are IO pins. They used to be parameters, but it was decided that pins would

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
On 11 May 2013 20:19, Lars Andersson l...@larsandersson.com wrote: Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. As you have seen, an underlying problem is that the Gains are IO pins. They used to be parameters, but it was decided that pins

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Lars Andersson
On 11 May 2013 20:19, Lars Andersson l...@larsandersson.com wrote: Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. As you have seen, an underlying problem is that the Gains are IO pins. They used to be parameters, but it was decided that pins

Re: [Emc-users] Take control of PID control

2013-05-12 Thread Jon Elson
Kent A. Reed wrote: On 5/12/2013 6:02 AM, Lars Andersson wrote: The symbol == is new to me. Lars: '=' denotes bidirectional signal flow and is the symbol intended to correspond to IO pins as opposed to IN or OUT pins. It is important to remember that these symbols ( =, =,

[Emc-users] Take control of PID control

2013-05-11 Thread Lars Andersson
Hi group, Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. The statement net P0 input.0.abs-rx-position == pid.0.Pgain gives me servo2.hal:35: Signal 'P0' can not add I/O pin 'pid.0.Pgain', it already has OUT pin 'input.0.abs-rx-position' halcmd:

Re: [Emc-users] Take control of PID control

2013-05-11 Thread Andrew
2013/5/11 Lars Andersson l...@larsandersson.com Hi group, Trying to control servo P I and D at runtime with potentiometers to practise loop optimising. The statement net P0 input.0.abs-rx-position == pid.0.Pgain gives me servo2.hal:35: Signal 'P0' can not add I/O pin 'pid.0.Pgain', it

Re: [Emc-users] Take control of PID control

2013-05-11 Thread Andrew
2013/5/11 Lars Andersson l...@larsandersson.com Yes, input.0.abs-rx-position is an out pin, it is the value from a potentiometer. My wish is to feed this into the PID Pgain IO pin so I can modify Pgain by turning a knob. I find that net seems to treat OUT and IO pins equal. setp makes a

Re: [Emc-users] Take control of PID control

2013-05-11 Thread Kent A. Reed
On 5/11/2013 3:52 PM, Andrew wrote: I guess that == might be wrong Quoting from the Basic HAL Tutorial section on net: The command net creates a connection between a signal and and one or more pins. If the signal does not exist net creates the new signal. This replaces the need to use the