Hello Guest it is January 25, 2020, 04:25:27 PM

Author Topic: Art Code:8877  (Read 7315 times)

0 Members and 1 Guest are viewing this topic.

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #10 on: April 27, 2012, 03:11:33 PM »
Hi Hood

XML attached.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Art Code:8877
« Reply #11 on: April 27, 2012, 03:55:55 PM »
Tried it and it seems to be working fine here with your xml, macropump and  same Mach version.
When does it happen? Is it as soon as the switch is activated?
Can you emulate the switch via the keyboard and see if you still get the problem as that is what I am doing.
Hood

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #12 on: April 27, 2012, 05:17:52 PM »
I've tried to emulate the keyboard and did the same.
 The error does not occur immediately after the trigger microswitch or the keyboard, only after some time after retained.
 I have attached picture from the message

Offline BR549

*
  •  6,925 6,925
    • View Profile
Re: Art Code:8877
« Reply #13 on: April 27, 2012, 05:20:00 PM »
Just for something to try I have seen the DO act strangely in certain combinations. You may try this as a test to see if it acts  differently.

While  Isactive(Input1) = False
Code "(Pneumatico Desativado)"
Wend
  Code "(Ativado)"
  Code "M8"
  Code "G04 P2.5"
  Code "M9"
  Code "G04 P1"  
  Code "(            )"
 End

(;-) TP

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: Art Code:8877
« Reply #14 on: April 27, 2012, 05:25:45 PM »
Wonder if it could be due to computer load, I have had it sitting here with the macropump running and Input 1 emulated since I last posted and its been fine but its quite a powerfull computer I have here. What is the CPU load whilst the macropump is running with the emulated input? Mine just sits at 1% CPU.
Hood

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #15 on: April 27, 2012, 05:45:45 PM »
I'll try to explain the issue.
 Beside the spindle has an air drill. Initially the drill is high and the microswitch is activated or INPUT # 1 is high.
 When the drill is driven by Gcode, an air piston down the drill and the microswitch is deactivated, ie, INPUT # 1 goes down.
 The drill must return to the top, microswitch trigger to HI , releasing the CNC advances to the next hole.
I hope I have explained well.

Nemo

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #16 on: April 27, 2012, 05:50:13 PM »
HI BR549 , I'll try your suggestion.

Nemo

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #17 on: April 27, 2012, 08:24:37 PM »
Wonder if it could be due to........................................Mine just sits at 1% CPU.
Hood

Mine show 2%.

Nemo

Offline nemoc

*
  •  22 22
    • View Profile
Re: Art Code:8877
« Reply #18 on: April 27, 2012, 09:27:31 PM »
Just for something to try I have seen the DO act strangely in certain combinations. You may try this as a test to see if it acts  differently.
................................................................................
(;-) TP
Hi BR549
I swapped your suggested code to suit my need, and did a simulation.
 So far this has worked without problems.
......
  Code "(Ativado)"
  Code "M8"
  Code "G04 P2.5"
  Code "M9"
  Code "G04 P1"   
  Code "(            )"
While  Isactive(Input1) = False
Code "(Pneumatico Desativado)"
Wend
End

Nemo