Hello Guest it is April 16, 2024, 12:54:27 AM

Author Topic: new pokeys wan't work in mach3  (Read 5592 times)

0 Members and 1 Guest are viewing this topic.

new pokeys wan't work in mach3
« on: January 09, 2011, 09:41:57 AM »
hi all,

i have a new pokey controller (serial nr: 12105)

all switches, encoders or the lcd works fine with the Pokeys55 configuration util
i have also update to the latest firmware and the mach plugin is version 10.6.4.

but in mach3 the encoders and the lcd don't work?
when i use 'configure plugins' it says to me 'Use Port 10 if you want to map any PK digital I/O to the PP config dialog in mach3'
i do this, but nothing happens. also the lcd show nothing.
In the plugin control - pokeys0 cfg dialog i use the check box 'use lcd display (pins 28-34 used by LCD)' but in the user manual are the pins 23-30 are used for LCD1
i'm confused...
only a configurded switch do his job. (all axis to null) but i can't press it like a normal button, i must hold down for a second to get the event in mach3..

any ideas?
« Last Edit: January 09, 2011, 09:59:58 AM by mike303 »

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: new pokeys wan't work in mach3
« Reply #1 on: January 09, 2011, 02:30:37 PM »
read the users manual, and read the Flash help included in the PoKeys..........  use the Plugins config menu to configure.

Please READ the instructions before you say it doesnt work......

scott
fun times
Re: new pokeys wan't work in mach3
« Reply #2 on: January 09, 2011, 03:13:38 PM »
...and exactly i did this.

in chapter 'HD44780-based character LCD' is NOTHING about '..you can only use LCD2 with mach3-plugin...' also in the flash-help, no word about.
thank you for 'you-must-read-the-manual-tip'.

i found via google a hint, that i can only use lcd2 in mach3-plugin, because some issues on the controller. there is hopefully a fix in the future!

and where is the docu about 'User Label Numbers'? In Pokeys Config U can set for each line a user label number between 0-255 but who are this numbers documented? in the flash-help-file? sorry, not found...

 
and why happens this:
Number of Rows:2
Number of Chars: 20
Line1#:101
Line2#:102

and only the Y-axis (101) is showing in the first line of lcd
some trying to change or other values the lcd is blank
« Last Edit: January 09, 2011, 03:17:15 PM by mike303 »
Re: new pokeys wan't work in mach3
« Reply #3 on: January 09, 2011, 04:04:52 PM »
OK, i found my self ;-)

Now i understand the messaging system between mach an pokey.
So can everybody give me some tips or web resource for VB in mach3? I've never used before.
Only a simple example was found by me:

SetUserLabel(100,"X-Achse " & Format(GetDRO(0), "+0.000;-0.000"))
SetUserLabel(101,"Y-Achse " & Format(GetDRO(1), "+0.000;-0.000"))

this 2 lines are saved as 'macropump.m1s' under c:\mach3\macros\Fräsen-Port-1'
this script is ever run when mach starts or how can i understand this    mechanisms?
Re: new pokeys wan't work in mach3
« Reply #4 on: January 10, 2011, 08:26:49 AM »
hello (again)

my lcd works. also a digi switch is ok but with encoder no luck.

all is correct wired. in pokeys-software i can see the counting tick's under 'encoder RAW values'
in mach3 MPG1 is active with port10 pin3+4. also in pokeys cfg is encoder2 mapped to '4'.
i rechecked my setup again and again but no error was found.
what could be wrong?

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: new pokeys wan't work in mach3
« Reply #5 on: January 10, 2011, 06:04:14 PM »
again, read the manual.......

the first encoder used in Pokeys is encoder 1, not 2, map encoder 1 to 4.
see the readme that comes with the plugin, also the FLASH help file.... goes into all this.... that is why it is there.....
fun times
Re: new pokeys wan't work in mach3
« Reply #6 on: January 11, 2011, 06:53:14 PM »
I've solved my encoder problem.
It was a 'brain-script' (what is/how works brain?)
After removing this all was right.

Now my new pokey works like a charm ;-)

My LCD is triggered by a VB-script via macropump. Can anybody look over this 'state of the art':

If GetOemLed(800) Then
   SetUserLabel(100,"NOT-AUS!")
   SetUserLabel(101,"Keine Bedienung!")
ElseIf GetOemLed(57) Then
   SetUserLabel(100,"MPG-Modus auf:")
   If     GetOemLed(59) Then
      SetUserLabel(101, "X-Achse " & Format(GetDro(0), "0.00;-0.00"))
   ElseIf GetOemLed(60) Then
      SetUserLabel(101, "Y-Achse " & Format(GetDro(1), "0.00;-0.00"))
   ElseIf GetOemLed(61) Then
      SetUserLabel(101, "Z-Achse " & Format(GetDro(2), "0.00;-0.00"))
   End If
ElseIf Not IsActive(OEMTRIG3) Then
   SetUserLabel(100, "Alle Achsen auf Null")
   SetUserLabel(101, "")
   Beep 200,200
Else
   SetUserLabel(100,"X: " & Format(GetDro(0), "0.00;-0.00") & " Y: " & Format(GetDro(1), "0.00;-0.00"))  'prints the X & Y axis
   SetUserLabel(101,"F: " & Format(GetOemDro(55), "0.0  ") & " S: " & Format(GetOemDro(817), "0.0"))  ' prints the F & S
End If


Is this the 'correct' way or is there a cooler method?
A try like:

Function Fname()
      SetUserLabel...
End Function
If GetOem... Then
     Fname
End If

That wouldn't not work...?