Again 0-10V Problem on MESA 7i97
- nighteagle
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 6
24 Oct 2023 08:46 #283680
by nighteagle
Replied by nighteagle on topic Again 0-10V Problem on MESA 7i97
Hello,
i understand that if i want false for reverse that i can use this:
net spindle-ccw spindle.0.reverse => [HMOT](CARD0).ssr.00.out-01
So [HMOT](CARD0).ssr.00.out-01 means in every case true? If i link a pin-name it goes to true in every case of such link?
I can not differentiate the pin-name to go false or true depending of my needs?
I have to build inverse logic in hardware if i want the opposite?
So i mean normaly in machine-design we use closed switch means true and if i want to have signal then i open the switch - like limit-switch - because if a wire is broken you have an open switch and means true so the limit is reached. This is a safety concept for wiring in industry to make sure a singal is coming even if the wire is broken. And by the way you find the broken wire quicker.
So if i build something like tool-changer i will follow this conceptĀ - for that i ask for this pin-name always true link system with the command net.
I hoped i can differntiate the status of the pin-name to make a pin go false and say it is true.
i understand that if i want false for reverse that i can use this:
net spindle-ccw spindle.0.reverse => [HMOT](CARD0).ssr.00.out-01
So [HMOT](CARD0).ssr.00.out-01 means in every case true? If i link a pin-name it goes to true in every case of such link?
I can not differentiate the pin-name to go false or true depending of my needs?
I have to build inverse logic in hardware if i want the opposite?
So i mean normaly in machine-design we use closed switch means true and if i want to have signal then i open the switch - like limit-switch - because if a wire is broken you have an open switch and means true so the limit is reached. This is a safety concept for wiring in industry to make sure a singal is coming even if the wire is broken. And by the way you find the broken wire quicker.
So if i build something like tool-changer i will follow this conceptĀ - for that i ask for this pin-name always true link system with the command net.
I hoped i can differntiate the status of the pin-name to make a pin go false and say it is true.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4811
24 Oct 2023 12:46 #283697
by PCW
Replied by PCW on topic Again 0-10V Problem on MESA 7i97
SSR outputs are normally "on" when the hal pin is true.
It is important for safety that "on" enables motion since the
output will be off at power up, when LinuxCNC exits, or if
the computer crashes.
You can invert the output pins by setting the invert attribute for the pin.
Note that this does not change the fact that the pins will be "off" before
LinuxCNC starts and when LinuxCNC exits
More importantly, for a DIR/ENA controlled spindle its a safety issue
that you also control the spindle enable in addition to the direction.
It is important for safety that "on" enables motion since the
output will be off at power up, when LinuxCNC exits, or if
the computer crashes.
You can invert the output pins by setting the invert attribute for the pin.
Note that this does not change the fact that the pins will be "off" before
LinuxCNC starts and when LinuxCNC exits
More importantly, for a DIR/ENA controlled spindle its a safety issue
that you also control the spindle enable in addition to the direction.
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 6
25 Oct 2023 09:03 #283779
by nighteagle
Replied by nighteagle on topic Again 0-10V Problem on MESA 7i97
Hello and thank you for the explanation - but my thought was only to the logic of the LinuxCNC - how can i be sure the Pin is not true if i want drive spindle forward in case the Pin should be false? If there is some crashing of Softwre or Mesa there is not an safety concept to say forward set pin false and backweards set pin true.
The setting is only one thing:
Set the pin false if spindle backward
Do nothing with the pin if spindle forward
Looks not safe for me!?
The setting is only one thing:
Set the pin false if spindle backward
Do nothing with the pin if spindle forward
Looks not safe for me!?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4811
26 Oct 2023 12:02 - 26 Oct 2023 12:05 #283859
by PCW
Replied by PCW on topic Again 0-10V Problem on MESA 7i97
spindle.0.forward will only be true when the spindle is on and non-zero
forward spindle speed is requested and LinuxCNC is not in a fault state.
spindle.0.reverse will only be true when the spindle is on and non-zero
reverse spindle speed is requested and LinuxCNC is not in a fault state.
If you have a spindle drive setup for FWD/REV control you would typically
connect the drives FWD and REV pins to 2 separate outputs controlled by the
spindle.0.forward and spindle.0.reverse hal pins.
spindle.0.on will be true when a non-zero spindle speed is requested
and LinuxCNC is not in a fault state.
For safety with a DIR/ENA setup as you seem to have, you should always control
your drives spindle enable with LinuxCNC's spindle.x.on pin.
This way the spindle is forced off:
1. Before LinuxCNC starts
2. If the PC crashes
3. If LinuxCNC is in a fault state
forward spindle speed is requested and LinuxCNC is not in a fault state.
spindle.0.reverse will only be true when the spindle is on and non-zero
reverse spindle speed is requested and LinuxCNC is not in a fault state.
If you have a spindle drive setup for FWD/REV control you would typically
connect the drives FWD and REV pins to 2 separate outputs controlled by the
spindle.0.forward and spindle.0.reverse hal pins.
spindle.0.on will be true when a non-zero spindle speed is requested
and LinuxCNC is not in a fault state.
For safety with a DIR/ENA setup as you seem to have, you should always control
your drives spindle enable with LinuxCNC's spindle.x.on pin.
This way the spindle is forced off:
1. Before LinuxCNC starts
2. If the PC crashes
3. If LinuxCNC is in a fault state
Last edit: 26 Oct 2023 12:05 by PCW.
Please Log in or Create an account to join the conversation.
- nighteagle
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 6
26 Oct 2023 14:33 #283867
by nighteagle
Replied by nighteagle on topic Again 0-10V Problem on MESA 7i97
@PCW
The VFD have only one Enable Input and One Reverse-Input. And Speed is over 0-10V.
Enable is set like LinuxCNC is set this by default. On my Mesa-Card on ENA+ and ENA- and is working fine also Speed from 400rpm to 40.000 RPM is working fine. Correct scaling - the same speed value on LinuxCNC in comapiring to the VFD-LCD.
Have only problem to drive it reverse and i figure out why..
The VFD have only one Enable Input and One Reverse-Input. And Speed is over 0-10V.
Enable is set like LinuxCNC is set this by default. On my Mesa-Card on ENA+ and ENA- and is working fine also Speed from 400rpm to 40.000 RPM is working fine. Correct scaling - the same speed value on LinuxCNC in comapiring to the VFD-LCD.
Have only problem to drive it reverse and i figure out why..
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds