Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Nicklas Karlsson
If maximum speed is to low it take a while to catch up. I guess jog signal have 
to be limited to maximum speed.

On Wed, 18 May 2016 08:40:05 +0800
Thomas Powderly  wrote:

> is it windup?
> like a queue is filled up with commands and has to drain?
> yes, handwheels should stop when you stop turning, not later
> i saw it on pmacs, the fix was something like the charge-pump used on 
> linuxcnc
> the rotary pulses allowed the action(similar to charge-pump),
> and ending rotation killed pulse stream.
> 'immediately' as in, by end of next plc cycle. fast enuf for most, not 
> perfect
> 
> tomp
> 
> On 05/17/16 21:22, Forum Deswysen wrote:
> > I have a XHC - HB04 Wireless MPG during LinuxCNC HAL module.
> > If I turn the crank too fast I have a time delay ???
> >
> > It's dangerous
> >
> > 2016-05-17 11:21 GMT+02:00 Forum Deswysen :
> >
> >> Hi Andy,
> >>
> >> With a python script and the serial port :
> >>
> >> https://www.youtube.com/watch?v=flajZMff28U
> >>
> >> https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/
> >>
> >> With arduino, today I 'm testing my order for tool change turret.
> >> It works fine
> >>
> >>
> >> @+
> >>
> >> Pierre
> >>
> >> 2016-05-16 23:48 GMT+02:00 andy pugh :
> >>
> >>> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
>  The reaction speed is the same as a button on a Parport entry?
> >>> That rather depends on how the Arduino connects to LinuxCNC, but the
> >>> answer is likely to be that it won't be anywhere near as fast.
> >>>
> >>>
> >>> --
> >>> atp
> >>> "A motorcycle is a bicycle with a pandemonium attachment and is
> >>> designed for the especial use of mechanical geniuses, daredevils and
> >>> lunatics."
> >>> — George Fitch, Atlanta Constitution Newspaper, 1916
> >>>
> >>>
> >>> --
> >>> Mobile security can be enabling, not merely restricting. Employees who
> >>> bring their own devices (BYOD) to work are irked by the imposition of MDM
> >>> restrictions. Mobile Device Manager Plus allows you to control only the
> >>> apps on BYO-devices by containerizing them, leaving personal data
> >>> untouched!
> >>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> >>> ___
> >>> Emc-users mailing list
> >>> Emc-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/emc-users
> >>>
> >>
> > --
> > Mobile security can be enabling, not merely restricting. Employees who
> > bring their own devices (BYOD) to work are irked by the imposition of MDM
> > restrictions. Mobile Device Manager Plus allows you to control only the
> > apps on BYO-devices by containerizing them, leaving personal data untouched!
> > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Danny Miller
I'm not sure what context you're saying you have for the XHC.

I have he XHC-HB04 on LinuxCNC  RT on the Linux RT kernel.

It's a VERY smooth response, but partly because my machine is very fast.

There is, however, a case for time delay if you select jogmode=normal 
and not =vnormal on a slower machine, or with greater scale on the 
handwheel.

Depends on the jogwheel speed vs the machine's acceleration and max 
velocity.  IF you set the wheel to its highest speed and spin it fast, 
you might command a router to move 50" in one quick twist of the hand 
that will take the machine 5 sec to execute.

This rarely comes up with me.  My machine is very fast and you have to 
spin the wheel unnaturally aggressively at top speed to get ahead of it, 
and it's not possible to get ahead by more than like 1 sec.

It cannot always keep the commanded position AND stop immediately when 
the handwheel stops.  That's logically impossible.

If you don't like that, you can select jogmode=vnormal and it will 
always stop when the handwheel stops.  However, you lose sync with the 
wheel.  e.g. quickly spin the wheel +2 turns forward and it may only 
register 1.5 turns before the wheel being stopped means the machine 
stops moving.  Then turn back -2 turns slowly and the machine is -0.5 
turns worth of motion from where it started, even though the handwheel 
is where it started.

I don't like this functionality myself.  And even that vnormal mode only 
means the gantry begins decelerating when you stop turning the 
handwheel.  If the machine takes 0.75 sec to come to stop from jog 
speed, it will not come to a stop until 0.75 sec after you stop the 
handwheel.

I recommend you reduce scale if you don't like it.  e.g. if you would 
never turn more than 2 turns/sec on that handwheel, and your machine's 
got a quick acceleration and 5 inches/sec jog speed, the scale should 
be  ~2.5 in/turn so you never outrun it.  With acceleration being 
significant, there's no definitive answer.

Danny


On 5/17/2016 8:22 AM, Forum Deswysen wrote:
> I have a XHC - HB04 Wireless MPG during LinuxCNC HAL module.
> If I turn the crank too fast I have a time delay ???
>
> It's dangerous
>
> 2016-05-17 11:21 GMT+02:00 Forum Deswysen :
>
>> Hi Andy,
>>
>> With a python script and the serial port :
>>
>> https://www.youtube.com/watch?v=flajZMff28U
>>
>> https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/
>>
>> With arduino, today I 'm testing my order for tool change turret.
>> It works fine
>>
>>
>> @+
>>
>> Pierre
>>
>> 2016-05-16 23:48 GMT+02:00 andy pugh :
>>
>>> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
 The reaction speed is the same as a button on a Parport entry?
>>> That rather depends on how the Arduino connects to LinuxCNC, but the
>>> answer is likely to be that it won't be anywhere near as fast.
>>>
>>>
>>> --
>>> atp
>>> "A motorcycle is a bicycle with a pandemonium attachment and is
>>> designed for the especial use of mechanical geniuses, daredevils and
>>> lunatics."
>>> — George Fitch, Atlanta Constitution Newspaper, 1916
>>>
>>>
>>> --
>>> Mobile security can be enabling, not merely restricting. Employees who
>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>> apps on BYO-devices by containerizing them, leaving personal data
>>> untouched!
>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>>
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Todd Zuercher
If the problem is that your able to turn the handwheel fast enough to exceed 
the maximum velocity for the axis and build up a store of pulses.  Perhaps you 
should consider limiting the step size generated by the handwheel to one small 
enough that it is not possible to easily over run the max velocity of the axis. 
 I have seen similar behavior even in large expensive commercial machines with 
Fanuc controls.  Granted you have to turn the wheel really fast, faster than 
you can sustain for a long enough period to build up a significant overrun but 
it is detectable. 

- Original Message -
From: "Forum Deswysen" 
To: "Enhanced Machine Controller (EMC)" 
Sent: Tuesday, May 17, 2016 9:22:53 AM
Subject: Re: [Emc-users] Linuxcnc and Arduino

I have a XHC - HB04 Wireless MPG during LinuxCNC HAL module.
If I turn the crank too fast I have a time delay ???

It's dangerous

2016-05-17 11:21 GMT+02:00 Forum Deswysen :

> Hi Andy,
>
> With a python script and the serial port :
>
> https://www.youtube.com/watch?v=flajZMff28U
>
> https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/
>
> With arduino, today I 'm testing my order for tool change turret.
> It works fine
>
>
> @+
>
> Pierre
>
> 2016-05-16 23:48 GMT+02:00 andy pugh :
>
>> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
>> > The reaction speed is the same as a button on a Parport entry?
>>
>> That rather depends on how the Arduino connects to LinuxCNC, but the
>> answer is likely to be that it won't be anywhere near as fast.
>>
>>
>> --
>> atp
>> "A motorcycle is a bicycle with a pandemonium attachment and is
>> designed for the especial use of mechanical geniuses, daredevils and
>> lunatics."
>> — George Fitch, Atlanta Constitution Newspaper, 1916
>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
>
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Thomas Powderly
is it windup?
like a queue is filled up with commands and has to drain?
yes, handwheels should stop when you stop turning, not later
i saw it on pmacs, the fix was something like the charge-pump used on 
linuxcnc
the rotary pulses allowed the action(similar to charge-pump),
and ending rotation killed pulse stream.
'immediately' as in, by end of next plc cycle. fast enuf for most, not 
perfect

tomp

