Resolved for now: Configuring Linux CNC with awlsim

More
09 Jun 2021 18:21 - 10 Jun 2021 23:09 #211630 by mlw19mlw91
I am having a little bit of trouble configuring this setup. I cannot figure it out at all.

When I go to setup a machine, there's no option to import the HAL file that comes with the package from: github.com/mbuesch/awlsim

I have no idea where to start with this configuration.

I have successfully installed AWLSIM on linuxcnc 2.8.0 buster. This required a couple of things added to the OS, I had to update python to one of the latest versions, install that, make some config changes, etc.

I have no idea where to go from here to get it so that there's a machine config able to use AWLSIM to communicate with a machine that uses rs485.

I am fairly certain that the machine uses PLC as it has an AWL file in about exactly the same format as the sample awl file from the awlsim package.

The slight differences can probably be attributed to the fact that this EMCO machine is from the late 1990's.

Any help would be greately apprciated, and I'll be sure to document everything for future lurkers
Last edit: 10 Jun 2021 23:09 by mlw19mlw91.

Please Log in or Create an account to join the conversation.

More
09 Jun 2021 19:18 #211635 by Roiki
Go into your ini file. Under [HAL] add halfile = awlsim.hal (or whatever the name of the file is.
The following user(s) said Thank You: mlw19mlw91

Please Log in or Create an account to join the conversation.

More
09 Jun 2021 21:38 - 09 Jun 2021 21:40 #211641 by mlw19mlw91
ok I did just go to do that, now I get this error, though:



The file seems entirely correct, see:
Attachments:
Last edit: 09 Jun 2021 21:40 by mlw19mlw91.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
09 Jun 2021 22:53 #211649 by tommylight
Does not seem to be a hal file, more like python .
It would be helpful to provide some pics or docs or as much info as possible, we volunteer our time here, so forcing us to chase info through the net is not helping us help you.
The link to github you provided also does not seem to have anything to do with LinuxCNC, so i am confused about what you are trying to achieve.
The github page has full software for controlling some sort of PLC so that software needs to be run on it's own.
Also LinuxCNC can not control machines through serial ( has been done through USB, but not used much ), parallel and ethernet only are supported.

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 00:43 #211661 by mlw19mlw91
^I know, that's what so confusing.

Ok I was able to get the previous issue sorted out. Here's the issue I get now:




As far as the GITHUB it is confusing, but if you search through it you will find the following folder for linuxcnc:
github.com/mbuesch/awlsim/tree/master/awlsimhw_linuxcnc

There's a further example setup here:
github.com/mbuesch/awlsim/tree/master/examples/linuxcnc-demo

When I load every example file to a config folder, I get the error listed in the photo above.

The specific files for linuxcnc that I am currently trying to use are exactly as posted in the examples section. I think if I can get the example to work past the posted issue in the picture, I can modify my files to make them work.
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 06:55 #211672 by Clive S

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 07:32 #211673 by phillc54
It may help to post your complete configuration directory as a compressed file.

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 15:05 - 10 Jun 2021 15:06 #211705 by Roiki
The hal file tries to set up a userspace component but cannot find the correct file.

This is the command:


loadusr -Wn awlsim awlsim-linuxcnc-hal --listen localhost:4151 linuxcnc-demo.awlpro

Last edit: 10 Jun 2021 15:06 by Roiki.

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 15:32 #211709 by mlw19mlw91
^Ok I think I was able to work around that last one, see my current error here:


One thing that comes to mind is I had an issue running setup.py from the github files for awlsim


not sure if that would do it. Also attached full config set of files.
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Jun 2021 21:59 #211741 by mlw19mlw91
Guys,

Don't need any advice for the moment, I had just about everything working, then I restarted linuxcnc, and at the login screen my username and password would not work for some reason

I started from scratch and I'm not back at the same place yet but last time I got it to a point where linuxcnc was sending commands out to localhost:4581 (or whatever the port is), and I only had to change this to communicate with the machine but I'm not sure how to change that,

but I'll get back to that point soon and post back

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum