Re: [Emc-users] Linuxcnc and Arduino

2016-05-21 Thread Chris Albertson
On Thu, May 19, 2016 at 12:37 AM, Erik Christiansen  wrote:

> On 18.05.16 08:30, Chris Albertson wrote:
> > This is a general problem that applies not just to CNC machines.  What
> > to do if the human interface allows a human to tell a machine to do
> > something it can't do?In this case the interface allows you to
> > command the axis to move faster then it can.  The best design is to
> > prevent this.  You'd need to have some kind of force feedback, a
> > torque or brake applied to the command wheel to prevent you from
> > turning it to fast.  Cheaper solution is a big red LED that lights up
> > as you approach 90% of the maximum speed.  Or in place of the LED a
> > vibrator motor to shake the wheel.
>
> I like the big red LED, especially together with a little mobile phone
> vibrator motor or a complaining squawker, but what about just limiting
> the joystick/knob output to MAX_VEL?


If it is a joystick then yes that would work.  A joystick is a "jog"
command that says to the machine "go left" and you can't enter a bad
command because pushing it hard to the stop always means "go as fast as you
can".

But the user interface device we that started this discussion was a dial. A
dial says "move a distance proportionate to how many degrees I turn the
dial".  It is intended to by an analog of the dial that turns a lead screw
on a manual machine.  The problem is the user can turn the dial as fast as
he likes and the only feedback that he is turning it to fast is lag in the
control.  In other words the "feedback" is that the machine no longer moves
proportionate to how many degrees I turn the dial.

The first is a velocity control and the second is a position control.

To make a joystick always work you all you ned to do is able the hard stop
"max speed", just like you said.

The dial could too if you could limit what a user could do with it,

My point was not really HOW to fix this just to point out that user
interfaces can have theoretical issues a designer must address.  They
either need to logically not allow invalid input (like a joystick) or the
designer needs to specify what happens when the user makes an invalid
input.This applies to software, toasters and cars not just CNC tools


> Within LinuxCNC that ought to be
> possible, maybe using a hal limit component? If it had to be done in the
> arduino, then the limit would also not need to be hard-coded into the
> program if means to increase/decrease the value via the user interface
> were provided, as the result could then instead be saved in on-chip EEPROM.
>
> The latter method would permit scaling of the joystick travel to match
> MAX_VEL, whereas the former would result in the last bit of joystick
> travel doing nothing, which is suboptimal.
>
> If an operator is likely to jerk the joystick instantly to full travel,
> then it might be an idea to limit output to e.g. 95% of MAX_VEL, so that
> LinuxCNC can catch up despite limited MAX_ACCEL.
>
> Erik
>
>
> --
> 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
>



-- 

Chris Albertson
Redondo Beach, California
--
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 raspberry pi3

2016-05-21 Thread Ormund Williams
On Sun, 2016-05-22 at 02:52 +0200, W. Martinjak wrote:
> On 2016-05-21 23:20, Abdul Rahman Riza wrote:
> > 
> > Dear All,
> > 
> > Anyone can suggest hot to utilize raspberry pi3 for linuxcnc?
> Yes it works.
> I've made a sd-image for the raspi2 and it works without any changes
> on the raspi3.
> With a mesa 7i90 card over spi.
> Although only in testing environment but it works. :)
> 
What kind of latency do you see?


-- 
Ormund


--
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 raspberry pi3

2016-05-21 Thread W. Martinjak
On 2016-05-21 23:20, Abdul Rahman Riza wrote:
> Dear All,
>
> Anyone can suggest hot to utilize raspberry pi3 for linuxcnc?
Yes it works.
I've made a sd-image for the raspi2 and it works without any changes on the 
raspi3.
With a mesa 7i90 card over spi.
Although only in testing environment but it works. :)

matsche

-- 
"In der Wissenschaft siegt nie eine neue Theorie, nur ihre Gegner sterben nach 
und nach" Max Planck

--
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 raspberry pi3

2016-05-21 Thread andy pugh
On 21 May 2016 at 22:20, Abdul Rahman Riza  wrote:

> Anyone can suggest hot to utilize raspberry pi3 for linuxcnc?

You would need to install the preempt-RT kernel, then see what the
latency test says.