On 05/17/16 21:22, Forum Deswysen wrote:
> I have a XHC - HB04 Wireless MPG during LinuxCNC HAL module.
> If I turn the crank too fast I have a time delay ???
>
> It's dangerous
>
> 2016-05-17 11:21 GMT+02:00 Forum Deswysen :
>
>> Hi Andy,
>>
>> With a python script and the serial port :
>>
>> https://www.youtube.com/watch?v=flajZMff28U
>>
>> https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/
>>
>> With arduino, today I 'm testing my order for tool change turret.
>> It works fine
>>
>>
>> @+
>>
>> Pierre
>>
>> 2016-05-16 23:48 GMT+02:00 andy pugh :
>>
>>> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
 The reaction speed is the same as a button on a Parport entry?
>>> That rather depends on how the Arduino connects to LinuxCNC, but the
>>> answer is likely to be that it won't be anywhere near as fast.
>>>
>>>
>>> --
>>> atp
>>> "A motorcycle is a bicycle with a pandemonium attachment and is
>>> designed for the especial use of mechanical geniuses, daredevils and
>>> lunatics."
>>> — George Fitch, Atlanta Constitution Newspaper, 1916
>>>
>>>
>>> --
>>> Mobile security can be enabling, not merely restricting. Employees who
>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>> apps on BYO-devices by containerizing them, leaving personal data
>>> untouched!
>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>>
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Awlsim, raspi-profibus

2016-05-17 Thread Dave Cole
I agree.  Being able to use Profibus with LinuxCNC would be very 
useful.  There is a lot of used Profibus slave I/O devices and VFDs on 
the surplus market.

Dave

On 5/17/2016 4:02 PM, Nicklas Karlsson wrote:
> Authur of pyprofibus used an ET200S module.
>
> I tried pyprofibus with RS485 and an Siemens ET 200L-SC, I get answer in 
> first step but in second step for request diagnostic module does not send 
> answer. I have several other profibus devices and they are very common but it 
> is not top priority to get them working right now. In the long run I expect 
> profibus to be a very useful part of linuxcnc since it is a very common 
> protocol both for motor control and IO modules.
>
> Observe the difference. raspi-profibus use a module with an AVR micro 
> controller, pyprofibus use Linux.
>
> Nicklas Karlsson
>
>
>
> On Tue, 17 May 2016 15:42:32 -0400
> Dave Cole  wrote:
>
>> I downloaded the Windows version of awlsim.
>>
>> Its very impressive.Regarding the Profibus interface;   Are you
>> using a RS232/ RS485 converter to connect to the Profibus I/O block?
>> Is the methods of configuring a Profibus drop documented some where?
>>
>> I do Step7 programming but mostly in Lad/Ladder.I haven't tried it
>> yet, but it appears that I could write a program in Step7, compile it
>> and check it for errors and then export the source to your AWLSIM
>> program and control Profibus I/O from a Raspberry PI, PC, etc !   Very
>> nice!
>>
>> Thanks,
>>
>> Dave
>>
>> On 5/16/2016 3:43 AM, Michael Büsch wrote:
>>> On Sun, 15 May 2016 19:33:03 +0200
>>> Nicklas Karlsson  wrote:
>>>
 Then trying to get raspi-profibus to work on an ordinary PC I discovered 
 there is an awlsim hal module suitable for PLC programming. It would be 
 good to know if anyone are working with awlsim? Or profibus right now?

 The raspi-profibus software is divided in two. The higher level is written 
 in python and communicate with the lower levels implemented on an Atmel 
 AVR via SPI. I have been able to replace AVR code with ordinary *nix 
 system calls for UART communication. Data is coming out but no answer from 
 real hardware, it is at exactly this point I got stuck last time I tried.
>>> I am the author of these projects.
>>>
>>> I just want to note that "raspi-profibus" is end-of-life and its
>>> successor "pyprofibus" is not split into Python and C anymore. It does
>>> not use an AtmelAVR via SPI for data transfer anymore.
>>> It's a pure Python implementation that already contains pure Python
>>> code for a /dev/ttyS UART PHY.
>>> So "pyprofibus" is not restricted to the Raspi and should work anywhere
>>> (including an LinuxCNC/awlsim enviromment. But that was not tested, yet)
>>>
>>> https://bues.ch/h/profibus
>>> https://bues.ch/h/awlsim
>>> https://bues.ch/h/pilc
>>>
>>>
>>>
>>> --
>>> Mobile security can be enabling, not merely restricting. Employees who
>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>> apps on BYO-devices by containerizing them, leaving personal data untouched!
>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>>
>>>
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Awlsim, raspi-profibus

2016-05-17 Thread Nicklas Karlsson
Authur of pyprofibus used an ET200S module.

I tried pyprofibus with RS485 and an Siemens ET 200L-SC, I get answer in first 
step but in second step for request diagnostic module does not send answer. I 
have several other profibus devices and they are very common but it is not top 
priority to get them working right now. In the long run I expect profibus to be 
a very useful part of linuxcnc since it is a very common protocol both for 
motor control and IO modules.

Observe the difference. raspi-profibus use a module with an AVR micro 
controller, pyprofibus use Linux.

Nicklas Karlsson



On Tue, 17 May 2016 15:42:32 -0400
Dave Cole  wrote:

> I downloaded the Windows version of awlsim.
> 
> Its very impressive.Regarding the Profibus interface;   Are you 
> using a RS232/ RS485 converter to connect to the Profibus I/O block?
> Is the methods of configuring a Profibus drop documented some where?
> 
> I do Step7 programming but mostly in Lad/Ladder.I haven't tried it 
> yet, but it appears that I could write a program in Step7, compile it 
> and check it for errors and then export the source to your AWLSIM 
> program and control Profibus I/O from a Raspberry PI, PC, etc !   Very 
> nice!
> 
> Thanks,
> 
> Dave
> 
> On 5/16/2016 3:43 AM, Michael Büsch wrote:
> > On Sun, 15 May 2016 19:33:03 +0200
> > Nicklas Karlsson  wrote:
> >
> >> Then trying to get raspi-profibus to work on an ordinary PC I discovered 
> >> there is an awlsim hal module suitable for PLC programming. It would be 
> >> good to know if anyone are working with awlsim? Or profibus right now?
> >>
> >> The raspi-profibus software is divided in two. The higher level is written 
> >> in python and communicate with the lower levels implemented on an Atmel 
> >> AVR via SPI. I have been able to replace AVR code with ordinary *nix 
> >> system calls for UART communication. Data is coming out but no answer from 
> >> real hardware, it is at exactly this point I got stuck last time I tried.
> > I am the author of these projects.
> >
> > I just want to note that "raspi-profibus" is end-of-life and its
> > successor "pyprofibus" is not split into Python and C anymore. It does
> > not use an AtmelAVR via SPI for data transfer anymore.
> > It's a pure Python implementation that already contains pure Python
> > code for a /dev/ttyS UART PHY.
> > So "pyprofibus" is not restricted to the Raspi and should work anywhere
> > (including an LinuxCNC/awlsim enviromment. But that was not tested, yet)
> >
> > https://bues.ch/h/profibus
> > https://bues.ch/h/awlsim
> > https://bues.ch/h/pilc
> >
> >
> >
> > --
> > Mobile security can be enabling, not merely restricting. Employees who
> > bring their own devices (BYOD) to work are irked by the imposition of MDM
> > restrictions. Mobile Device Manager Plus allows you to control only the
> > apps on BYO-devices by containerizing them, leaving personal data untouched!
> > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Awlsim, raspi-profibus

2016-05-17 Thread Dave Cole
I downloaded the Windows version of awlsim.

Its very impressive.Regarding the Profibus interface;   Are you 
using a RS232/ RS485 converter to connect to the Profibus I/O block?
Is the methods of configuring a Profibus drop documented some where?

I do Step7 programming but mostly in Lad/Ladder.I haven't tried it 
yet, but it appears that I could write a program in Step7, compile it 
and check it for errors and then export the source to your AWLSIM 
program and control Profibus I/O from a Raspberry PI, PC, etc !   Very 
nice!

Thanks,

Dave

On 5/16/2016 3:43 AM, Michael Büsch wrote:
> On Sun, 15 May 2016 19:33:03 +0200
> Nicklas Karlsson  wrote:
>
>> Then trying to get raspi-profibus to work on an ordinary PC I discovered 
>> there is an awlsim hal module suitable for PLC programming. It would be good 
>> to know if anyone are working with awlsim? Or profibus right now?
>>
>> The raspi-profibus software is divided in two. The higher level is written 
>> in python and communicate with the lower levels implemented on an Atmel AVR 
>> via SPI. I have been able to replace AVR code with ordinary *nix system 
>> calls for UART communication. Data is coming out but no answer from real 
>> hardware, it is at exactly this point I got stuck last time I tried.
> I am the author of these projects.
>
> I just want to note that "raspi-profibus" is end-of-life and its
> successor "pyprofibus" is not split into Python and C anymore. It does
> not use an AtmelAVR via SPI for data transfer anymore.
> It's a pure Python implementation that already contains pure Python
> code for a /dev/ttyS UART PHY.
> So "pyprofibus" is not restricted to the Raspi and should work anywhere
> (including an LinuxCNC/awlsim enviromment. But that was not tested, yet)
>
> https://bues.ch/h/profibus
> https://bues.ch/h/awlsim
> https://bues.ch/h/pilc
>
>
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Early 80's Matsuura conversion.

2016-05-17 Thread Gene Heskett
On Tuesday 17 May 2016 13:28:01 sam sokolik wrote:

> More progress.
>
> https://youtu.be/XntXTuXNfvE
>
> https://youtu.be/kXLF0u-tdT0
>
> sam
>
Looks great Sam. Ready to make $ I'd say.

> On 05/03/2016 01:54 PM, sam sokolik wrote:
> > Couple of things I had forgotten in the previous big conversion.
> > (using opto22 boards..)
> >
> > -Dc modules are polarity sensitive.  (who knew? ;) )  (and when you
> > reverse them - they have a diode so they are 'just on' )
> > -The 24 module opto22 boards need to have a jumper soldered in to
> > power them from the 50 pin cable mesa card (logic side).
> >
> > Lets just say you get some funny interactions between i/o when it
> > isn't powered - and it works just enough that it makes you scratch
> > your head...
> >
> > Still have a bunch of dressup and i/o to hook up.
> >
> > http://electronicsam.com/images/matsuura/MatsVFDside.JPG
> >
> > sam
> >
> > On 5/1/2016 4:59 PM, sam sokolik wrote:
> >> Reusing as much as we can.  (servos, drives, vfd...)  Mesa
> >> hardware.
> >>
> >> A bit more specifics here
> >> http://forum.linuxcnc.org/forum/38-general-linuxcnc-questions/30441
> >>-matsuura-mc-500v2-retrofit
> >>
> >> Video - A bit better servo tuning.
> >>
> >> https://www.youtube.com/watch?v=81uwBAuR96I
> >>
> >> No surprises yet...  axis and spindle/orient all working - just
> >> have to figure out the tool changer.
> >>
> >> sam
> >>
> >>
> >> ---
> >>--- Find and fix application performance issues faster with
> >> Applications Manager Applications Manager provides deep performance
> >> insights into multiple tiers of your business applications. It
> >> resolves application problems quickly and reduces your MTTR. Get
> >> your free trial!
> >> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> >> ___
> >> Emc-users mailing list
> >> Emc-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> > 
> >-- Find and fix application performance issues faster with
> > Applications Manager Applications Manager provides deep performance
> > insights into multiple tiers of your business applications. It
> > resolves application problems quickly and reduces your MTTR. Get
> > your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
> --
> Mobile security can be enabling, not merely restricting.
> Employees who bring their own devices (BYOD) to work are irked by the
> imposition of MDM restrictions. Mobile Device Manager Plus allows you
> to control only the apps on BYO-devices by containerizing them,
> leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Early 80's Matsuura conversion.

2016-05-17 Thread Rick Lair
Nice work Sam,

That tool carousel moves pretty quick!!


Rick

