Am 04.08.2013 um 13:02 schrieb Michael Büsch <[email protected]>:

> Hi,
> 
> For quite some months I have been working on a free S7-compatible
> PLC simulator called "awlsim", implemented in pure Python.
> http://bues.ch/cms/hacking/awlsim.html
> 
> So far, the simulator implements a lot of the S7 features required
> to run useful programs. And it also shows good performance, for being
> implemented in Python. (over 30k STL/AWL statements per second on an Atom 
> N570)
> There's still room for improvement, though.
> It supports Python 2.7, 3.x and the PyPy 2 interpreter.
> Especially on PyPy it is very fast.
> (over 400k STL/AWL statements per second on the same machine)
> 
> Recently, I added an experimental interface module to the LinuxCNC Python HAL
> interface, so it could be used as PLC for non-realtime tasks.
> http://bues.ch/cms/hacking/awlsim.html#connecting_to_real_hardware_linuxcnc
> 
> Theoretically, it could be used in conjunction with awlsim's "pyprofibus"
> module to connect LinuxCNC to real PROFIBUS slaves.
> http://bues.ch/cms/hacking/profibus.html
> However, I did not try that combined configuration, yet. It would need lots of
> additional work to get it working. Especially, because the profibus project 
> currently
> only works on the Raspberry Pi and is far from being universally usable.
> 
> I don't know whether it makes any sense to use awlsim on any real-life
> machine (probably not), but it sounded cool to me to have a free (as in 
> freedom and beer)
> S7 PLC option for LinuxCNC.
> 
> I did not test it on real hardware, yet. Only in LinuxCNC's simulator mode.
> It currently is not possible to use awlsim's GUI when running as LinuxCNC-PLC.
> That's stuff to be done, yet.


Hi Michael,

was curious since this might look like not just an interesting LinuxCNC addon, 
but also a beaglebone standalone applicatiom

so I tried, starting from Charles BB image (debian wheezy), and got it to run 
like so:

$ sudo apt-get clean # make space - pyside is rather large
$ sudo apt-get install python-pyside
$ git clone git://git.bues.ch/awlsim.git
$ cd awlsim
$ python setup.py build
$ sudo python setup.py install
$ awlsimcli EXAMPLE.awl #  seems to work
$ export DISPLAY <xserver>:0.0
$ awlsimgui # seems to work fine too

(my this image has some more packages installed so other peaple's mileage might 
vary)

NB: my understanding of PLC's is limited to 'yet another interesting form of 
finite state machine'. But I understand there's quite a market for them.

- Michael



> 
> Have fun!
> 
> -- 
> Michael
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent 
> caught up. So what steps can you take to put your SQL databases under 
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk_______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to