If the Pi3 is like the previous models then the ethernet port is
connected as a USB device, so probably can't be used. SPI or GPIO
could be used.

-- 
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] Awlsim, raspi-profibus

2016-05-21 Thread Dave Cole

Have you looked for an open source ladder editor that could be re-used?

I googled "open source ladder logic editor" and got a few hits.

Have you seen this project?   Apparently this was derrived from the 
Puffin PLC project that was started years ago.

http://www.beremiz.org/

Here is some history on that software project.
http://control.com/thread/1286361303

Dave

On 5/21/2016 3:08 PM, Michael Büsch wrote:
> Do you want to write an editor that lets the user write
> LAD and output AWL? (Not joking here). If you write it in Python, I'll
> integrate it into awlsim's GUI.:)
--
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


[Emc-users] 7I90HD Pin File

2016-05-21 Thread W. Martinjak
Hi Mesa Experts,

where can I find the 7I90HDIO.PIN file.
It's not in the 7i90.zip.

matsche

-- 
"In der Wissenschaft siegt nie eine neue Theorie,
nur ihre Gegner sterben nach und nach"

Max Planck


--
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


[Emc-users] linuxcnc and raspberry pi3

2016-05-21 Thread Abdul Rahman Riza
Dear All,

Anyone can suggest hot to utilize raspberry pi3 for linuxcnc?

Regards,
Riza
--
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-21 Thread Nicklas Karlsson
> ...
> There's almost no real Profibus documentation available for free. So
> it's hard to get some information. But if you search hard enough,
> you'll eventually find something.

I could confirm profibus documentation only exist in hard to read 
specifications and close zero development of open source applications.


Nicklas Karlsson

--
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-21 Thread Nicklas Karlsson
> >>I currently use a MAX485.
> 
> So no special hardware like Siemens RS232 to Profibus adapters.  That's good.
> 
> >>Yes, you could do that. Or write the program in AWL to begin with. :)
> 
> I've written and debugged my fair share of AWL... but I can program logic a 
> lot faster in LAD.
> I don't get hung up on the details as much with LAD.
> 
> Plus I have yet to see an electrician in the USA that understands AWL. ...

For an electrician ladder make perfect sense so it certainly have it's uses.

--
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-21 Thread Michael Büsch
On Sat, 21 May 2016 14:48:01 -0400
Dave Cole  wrote:

> >>I currently use a MAX485.  
> 
> So no special hardware like Siemens RS232 to Profibus adapters.
> That's good.


pyprofibus is not restricted to any hardware.
It has a shim PHY layer that can be adapted to anything.
It currently ships with a PHY layer that works on /dev/ttyS.

My current Raspi HAT uses the MAX485 and some tiny microcontroller to
drive the MAX485's TX-en.
The actual data goes directly from the ttyS to the MAX485.

https://bues.ch/gitweb?p=awlsim.git;a=blob;f=pilc/raspi-hat/schematics/pilc.pdf;hb=HEAD

There are other solutions to the TX-en that work with passive elements
only, though.


> >>Yes, you could do that. Or write the program in AWL to begin
> >>with. :)  
> 
> I've written and debugged my fair share of AWL... but I can program
> logic a lot faster in LAD. I don't get hung up on the details as much
> with LAD.
> 
> Plus I have yet to see an electrician in the USA that understands
> AWL.   The techs is Germany used to be trained on it as a normal part
> of their training.  The "standard PLC programming" here used to be
> Allen Bradley SLC 500 Ladder Logic.  But that has changed over the
> last 20 years.  The introduction of the IEC programming standards has
> helped a lot.


Yep, that was more of a joke. :)
Of course it's easier to write some logic in LAD for some people.
Do you want to write an editor that lets the user write
LAD and output AWL? (Not joking here). If you write it in Python, I'll
integrate it into awlsim's GUI. :)

-- 
Michael


pgp3YKuebJpnS.pgp
Description: OpenPGP digital signature
--
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-21 Thread Dave Cole
>>I currently use a MAX485.

So no special hardware like Siemens RS232 to Profibus adapters.  That's good.

>>Yes, you could do that. Or write the program in AWL to begin with. :)