On 05/17/2016 01:28 PM, sam sokolik wrote:
> More progress.
>
> https://youtu.be/XntXTuXNfvE
>
> https://youtu.be/kXLF0u-tdT0
>
> sam
>
> On 05/03/2016 01:54 PM, sam sokolik wrote:
>> Couple of things I had forgotten in the previous big conversion. (using
>> opto22 boards..)
>>
>> -Dc modules are polarity sensitive.  (who knew? ;) )  (and when you
>> reverse them - they have a diode so they are 'just on' )
>> -The 24 module opto22 boards need to have a jumper soldered in to power
>> them from the 50 pin cable mesa card (logic side).
>>
>> Lets just say you get some funny interactions between i/o when it isn't
>> powered - and it works just enough that it makes you scratch your head...
>>
>> Still have a bunch of dressup and i/o to hook up.
>>
>> http://electronicsam.com/images/matsuura/MatsVFDside.JPG
>>
>> sam
>>
>> On 5/1/2016 4:59 PM, sam sokolik wrote:
>>> Reusing as much as we can.  (servos, drives, vfd...)  Mesa hardware.
>>>
>>> A bit more specifics here
>>> http://forum.linuxcnc.org/forum/38-general-linuxcnc-questions/30441-matsuura-mc-500v2-retrofit
>>>
>>> Video - A bit better servo tuning.
>>>
>>> https://www.youtube.com/watch?v=81uwBAuR96I
>>>
>>> No surprises yet...  axis and spindle/orient all working - just have to
>>> figure out the tool changer.
>>>
>>> sam
>>>
>>>
>>> --
>>> Find and fix application performance issues faster with Applications Manager
>>> Applications Manager provides deep performance insights into multiple tiers 
>>> of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>>
>>>
>> --
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

-- 
Thanks


Rick Lair
Superior Roll & Turning LLC
399 East Center Street
Petersburg MI, 49270
PH: 734-279-1831
FAX: 734-279-1166
www.superiorroll.com


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Early 80's Matsuura conversion.

2016-05-17 Thread sam sokolik
More progress.

https://youtu.be/XntXTuXNfvE

https://youtu.be/kXLF0u-tdT0

sam

On 05/03/2016 01:54 PM, sam sokolik wrote:
> Couple of things I had forgotten in the previous big conversion. (using
> opto22 boards..)
>
> -Dc modules are polarity sensitive.  (who knew? ;) )  (and when you
> reverse them - they have a diode so they are 'just on' )
> -The 24 module opto22 boards need to have a jumper soldered in to power
> them from the 50 pin cable mesa card (logic side).
>
> Lets just say you get some funny interactions between i/o when it isn't
> powered - and it works just enough that it makes you scratch your head...
>
> Still have a bunch of dressup and i/o to hook up.
>
> http://electronicsam.com/images/matsuura/MatsVFDside.JPG
>
> sam
>
> On 5/1/2016 4:59 PM, sam sokolik wrote:
>> Reusing as much as we can.  (servos, drives, vfd...)  Mesa hardware.
>>
>> A bit more specifics here
>> http://forum.linuxcnc.org/forum/38-general-linuxcnc-questions/30441-matsuura-mc-500v2-retrofit
>>
>> Video - A bit better servo tuning.
>>
>> https://www.youtube.com/watch?v=81uwBAuR96I
>>
>> No surprises yet...  axis and spindle/orient all working - just have to
>> figure out the tool changer.
>>
>> sam
>>
>>
>> --
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>>
>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How to assign values to pwmgen parameters(duty-cycle, frequency, etc, ) from GUI ?

2016-05-17 Thread andy pugh
On 17 May 2016 at 10:24, adit bhargava  wrote:
> On CRO, I get correct values for frequencies of  100 Hz and 150 Hz
> But, when I try 110 Hz , 120 Hz etc. it takes wrong period


What is your base-thread frequency? It may be that this is quantising
the output frequency.

When you began this thread you made no mention of wanting to change
the PWM frequency, and it is actually rather unusual to want to do so.
_why_ are you changing the PWM frequency? Normally you only change the
duty-cycle.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] How to assign values to pwmgen parameters(duty-cycle, frequency, etc, ) from GUI ?

2016-05-17 Thread adit bhargava
Hello Andy,
I implemented your suggested code and I am getting correct values of Duty cycle 
on Halscope. 
However, I am NOT getting the correct values on CRO.On CRO, I get correct 
values for frequencies of  100 Hz and 150 Hz 
But, when I try 110 Hz , 120 Hz etc. it takes wrong period always as 10 ms 
(corresponding to 100 Hz only) and the T-on is also not 2 ms which I set in the 
scale.0.gain parameter (it's slightly more than 2 ms), 

However, on Halscope these parameters are correct.

Below is the code I did:


loadrt pwmgen output_type=0
loadrt tristate_float


setp pwmgen.0.enable TRUE

addf hm2_5i25.0.write_gpio base-thread
addf pwmgen.make-pulses base-thread
addf pwmgen.update     base-thread
addf tristate-float.0     servo-thread

net PWM-Freq tristate-float.0.in <= pyvcp.CO-frequency-value //frequency value 
from Axis Gui
setp tristate-float.0.enable TRUE
net PWM-OUT  tristate-float.0.out => pwmgen.0.pwm-freq



loadrt scale
net PWM-Freq scale.0.in // from above 
setp scale.0.gain 0.002
net duty-cycle scale.0.out pwmgen.0.value // Setting the Duty cycle
addf scale.0 base-thread //Added to base-thread   


setp hm2_5i25.0.gpio.023.is_output TRUE
setp hm2_5i25.0.gpio.023.invert_output FALSE
net pwm-generate    <=  pwmgen.0.pwm
net pwm-generate    => hm2_5i25.0.gpio.023.out

BRAdit

  From: andy pugh 
 To: adit bhargava  
Cc: Enhanced Machine Controller (EMC) 
 Sent: Tuesday, May 3, 2016 7:00 PM
 Subject: Re: [Emc-users] How to assign values to pwmgen parameters(duty-cycle, 
frequency, etc, ) from GUI ?
   
On 3 May 2016 at 16:12, adit bhargava  wrote:
> Thank you very much Andy. I forgot to add tristate_float to thread. Now, I
> addeed to my base-thread and the output comes now on CRO.

You should add it to the servo-thread really, there is no need to
update the value at base-thread speed.

> Duty-Cycle = ( 2 ms / Period )( where Period = 1/ Signal freq)
>
> How should I implement this formula in .HAL file?

That simplifies to DutyCycle = 2mS * frequency (which passes a units
check, but doesn't seem right)

You would use the HAL "scale" component:
http://linuxcnc.org/docs/2.7/html/man/man9/scale.9.html

(It is probably worth a skim through all the real-time components
listed in the section near the bottom of
http://linuxcnc.org/docs/2.7/html/ )

net PWM_freq scale.0.in
setp scale.0.gain 0.002
net dc scale.0.out pwmgen.0.value

Or similar.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

  
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Forum Deswysen
I have a XHC - HB04 Wireless MPG during LinuxCNC HAL module.
If I turn the crank too fast I have a time delay ???

It's dangerous

2016-05-17 11:21 GMT+02:00 Forum Deswysen :

> Hi Andy,
>
> With a python script and the serial port :
>
> https://www.youtube.com/watch?v=flajZMff28U
>
> https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/
>
> With arduino, today I 'm testing my order for tool change turret.
> It works fine
>
>
> @+
>
> Pierre
>
> 2016-05-16 23:48 GMT+02:00 andy pugh :
>
>> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
>> > The reaction speed is the same as a button on a Parport entry?
>>
>> That rather depends on how the Arduino connects to LinuxCNC, but the
>> answer is likely to be that it won't be anywhere near as fast.
>>
>>
>> --
>> atp
>> "A motorcycle is a bicycle with a pandemonium attachment and is
>> designed for the especial use of mechanical geniuses, daredevils and
>> lunatics."
>> — George Fitch, Atlanta Constitution Newspaper, 1916
>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
>
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc and Arduino

2016-05-17 Thread Forum Deswysen
Hi Andy,

With a python script and the serial port :

https://www.youtube.com/watch?v=flajZMff28U

https://ckcnc.wordpress.com/basic-arduino-emc-howto/python-emc-module/

With arduino, today I 'm testing my order for tool change turret.
It works fine


@+

Pierre

2016-05-16 23:48 GMT+02:00 andy pugh :

> On 16 May 2016 at 15:03, Forum Deswysen  wrote:
> > The reaction speed is the same as a button on a Parport entry?
>
> That rather depends on how the Arduino connects to LinuxCNC, but the
> answer is likely to be that it won't be anywhere near as fast.
>
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> — George Fitch, Atlanta Constitution Newspaper, 1916
>
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data
> untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users