Hello Guest it is September 28, 2021, 12:55:04 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - omegasea21

Pages: 1 2 3 »
2
Hello, thanks for the feedback. The machine very large. 10x10 and occasionally the machine "skips", one of my biggest concerns with the machine has been repeatability.

Guess I will have to get some limit/home switches, what is the best way to go about do this? are there are other recommended hardware for positioning/homing?

Thanks

3
I have built a very large machine, that uses coordinates to locate certain objects. It is important that that machine is accurate when locating the coordinates.

If one of the axis skips a little, the coordinates are off.

I would like to create a simple macro to run every few hundred lines to reset the coordinates.

The machine does not have limit switches. Any ideas how do this?

I was thinking of purposely sending the unit past 0,0 something like -1, -1 (the machine will skip a little) and then reset the x,y DRO to 0,0.

Any better ideas?

Thank you!  

4
I would just like the script to end if the condition is met and it is not stopping. I see the Torch Up LED (OEMLED 37) lit up in the diagnostics screen, yet the script just wont stop running. Please help.

Code "m7" 'mist on
Code "G4 P4" 'Wait 4 seconds
Code "M9" 'mist off
Code "M8" 'flood on
Code "G4 P4" 'wait for seconds
Code "M9" 'Flood Off
If GetOemLED(37)=1 then 'if torch up Led active end script
End
Else 'if not
Code "m7" 'mist on
Code "G4 P4" 'Wait 4 seconds
Code "M9" 'mist off
Code "M8" 'flood on
Code "G4 P4" 'wait for seconds
Code "M9" 'Flood Off



5
Thank you. I will give it try!

6
Hood,

Hello. Yes, the brains tie in the with potentiometer.

The brain reads like this:

if value of potentiemeter is > 13, turn off mist, it works fine and takes about 1 second for the actuator to extend.

So if the macro will not wait for the brain, I wonder if I should remove the brain and incorporate the "mist off" via the marco. Like this:

Code "G0X9Y11" 'go to specified coordinate'
While IsMoving 'wait until stops moving'
Wend
Code "M8" 'mist on'
If GetOEMDRO(74) >13 Then
Code "M8" 'Mist Off'
Sleep (1000) 'wait For 1 Second'
Code "M7" 'flood on'
If GetOEMDRO(74) <12 Then
Code "M7"
If GetOEMLED(24) then 'if led 24 is active then end macro'
Code "G0X0YO" 'go home'
While IsMoving 'wait until stops moving'
Wend
End
Else 'if not'
Code "M8" 'mist on'
If GetOEMDRO(74) >13 Then
Code "M8" 'Mist Off'
Sleep (1000) 'wait For 1 Second
Code "M7" 'flood on'
If GetOEMDRO(74) <12 Then
Code "M7"
Code "G0X0Y0" 'go home'
Endif 'end macro'

7
Gerry - So aside from "after your "Go Home" moves, you should probably add while ismoving...wend." does it look OK? This is the final step is completing my project and I am really excited to get it to work like I envisioned many months ago.

Also - hood just saw your post, thank you!

8
The M7 / M8 are actually tied to linear actuators with potentiemeters. When M8 turns on, the actuator extends, when the potentiemete hits certain value it turns off (same with flood but in reverse)

thanks!

9
Hood, thanks for your post, this is the second time you came to my aid!

I see that you changed the Endif to End in the middle of macro, I didnt see that when I made my last post, but will adjust it in the final script.

Are parenthesis required?

I.e.

Code ("M8") or will this work Code "M8"

thank you!

10
Thank you so much.

1.) The M7/M8 are being turned off by brains (I should have mentioned previously)
2.) Understood about setting the delay in ports in pins

I modified the script a little, this time I set it to wait until the previous command ends, will this work? Will the While IsMoving Wend command know to wait until m7 or m8 stops (as mentioned they are stopped by brains)?

Code "G0X9Y11" (go to specified coordinate)
While IsMoving (wait until stops moving)
Wend
Code "M8" (mist on)
While IsMoving() (wait for mist to turn off)
Wend
Code "M7" (flood on)
While IsMoving() (wait for flood to turn off)
Wend
If GetOEMLED(24) then (if led 24 is active then end macro)
Code "G0X0YO"(go home)
Endif
Else (if not)
Code "M8" (mist on)
While IsMoving() (wait for mist to turn off)
Wend
Code "M7" (flood on)
While IsMoving() (wait for flood to turn off)
Wend
Code "G0X0YO" (go home)
Endif (end macro)

Pages: 1 2 3 »