Safe Zone!!!!, execution pause and resumption

  • rbobey1989
  • rbobey1989's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 Jan 2024 14:54 #290557 by rbobey1989
Hello everyone, I have a machine at work which is a good candidate for retrofitting in LinuxCNC, it is a double head miter saw, it is a TEKNA 145/10, I have some experience in the operation of these machines in different manufacturers FOM Industries, Mecal and Emmegi to name a few. Depending on the client's wallet, we can find machines like these from 1 axis to 5 axis (1 axis and 3 axis being the most common).
Taking the example of the simplest machine, 1 axis (longitudinal X), which positions the moving head to cut the profile. This axis has 3 limit switches, min position, max position and another safety zone;
I will explain more because this is where I have the doubt, the "X" axis has 3725mm of travel, the maximum position limit switch is located at 4000mm, the minimum limit switch is located at the minimum cutting level that the machine can make 275mm in this case and is shared with the home switch, now the safety zone limit switch is at 500mm.

The behavior is the following:
1-- There are two buttons that activate each movement.
2-- In case of a movement of the moving head from outside the safety zone to inside the safety zone, the moving head travels until it reaches the safety zone switch at a fast speed, stops and emits warning signals ( light and sound) then the buttons must be pressed to reactivate the second movement within the safety zone which is carried out at a lower speed.
2-- In case of movement within the safety zone, the same safety signals are emitted; the buttons must be pressed to activate the movement, making a single movement at low speed.
3-- In case of movement from the security zone to outside the security zone, the buttons must be pressed to activate the movement but this is done at fast speed.

I've been reading the motmod component documentation and found the motion.feed-inhibit, motion.feed-hold and motion.jog-inhibit pins. I am thinking of a component that reads the state of the safety zone limit switch and manages the state of these pins so that the machine stops and resumes movement later when the buttons are pressed. What is not clear to me is if when resetting these pins to continue with the movements of the machine Linuxcnc continues with the last command executed, for example in a movement from 1000mm to 400mm when the limit switch of the safety zone is activated at 500mm I would stop the machine with motion.feed-inhibit, I read the status of the buttons and when they are pressed LinuxCNC continues with the movement from 500mm to 400mm on its own or I would have to manage it myself.
  
If there is another way to implement this behavior, ideas are accepted hehehe, greetings

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
13 Jan 2024 17:10 #290569 by Aciera
'motion.feed-inhibit', 'motion.feed-hold' will set the feed-rate (also the rapid-feed rate) to zero.
Once these pins are cleared code execution resumes.
You can test the behavior in any simulation configuration using the 'watch' tab in the 'halshow' tool.
The following user(s) said Thank You: rbobey1989

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

  • snowgoer540
  • snowgoer540's Avatar
  • Away
  • Moderator
  • Moderator
More
16 Jan 2024 19:00 #290895 by snowgoer540
Replied by snowgoer540 on topic Safe Zone!!!!, execution pause and resumption
Spammer booted.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum