![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
I have an application that requires a single axis to index by 5mm, then pause until it sees an input on one of the lines. This is not a user input (i.e. hit a key on the keyboard) but a TTL input coming from another computer. My machine is measuring a tensile force, indexing to the next position, recording the force again, and so on. But the computer that interfaces with the load cell (and records the result) is a seperate system. So I'm trying to coordinate the two machines. If I can get the recording machine to tell the machine running Mach2 when to perform the next indexing move, I'm set. It seems so simple, just toggle one TTL input high to say "go to the next location." After browsing all 7 pages of threads in this forum, I didn't find the way to do this. Am I right, is it a simple thing to do? Thanks! -D |
|
#2
| ||||
| ||||
Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#3
| ||||
| ||||
How would I setup a M code? I should have mentioned this is not an industrial control (like Fanuc). It's a small xylotex board with TurboCNC or Mach3. |
|
#4
| ||||
| ||||
| After reading a little more, I wonder how the Cycle Start input works. Is there a gcode command to put the machine into a mode to wait for a "cycle start?" Can anyone explain how to do that? For instance, does the cycle start have to refer to a subroutine, or can it be used in the middle of a program? |
|
#5
| ||||
| ||||
| A few controls allow the customizing of G codes, but generally (M)achine codes are used to control just about everything that occurs outside of the Numerical Control side of things, I would think this would be the way to go. You would have to read up on the control you intend to use and find out how to implement a custom M code, which generally is fairly easy depending on the logic that the control uses. Typically you would issue, say a M81 in the part program which would call the routine tied to it, which would simply wait until it see a high on a particular digital input, The routine then sends a (Fin)ish or done signal back to the CNC side and the part program would continue with the next move, Someone familiar with Mach2 etc may be able to take it a bit further. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |