Hello Guest it is April 23, 2024, 12:11:40 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 - JORATORCA

Pages: 1 2 3
1
PoKeys / Re: PROBLEM WITH MPG IN POKEYS57
« on: April 12, 2018, 04:46:49 PM »
Tonight I discovered the reason for the strange behavior of my pendant. It turns out that a brain that I designed some time ago remained active and interacted with the MPG1. I disabled the brain and everything started to work perfectly.
Thank you all

2
PoKeys / PROBLEM WITH MPG IN POKEYS57
« on: April 11, 2018, 02:40:58 PM »
Hello everyone.
I am finishing my pendant to control my CNC milling machine manually. It is developed from a Pokeys 57 device. It has a tactile keyboard that controls all functions, a 4x20 character LCD and an MPG.
Everything works well with a macropump except the MPG. It has a very strange behavior, since I am only able to make it work if I set the MPG1 and MPG3 in Ports and Pins and in the Pokeys mapping, I encode the Fast Encoder 1 that I have connected in pins 1 and 2, so that I can manage the DRO103: MPG3 count DRO. In this way, if I move the encoder, I see the pulse count in the Pokeys IO Status and in the Settings tab of Mach3.
The problem is that the axis selector that I have written in the macropump logically does not work and to select the axis that controls the MPG I have to do it through the button of the interface of Mach3 or by pressing ALT + C on the keyboard.
My version of Mach3 is R3.043.066 and the Pokeys plugin is verison 3.15 of 2/28/2018.
If I only select MPG1 in Ports and Pins the axes move alone without control.

I have read and reread all the forum posts related to PoKeys and MPG and I have not found anything similar.

Can you help me?

Sorry for my bad english ...

3
Nobody knows how to detect through VB if you pressed the button to close Mach3? ??? ??? ???

Please help.

4
Nobody has an idea to solve this?

There any way to detect Mach3 pressing certain buttons as in VB?  :-\

5
VB and the development of wizards / HOW TO DETECT THAT MACH3 IS CLOSING?
« on: December 09, 2016, 02:57:46 AM »
Hello everyone,

Does anyone know any way to detect through macropump at what time the button is pressed to close the application (red cross top right)?

I need to send a confirmation signal to a device to inform you that Mach3 is going to close.

It would be best to know at what time "Yes" is pressed in the window that I show in the attached image.

Thank you

6
PoKeys / Re: HOW TO DETECT THAT IS RUNNING MACH3 IN POKEYS57CNC
« on: December 06, 2016, 06:14:25 PM »
I see the LED I have on output 43 blinking and I measured it with the oscilloscope and it actually receives a pulse every 100 ms (the time I have set in the failsafe) that sets it to 0, but immediately after it is set to 1.

I put a sneak on the LCD to tell me in what state was the "shared output 24". I have noticed that this happens when it stays at 1. If left at 0 the output 43 stays at 0 all the time. :'( :'(

7
PoKeys / Re: HOW TO DETECT THAT IS RUNNING MACH3 IN POKEYS57CNC
« on: December 06, 2016, 03:07:50 PM »
It works!!!

What does the Fail Safe function actually do? I would like to understand how it works.

Whenever I close Mach3 output 43 remains at 0. Now only need to convert the square wave I receive from Mach3 by 1 to the output of PoKeys57CNC. I would like to do it with the logical blocks of PoBlocks and without having to use more pins (I am running out). Is it possible?

8
PoKeys / Re: HOW TO DETECT THAT IS RUNNING MACH3 IN POKEYS57CNC
« on: December 06, 2016, 02:39:45 PM »
I'm still mulling over the matter. I have thought that PoKeys57CNC may be periodically checking if there is a Mach3 response. To do this it launches through a shared output (for example through UserDRO (1100)) that will receive Mach3 when it is active.

If Mach3 receives this input, a script (macropump) responds to PoKeys57CNC (for example through the shared output UserDRO (1124)). With this simple code check the operation of Mach3:
If GetUserDRO(1100) = 1 Then   'If I receive a 1 of PoKeys57CNC...
   SetUserDRO(1124, 1)              'Return shipping 1 to Mach3...
   activateSignal(OUTPUT7)         'and activates output 7 to display on the Mach3 diagnostic screen
Else
   SetUserDRO(1124, 0)
   DeactivateSignal(OUTPUT7)
End If

I have some problems that I can not solve:

1. The maximum frequency with which the check is refreshed is 200 ms (time it takes to run the macropump). It's slow, but it might be.
2. The output signal I get in PoKeys57CNC is a square wave of approximately 1.5 Hz and I need to convert it to a logic signal (1 if I have the square wave present and 0 when it disappears). I would like to do it through PoBlocks but I do not see the way to do it.
3. If when I disconnect Mach3 the shared output UserDRO (1124) is at 0, I get a persistent 0 Volts signal at PoKeys57CNC, but if I stayed at 1, I get a high signal. I do not know how to solve it either.

I attached the xml of PoBlocks so that you can understand it better.

9
PoKeys / Re: HOW TO DETECT THAT IS RUNNING MACH3 IN POKEYS57CNC
« on: December 02, 2016, 01:01:04 PM »
I enclose a reduced version with only two modes of operation, automatic and MPG.

As in the AUTO mode the pulse engine of PoKeys57CNC is disabled, it is Mach3 which causes the 5kHz signal of the charge pump to be output from the pin 45. In this AUTO mode, if I close Mach3 the 5 kHz signal disappears.

The problem is that, if this Mach3 is closed, I select the MPG mode, the 5 kHz signal appears. What I need is to generate a signal that prevents me from selecting any other mode, other than AUTO, if and only if Mach3 is active.

How I am able to send a signal (a 1 for example) to PoKeys57CNC from Mach3 when I start it, the only thing I do not know is to be able to put that signal to 0 when I close Mach3. I think that if I am able to detect by code (macropump) that I pressed the button to close Mach3, I will be able to detect its shutdown and act accordingly within my code.

I hope you have understood me. I do not express myself very well in English.

10
PoKeys / Re: HOW TO DETECT THAT IS RUNNING MACH3 IN POKEYS57CNC
« on: December 02, 2016, 01:46:59 AM »
Bufff. It did not work for me! :'( :'( By integrating this solution into PoBloks, I have discovered that output 13 is set to 1 even when the pulse engine is activated by manually moving the axes with the MPG.

I have to look for a solution that shows me only what I need: that Mach3 is active.

I still think that the solution is to permanently check through the macropump if the button of the red cross of closing of the Mach3 application has been pressed. Any ideas?

Pages: 1 2 3