Giter Club home page Giter Club logo

Comments (6)

mbuesch avatar mbuesch commented on July 23, 2024

Thanks for your question.

I'm afraid I can't really answer your question with the information at hand.
How you connect your machine power stages to LinuxCNC + AWLSim fully depends on what actual hardware you have available.
So what hardware does your machine offer? What is the interface of the hardware you have?

from awlsim.

MichaelWoodc avatar MichaelWoodc commented on July 23, 2024

The hardware has a DB9 interface and it was connected to the original PC via an RS485 ISA slot card. The DB9 connector goes straight into the axis controller. At first I thought it was profibus, and profibus is mentioned one time in the manual, however, some of these also seemed to use siemens 840 hardware, and I'm pretty sure this EMCO pcmill 50 uses something similar. The machine is setup with an AWL file.

So I see the linuxCNC example, how how do I get the respective commands into the DB9 port of my CNC? What would be kindof a flowchart of software to hardware ending at the DB9 connector of the CNC machine?

I assume:
LinuxCNC
Custom HAL & INI files
Server on linuxcnc pc
client on raspberry pi
rs485 interface somehow
cnc machine

from awlsim.

mbuesch avatar mbuesch commented on July 23, 2024

Ok, well.
The most important thing now would be to definitely find out what that DB9 port really is. What standard. What protocol it talks.
Then the second most important thing would be to figure out a way to have LinuxCNC talk to that port.
I can't really help with both of these points and these points are not really subject to Awlsim.

Awlsim comes into play much later. Before you think about Awlsim, you basically need to get the hard realtime components working (e.g. the axes and joint drives). That is: Get LinuxCNC basically working with your machine.
Then you can think about how to control the whole not-hard-realtime rest of the machine from Awlsim (e.g. coolant, lubrication, hard limit switches, ... whatever else).

from awlsim.

MichaelWoodc avatar MichaelWoodc commented on July 23, 2024

One thing that leaves me slightly confused about that is that the axis controllers are detailed in the AWL file, and I'm not looking to perform much realtime functions like rigid tapping for example.

I was under the impression that the whole machine was controlled by parameters listed in the AWL file and thus AWLSIM could use a slightly updated AWL file to be the only control to the machine.

When I analyzed the protocol it seemed to be profibus at first, but the machine uses AWL files which to me was rather confusing

from awlsim.

mbuesch avatar mbuesch commented on July 23, 2024

One thing I forgot is:
It is important to first understand how LinuxCNC works (especially the LinuxCNC HAL) before trying to understand how to connect Awlsim to LinuxCNC.
The interface between LinuxCNC and Awlsim is the LinuxCNC HAL configuration. All communication between Awlsim and LinuxCNC runs through HAL signals.

Awlsim includes a fully functional LinuxCNC simulation example.

from awlsim.

mbuesch avatar mbuesch commented on July 23, 2024

One thing that leaves me slightly confused about that is that the axis controllers are detailed in the AWL file, and I'm not looking to perform much realtime functions like rigid tapping for example.

The realtime behavior of tapping would only be directly controlled by the LinuxCNC motion controller.
Awlsim is not directly involved in the axis/joint movements.
That's similar to a commercial CNC controller. The motion controller of a commercial machine is separate from the machine's PLC. The PLC does not directly control the power stage (e.g. the servos).

I was under the impression that the whole machine was controlled by parameters listed in the AWL file and thus AWLSIM could use a slightly updated AWL file to be the only control to the machine.

Yes. HAL signals can be written and read from Awlsim. These HAL signals can be connected to lots of functionality in LinuxCNC. Please read the LinuxCNC integrator manual and the HAL manual first.

from awlsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.