585,597 active members*
3,652 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1

    Kflop and pokeys together

    I am thinking about getting a kflop to generate the pulses for my stepper motors. I am currently using an old sony laptop with a parallel port for all my machines. The laptop appears to work fine but a smooth stepper or kflop seems like a worthwhile upgrade.

    I also have a pokeys which I am using to control mach with external buttons and an mpg.

    Are there any known issues with using both a pokeys and a kflop together?

  2. #2
    Join Date
    Jan 2006
    Posts
    115
    I've been reading that there may be some sort of conflict between Kflop and pokeys. Apparently only the Kflop can be used for motion control when using mach3, but it has not been made clear if a pokeys can be used by mach for other I/O alongside a Kflop. This would be a very practical, easy, and inexpensive way for me to implement additional I/O on my system. I was going to ask this question sometime in the next week or so, but it seems I am not the only one wanting to set it up this way.

  3. #3
    Join Date
    May 2006
    Posts
    4045
    Hi Guys,

    We don't currently support other MPG motions from other Plugins. Mach3 isn't well documented on how it is supposed to work. But it seems that there are some Encoder/MPG data structures where if a Plugin places MPG data the Parallel Port Kernel driver would perform the motion. Our plugin does not do this. See the description from the Mach3 Plugin "Bible" below.

    I would expect other functionality of Pokeys to work. Such as basic IO and keyboard press emulation.

    If someone has a Pokeys MPG and is willing to run experiments we can probably figure out where Pokeys is placing the MPG data. It isn't clear to me where the MPG count is in the structure shown. Maybe in one of the two Index counts?

    But we recommend connecting MPGs directly to KFLOP for the best response. That is the only way to avoid potential delays in Windows/PC/USB.

    Regards

    From the bible:

    Encoders & MPG's
    On each interrupt the engine will also count encoder positions and track the counts.
    These counts are put in the following structures of which 7 copies are maintained.
    Four for simple encoders and 3 for MPG's.
    struct Encoder
    {
    bool Active; // is the encoder turned on?
    int APin; // A Pin designations
    int BPin; // B Pin designations
    int APort; // A Pin Ports
    int BPort; // B Pin Ports
    bool LastStateA;
    bool LastStateB; // storage for the last known state
    int Count[2]; // Index counts for each encoder
    int Memory[16];
    int ActiveMemory;
    int Color;
    };
    The same rules apply as for inputs and outputs. If the port number is not 1 or 2, then
    the engine will not fill those variables and a plug-in or Brain is expected to do so if
    they are enabled. On each loop of the applications run it will check the MPG and
    encoder values, update any DRO's involved and , if the jog mode is set to MPG will
    move the axis in correspondence with the MPG mode in effect. The only reason
    MPG's must be switched on is that when the MPG stops and its velocity is zero the
    DEC variable of the jog registers is set to true to auto stop any jog. A rewrite of this
    will likely allow for Jogging via MPG at any time and will probably be done in future.
    When doing an MPG jog the current velocity of the MPG must be calculated by the
    application if in printer port mode, or sent in via brain or plug-in if using plugins or
    modbus devices to set the mpg. Examples of the timing clock interface are in the
    current example brains showing a g100 using a MPG from its encoder inputs.
    TK
    http://dynomotion.com

  4. #4
    Im happy to use Kflop for the MPG.

    Will the MPG work with a open loop system or does it need encoders?

  5. #5
    Join Date
    May 2006
    Posts
    4045
    Hi gavztheouch,

    An MPG can move any type of KFLOP Axis open or closed loop.

    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. Replies: 6
    Last Post: 12-21-2016, 01:47 PM
  2. Pokeys Mach 3 Controller
    By gavztheouch in forum DIY CNC Router Table Machines
    Replies: 11
    Last Post: 01-24-2013, 05:20 PM
  3. Mach3/Kflop/Pokeys MPG conflict
    By Snipes44 in forum Dynomotion/Kflop/Kanalog
    Replies: 11
    Last Post: 10-27-2012, 09:23 PM
  4. Opionions on this for PoKeys Matrix Keypad.
    By PoppaBear10 in forum Mach Software (ArtSoft software)
    Replies: 4
    Last Post: 09-17-2009, 06:11 PM
  5. New PoKeys Plugin with installer!!!
    By PoppaBear10 in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 06-19-2009, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •