Total Newbie Looking for Information
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
so i read these days something over LinuxCNC here and there and over HAL and over Signal Linking and over Probe Basic but more over QtPyVCP and all these jungle... i missing a basic understanding or basic information to set my pin outputs and inputs correct in software.
For normal user i have a machine and i have inputs and outputs. Most of the outputs like Axis and most of the inputs like Home-Switches programmed to signalnames and these signalnames linked to pins. So good now - but some pins have special names and linked to special signals like AXIS Enable or +-10V Out for the AC-Servos.
But i have more output Pins on my mesa-card i will use. Like a air-valve for coolant. Where is the definiton for this signal to link/trigger my output-pin of my mesa-card? And i use now probe-basic how i say probe-basic it what pin goes to true to activate coolant?
Same questions for something like airvalve for clamp and unclamp my tool on the ATC - have i write it on my hal-file itself and if yes - how i know which signal i can use for example say LinuxCNC my air-valve for coolant for example is on pin [HMOT](CARD0).ssr.00.out-04 Out 5 of my mesa-card? I thought there is prenamed signals like for Axis-Enable etc. - is there a list?
So now i don't see the forest because of many trees...
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
# ToolChange/FU_LOCK Outputpin on MESA 7i97 TB5 13 & 14
#[HMOT](CARD0).ssr.00.out-00
# Spindle Reverse Outputpin on MESA 7i97 TB5 15 & 16
#[HMOT](CARD0).ssr.00.out-01 >> already linked under SPINDLE
#net spindle-ccw spindle.0.reverse => [HMOT](CARD0).ssr.00.out-01
# Spindle Reset FU after Failure Outputpin on MESA 7i97 TB5 17 & 18
#[HMOT](CARD0).ssr.00.out-02
# Coolant Outputpin on MESA 7i97 TB5 19 & 20
#[HMOT](CARD0).ssr.00.out-03
# Spindle Enable Outputpin on MESA 7i97 TB3 21 & 22
# hardcoded signalname
#net spindle-enable => [HMOT](CARD0).pwmgen.05.enable
# Failure FU Inputpin on MESA 7i97 TB5 5 IN11
# Spindle Reday/RPM reached Inputpin on MESA 7i97 TB5 5 IN12
# Spindle Oil Switch Inputpin on MESA 7i97 TB5 5 IN13
# Spindle Oil Air Switch Inputpin on MESA 7i97 TB5 5 IN14
# Air Switch Inputpin on MESA 7i97 TB5 5 IN15
# Tool in Spindle Inputpin on MESA 7i97
# Tool in Tool-Changer Carousel Inputpin on MESA 7i97
# Home Switch Tool-Changer Caroussel Servo Inputpin on MESA 7i97 TB3 17 & 18 ENA4
# hardcoded joint.4.home-sw-in
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
for the coolant i have found this names and signals here:
linuxcnc.org/docs/html/man/man1/io.1.html
iocontrol.0.coolant-mist
So for me to understand where are these names coming from - is there a list for all?
For activate my output of mesa i have set now:
net coolant-mist iocontrol.0.coolant-mist [HMOT](CARD0).ssr.00.out-03
How the names for tool-clamp and unclamp means the air-valve for the atc...?
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
have found this:
www.forum.linuxcnc.org/38-general-linuxc...ol-clamp-unclamp-bit
so there is nothing like i want in simple way....
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19460
- Thank you received: 6529
Should they be controlled manually or with a button or automatically from gcode or.... ?
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
Only a few very basic functions have dedicated Hal pins to use (eg Spindle, coolant, estop) for most of your other functionality you will first need to think about what you want/need. As an example:This my Functions i need to implement..
# ToolChange/FU_LOCK Outputpin on MESA 7i97 TB5 13 & 14
#[HMOT](CARD0).ssr.00.out-00
# Spindle Reverse Outputpin on MESA 7i97 TB5 15 & 16
#[HMOT](CARD0).ssr.00.out-01 >> already linked under SPINDLE
#net spindle-ccw spindle.0.reverse => [HMOT](CARD0).ssr.00.out-01
# Spindle Reset FU after Failure Outputpin on MESA 7i97 TB5 17 & 18
#[HMOT](CARD0).ssr.00.out-02
# Coolant Outputpin on MESA 7i97 TB5 19 & 20
#[HMOT](CARD0).ssr.00.out-03
# Spindle Enable Outputpin on MESA 7i97 TB3 21 & 22
# hardcoded signalname
#net spindle-enable => [HMOT](CARD0).pwmgen.05.enable
# Failure FU Inputpin on MESA 7i97 TB5 5 IN11
# Spindle Reday/RPM reached Inputpin on MESA 7i97 TB5 5 IN12
# Spindle Oil Switch Inputpin on MESA 7i97 TB5 5 IN13
# Spindle Oil Air Switch Inputpin on MESA 7i97 TB5 5 IN14
# Air Switch Inputpin on MESA 7i97 TB5 5 IN15
# Tool in Spindle Inputpin on MESA 7i97
# Tool in Tool-Changer Carousel Inputpin on MESA 7i97
# Home Switch Tool-Changer Caroussel Servo Inputpin on MESA 7i97 TB3 17 & 18 ENA4
# hardcoded joint.4.home-sw-in
# Spindle Reset FU after Failure Outputpin on MESA 7i97 TB5 17 & 18
How do you want the reset to be done, when the estop signal in linuxcnc is cleared, when machine is enabled , maybe even a dedicated custom button in the gui?
# Failure FU Inputpin on MESA 7i97 TB5 5 IN11
What do you want to happen in case of failure in the VFD? (Probably trigger an estop but maybe you don't who knows)
# Spindle Reday/RPM reached Inputpin on MESA 7i97 TB5 5 IN12
This you may want to connect to spindle.N.at-speed maybe just a custom indicator in the GUI
linuxcnc.org/docs/html/man/man9/spindle.9.html
# Spindle Oil Switch Inputpin on MESA 7i97 TB5 5 IN13
# Spindle Oil Air Switch Inputpin on MESA 7i97 TB5 5 IN14
# Air Switch Inputpin on MESA 7i97 TB5 5 IN15
Same here only you know what you want to happen when these signals change
As for the toolchanger that is going to be dependent on what kind of toolchanger it is and if it can be run with one of the built in components or if it need some extra logic in hal.
Linuxcnc can be configured to run almost any machine but that comes with a bit of a learning curve. I would suggest to tackle one thing at a time :
1. Estop chain
2. get axes setup (tuning)
3. Homing
4. Jogging
5. Spindle
6. Toolchanger
Don't start to fiddle with too many things at once or you are going to have a very tough time to iron out your hal file(s).
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
So the step - by step here:
1. Estop chain >> ToDo
- FU-Failure
- Spindle Oil Switch Inputpin on MESA 7i97 TB5 5 IN13
- Spindle Oil Air Switch Inputpin on MESA 7i97 TB5 5 IN14
- Air Switch Inputpin on MESA 7i97 TB5 5 IN15
All these Inputs are very critical so the estop should be active.
Then a message as a Popup appear to tell me the Input-Problem - means a Message for each Input like
"Error" Air missing.
"Error" Oil missing
"Error" Air for Oil missing
"Error" FU-Failure
2. get axes setup (tuning) >> all is fine and running
3. Homing >> all is fine and running
4. Jogging with WHB04B >> all is fine and running
5. Spindle >> all is fine and running but not the FU-failure and the RPM-Ready inputs.
6. Toolchanger >> nothing
For the RPM-Ready Input is this not triggered the beginn of the G-Code Program?
My old milling have a simple Delay - like wait 10 seconds before start milling - to wait the spindle is driving up to the set rpm. So here i have a input that tell me Spindle Ready for milling - is there not any signal on LinuxCNC to link this input? How handle LinuxCNC the begin of milling with wait for spindle?
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
- Posts: 72
- Thank you received: 6
So i want to build a geneva-toolchanger with 8 tools. I want to drive with a servo because i have XYZA on my mill and the last is Spindle-Ouptut so one is not connected - MESA 7i97 have no other outputs - so i use a cheap servo for this Around 150€ with Driver.
Then i have 8 Input free and only 3 Outputs - look for an extension of this but all out of stock of this extension mesa.cards. But i think i don't need more extra Ouptuts.
So my idea is to move Spindle to Tool-Changer Place in XYZ - then wait for toolchanger is move linear to spindle and grip tool - then unclamp tool from spindle - then Spindle move up - then geneve rotate to new place - then spindle goes down - tool clamp of spindle - then Tool-Changer move back.
The move of the "Tool-Changer Geneva Thing" is a linear system with pneumatic - and i need her only one output. Then i use two inputs for check the position of the tool-changer linear move. First for Back position and second for under Spindel postition. The servo rotate the geneva tool-changer. Her i think i need additional inputs - like Homing-switch - then Tool is up and is down - i will check if i can set an sensor on the spindle to check tool is inside - the spindle FU is locked if the Tool-Clamp is open - because it is not allowed to drive the spindle without any tool - it can be damage. I will draw this thing in Solidworks - and post it next time i'm ready with my ideas.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19460
- Thank you received: 6529
store.mesanet.com/index.php?route=produc...74_79&product_id=235
For the build, do you have anything already designed and tested or nothing yet?
Have a look here, if you have not already seen it, we had a lengthy chat about an open source, simple geneva ATC here:
www.forum.linuxcnc.org/qtpyvcp/49649-cre...nted-with-cad-models
forum.linuxcnc.org/qtpyvcp/48649-probe-b...-toolchanger?start=0
forum.linuxcnc.org/38-general-linuxcnc-q...-debug-phase?start=0
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
Then you'll want to connect that to spindle.0.at-speed. Linuxcnc will then wait with execution until the signal goes True.How handle LinuxCNC the begin of milling with wait for spindle?
Please Log in or Create an account to join the conversation.