I've written and debugged my fair share of AWL... but I can program logic a lot 
faster in LAD.
I don't get hung up on the details as much with LAD.

Plus I have yet to see an electrician in the USA that understands AWL.   The 
techs is Germany used to be trained on it
as a normal part of their training.  The "standard PLC programming" here used 
to be Allen Bradley SLC 500 Ladder Logic.  But that has changed
over the last 20 years.  The introduction of the IEC programming standards has 
helped a lot.

Dave



On 5/21/2016 2:32 PM, Michael Büsch wrote:
> 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 currently use a MAX485.
>
> There's almost no real Profibus documentation available for free. So
> it's hard to get some information. But if you search hard enough,
> you'll eventually find something.
>
>
>> 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!
> Yes, you could do that. Or write the program in AWL to begin with. :)
>

--
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-21 Thread Michael Büsch
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 currently use a MAX485.

There's almost no real Profibus documentation available for free. So
it's hard to get some information. But if you search hard enough,
you'll eventually find something.


> 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!

Yes, you could do that. Or write the program in AWL to begin with. :)

-- 
Michael


pgpbdN1byvOhy.pgp
Description: OpenPGP digital signature
--
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] Copying an installation

2016-05-21 Thread Danny Miller
OK, we cloned the drive to an SSD off the Intel-based machine, now it's 
on an AMD64.

It found the ethernet 7i92 card no problem.  However, any attempt to 
move an axis throws a Joint Following Error immediately.  So, it don't work.

 >uname -a
Linux localhost 3.2.0-4-rt-686-pae #1 SMP PREEMPT RT Debian 3.2.78-1 
i686 GNU/Linux

Ran a latency test, found the number was surprisingly high:
servo 1ms interval 1056515 jitter  58515
baseinterval  82973 jitter 57973

What concerns me is the i686 installation on an AMD64 machine. Does that 
need to be changed?

Danny

On 5/8/2016 6:37 AM, John Thornton wrote:
> While dd is touted as easy and convenient it is indeed a linux guru tool
> only with many gotchas and very difficult to use. Here is an example dd
> comand line for your viewing pleasure.
>
> sudo dd if=/dev/sdb1 of=/dev/sdc1 bs=4K count=2654720
>
> and how the numbers are arrived at lol
>
> fired up a python REPL as a calculator and checked partition and
> filesystem sizes
> for /dev/sdb1 I calculated (end-start)*sector size
> from tune2fs you multiply block count by block size
> divide two times by 1024 to get MB
> divide the partition size by 4k to get a proper block count for dd
>
> I use Clonezilla almost everyday and if you clone a drive the receiving
> drive must be the same exact size or larger. If they are not the same
> exact drives then you must use the expert mode and tell Clonezilla to
> not check the target drive size.
>
> The easy way is to copy the home directory then install from a live cd
> then copy the linuxcnc directory to the new drive.
>
> JT
>
>
> On 5/7/2016 10:34 AM, Danny Miller wrote:
>> So as per previous thread, I may be moving this to another PC.  And
>> probably change to an SSHD.
>>
>> I spent a ridiculous amount of time getting the OS and LinuxCNC RT
>> installed and configured.  And I didn't do all of it myself so it's not
>> a straight shot to repeat.  I'm just saying if I start from scratch
>> again, this will not be a quick operation.
>>
>> How reliable is it to just copy the entire installation to a new drive
>> on a new (different) machine?
>>
>> On Windows, I've just moved my old drive to a new machine a number of
>> times.  But I was foiled when I replaced my AMD-based motherboard with
>> an Intel-based MB, no boot.   My LinuxCNC machine is currently on an
>> Intel Core Duo, and I might change to an AMD-based machine. Will it even
>> be able to boot?  Will it be easy to adapt to an AMD without a full
>> reinstall?  What's it take to adapt it?
>>
>> I was told there's a convenient tool or method for creating an image of
>> the whole installation (OS and LinuxCNC) and packing it up.  Is that
>> true?  'Cause I sure wish one of those had been on Bittorrent, that
>> would have saved my a crazy amount of time.  If it can be done maybe
>> I'll do it and put it out there for others.
>>
>> Danny
>>
>>
>>
>>
>> --
>> 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