Hi,
I have a solid-state switch (SSS) that I have connected to my CNC's spindle. When I send a high voltage signal (+5VDC) to the SSS, it turns the spindle on. I would like to have a Start-Script that does an Auto Tool Zero and then turns on my spindle before running the actual job. Additionally, I would like to have a Stop-Script that turns the spindle off and moves it to its parked position. Specific questions I have:
Thank you very much,
Philippe
I have a solid-state switch (SSS) that I have connected to my CNC's spindle. When I send a high voltage signal (+5VDC) to the SSS, it turns the spindle on. I would like to have a Start-Script that does an Auto Tool Zero and then turns on my spindle before running the actual job. Additionally, I would like to have a Stop-Script that turns the spindle off and moves it to its parked position. Specific questions I have:
- How do I map a change in an input to a desired output (TTL or Relay)? For example I have a Normal-Low Signal on Input-1 and when it goes high, I want to have TTL Output-3 go from low to high and Relay Output-1 to open to ground.
- How do I setup a Start-Up script that runs prior to the main g-code file running as soon as I hit CTRL-S? For example, I want to run the Auto Tool Zero routine and then turn my spindle via the SSS connected to TTL Output 1, which requires a +5VDC Signal prior to my main g-code file running.
- How do I setup a Stop script that runs after the main g-code file is completed.? For example, I want to turn the spindle off via the SSS connected to TTL Output 1 which requires it to go from High to Low, and I want to move the spindle to the machine's origin once the main g-code file has completed.
- How do I invert an output signal so that it is normally high instead of the default of low or in the case of a relay, its output normally open instead of closed?
- Just to verify: A TTL Output is a digital logic output with a low signal of 0VDC and high signal of +5VDC. A Relay Output is an open/close circuit to ground that allows a current to flow from an external relay's control-circuit to ground when the Masso's relay terminal is switched to open. This requires a voltage source be attached to the external relay's (+) control-circuit input connection since the Masso's relay terminals do not provide an output voltage/signal. Is this accurate?
Thank you very much,
Philippe