Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: nemoc on April 25, 2012, 05:55:43 PM

Title: Art Code:8877
Post by: nemoc on April 25, 2012, 05:55:43 PM
Hello people, can someone help me with this message?
 "Art Code: 8877."
 What does it mean?
 Where can I get an error table?

Thanks

NEMO
Title: Re: Art Code:8877
Post by: Hood on April 25, 2012, 06:08:27 PM
Only Art will know what that means I suspect. I will see if he will look in and reply.
Hood
Title: Re: Art Code:8877
Post by: Hood on April 25, 2012, 06:24:28 PM
Art says possibly an error with your MPG control. He said the error means that the last successfull thing run as MPGControl..not necessarily that the erro r is there.
Hood
Title: Re: Art Code:8877
Post by: Hood on April 25, 2012, 06:25:50 PM
Art said to see if selecting shuttle mode changes the error.
Hood
Title: Re: Art Code:8877
Post by: nemoc on April 25, 2012, 08:27:24 PM
Hi Hood
I have a macro like this below , where the error  (Art Code:8877) occurs when changing the value of INPUT1.
Can you see anything wrong?

Thanks

Nemo

*************************
Dim Value as boolean

Value = IsActive(INPUT1)
   

   If Value = True Then
         Code "(Ativado)"
         Code "M8"
         Code "G04 P2.5"
         Code "M9"
         Code "G04 P1"   
              Code "(            )"

      Else

   Do
   Value = IsActive(INPUT1)
   If Value = False then
      Code "(Pneumatico Desativado)"
   Else
         Code "(Ativado)"
         Code "M8"
         Code "G04 P2.5"
         Code "M9"
         Code "G04 P1"   
              Code "(            )"

      Exit Do
   End If
   Loop
    End If
Exit Sub
Title: Re: Art Code:8877
Post by: Hood on April 26, 2012, 02:50:50 AM
I dont seem to have a problem with that code when I run it with Input 1 active. Can you attach your xml and also what version of Mach are you using and are you using the parallel port or some external device?
Hood
Title: Re: Art Code:8877
Post by: BR549 on April 26, 2012, 03:15:35 PM
Can you explain what the macro is suppose to do. I see a couple of things but really need to know what it is you want it to do.

(;-) TP
Title: Re: Art Code:8877
Post by: nemoc on April 27, 2012, 01:02:42 PM
Hi BR549
It's Simple. The macro checks if INPUT#1 is or not active.
If TRUE - forward , If FALSE,  wait for TRUE condition.

thanks


Nemo
Title: Re: Art Code:8877
Post by: nemoc on April 27, 2012, 01:15:03 PM
Hi Hood
Parallel Port
Mach Version R3.042.029
INPUT#1 - PIN10
Active HI
The external Device is a single MicroSwitch.
Could the problem be caused by debouncing or noise?

Nemo
Title: Re: Art Code:8877
Post by: Hood on April 27, 2012, 02:22:40 PM
Cant see how noise would be the problem. If you attach your xml I will see if I can get the same happening here.
Hood
Title: Re: Art Code:8877
Post by: nemoc on April 27, 2012, 03:11:33 PM
Hi Hood

XML attached.
Title: Re: Art Code:8877
Post by: Hood 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
Title: Re: Art Code:8877
Post by: nemoc 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
Title: Re: Art Code:8877
Post by: BR549 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
Title: Re: Art Code:8877
Post by: Hood 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
Title: Re: Art Code:8877
Post by: nemoc 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
Title: Re: Art Code:8877
Post by: nemoc on April 27, 2012, 05:50:13 PM
HI BR549 , I'll try your suggestion.

Nemo
Title: Re: Art Code:8877
Post by: nemoc 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
Title: Re: Art Code:8877
Post by: nemoc 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