Resolved for now: Configuring Linux CNC with awlsim
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
09 Jun 2021 18:21 - 10 Jun 2021 23:09 #211630
by mlw19mlw91
Resolved for now: Configuring Linux CNC with awlsim was created 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
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.
- Roiki
- Offline
- Premium Member
Less
More
- Posts: 116
- Thank you received: 19
09 Jun 2021 19:18 #211635
by Roiki
Replied by Roiki on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
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.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
09 Jun 2021 21:38 - 09 Jun 2021 21:40 #211641
by mlw19mlw91
Replied by mlw19mlw91 on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
Attachments:
Last edit: 09 Jun 2021 21:40 by mlw19mlw91.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19485
- Thank you received: 6533
09 Jun 2021 22:53 #211649
by tommylight
Replied by tommylight on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
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.
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.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
10 Jun 2021 00:43 #211661
by mlw19mlw91
Replied by mlw19mlw91 on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
^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.
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.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2240
- Thank you received: 474
10 Jun 2021 06:55 #211672
by Clive S
Replied by Clive S on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
This mabe or not be useful bues.ch/cms/automation/awlsim
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5711
- Thank you received: 2088
10 Jun 2021 07:32 #211673
by phillc54
Replied by phillc54 on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
It may help to post your complete configuration directory as a compressed file.
Please Log in or Create an account to join the conversation.
- Roiki
- Offline
- Premium Member
Less
More
- Posts: 116
- Thank you received: 19
10 Jun 2021 15:05 - 10 Jun 2021 15:06 #211705
by Roiki
Replied by Roiki on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
The hal file tries to set up a userspace component but cannot find the correct file.
This is the command:
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.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
10 Jun 2021 15:32 #211709
by mlw19mlw91
Replied by mlw19mlw91 on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
Please Log in or Create an account to join the conversation.
- mlw19mlw91
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 2
10 Jun 2021 21:59 #211741
by mlw19mlw91
Replied by mlw19mlw91 on topic Configuring Linux CNC with awlsim to control machine over serial port (or other)
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
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