PoKeys 56E Скачать руководство пользователя страница 31

PoKeys Pulse engine v2 documentation 

 

31 

www.poscope.com 

 

PoKeys Pulse engine operates in different modes with additional modes selectable per each axis.  

Modes of operation 

 

Stopped

: the pulse engine does not generate any pulses. 

 

Error

: the pulse engine encountered an error (e.g. limit switch was activated). 

 

Homing

:  homing  mode  is  activated.  In  this  mode,  one  or  more  axes  can  be  homed.  The 

selected  axis  (or  axes)  moves  in  negative  direction  at  predefined  fraction  of  the  maximum 
speed until the home switch is tripped. Then, the direction is changed to positive and speed 
decreased  to  half  the  previous  speed.  When  the  switch  is  tripped,  the  internal  position 
counter is reset and the axis is commanded to stop. This operation does not include moving 
back to position 0. The state of homing procedure is reflected in axes states. 

 

Probing

: during probing, selected axes are actuated by PoKeys device until a probe signal has 

changed to a predefined state. The position of the axes is saved and the motion is stopped. 

 

(MPG)  Jogging

:  if  axis  has  an  MPG  assigned,  the  MPG  jog  is  done  by  PoKeys  device  itself 

using the MPG multiplier value. 

 

Running

: normal operation mode. In this mode, each axis can be put into either the ‘buffer’ 

mode  (the  internal  controller  is  disabled  and  the  slots  are  fed  direclty  from  a  slot  buffer, 
which  must  be  constantly  filled  by  the  external  application)  or  into  the  ‘internal  controller 
mode’: 

o

 

internal  position  control:  moves  the  axis  to  the  desired  position,  following  the 
limitations set by the axis parameters, 

o

 

internal speed control: moves the axis at the desired speed, following the limitations 
set by the axis parameters. 

Internal  controller  modes  and  buffer  mode  utilize  separate  internal  buffers  for  operation.  Hence, 
changing between internal or external (buffered) mode does not require clearing the motion buffers. 
Moreover,  internal  controller  can  be  used  on  selected  axes  in  parallel  to  the  external  (buffered) 
mode on other axes (new to Pulse engine v2). 

In buffer (slave) mode, the  generated motion is transferred and  temporarily stored in the  timeslot 
buffer - a 128-slots deep buffer that holds pulse frequencies for each axis, giving a 128 millisecond 
buffered motion period. Each slot entry in the buffer holds 16 bytes (2 byte per axis) and each axis 
entry  uses  15-bits  for  pulse  frequency  and  MSB  bit  for  the  direction  signal  (if  MSB  bit  is  set,  the 
direction output is activated). Although buffer holds 16 bytes per time slot, only [number of activated 
axes] bytes are transferred for each slot using default ‘Fill motion buffer’ command.  

Fill buffer command is used to transfer the data to the slot buffer. Application that uses the fill buffer 
command should send as much time slot data as possible. PoKeys Pulse engine will then return the 
number of accepted time slots. This omits the need of additional query on the buffer free space in 
PoKeys  Pulse  engine  buffer.  Application  should  only  then  increase  the  'read  pointer'  based  on  the 
number of accepted slots. Additionally, fill buffer command returns a number of parameters of  the 
pulse engine (position, engine state, state of limit and home switches and states of each axis). 

In  Mach3  plugin,  PoKeys  Pulse  engine  operates  in  buffer  (slave)  mode  during  job  execution  and 
executes  the  motion,  generated  by  Mach3  motion  planner.  During  jogging,  MPG  jogging,  homing, 
probing  operations,  the  selected  axis  is  switched  to  internal  motion  controller,  enabling  real-time 

Содержание 56E

Страница 1: ...PoKeys Pulse engine v2 documentation Version 6 3 2016 ...

Страница 2: ...ipment is used with shall be fitted with a separate means of fail safe protection emergency stop capability and or system power removal This equipment may be connected to dangerous power sources including electrical power sources Dangerous voltage levels may be present at this equipment or at connected devices Measures must be taken to prevent persons from contacting voltage sources which may be p...

Страница 3: ...cated one or shared with limit switch inputs All inputs can are fully configurable input polarity placement using the PoKeys protocol used by PoKeys application or a third party application for motion control In addition operations in each axis can be limited using the soft limit function where minimum and maximum permissible axis position is specified once enabled the axis is put to a stop when e...

Страница 4: ...ns 11 PoKeys Mach3 plugin 12 Installing plugin 12 PoKeys Mach3 plugin existing functionality 12 Configuring plugin for the first time 12 Enabling Pulse engine 14 Motors axis setup 15 Axis switches configuration 17 Setting up digital inputs and outputs mapping 18 Pendant mode 19 PoPendant configuration 20 Encoder MPG settings 21 MPG manual pulse generator setup 21 PoKeys IO status 26 Other miscella...

Страница 5: ...e engine v2 documentation 5 www poscope com Safety charge pump output 32 Motor driver enable outputs 32 Axis parameters 32 Custom external pulse generator without IO functionality 32 Frequently asked questions 35 ...

Страница 6: ... for up to 8 stepper motors with step frequencies up to 125 kHz using PoExtensionOC16 or third party custom board External pulse generator with dedicated IO capabilities for up to 8 stepper motors with step frequencies up to 125 kHz dedicated limit limit home ref axis error inputs 3 relay outputs 4 open collector outputs 0 10 V output using PoKeysCNCaddon pictured below PoKeysCNCaddon inputs and o...

Страница 7: ...53 Safety charge pump 5 kHz output Inputs for limit home and probing switches can be freely connected to any PoKeys pin and configured in software Remarks Watch for pin 47 It is not used for step output All switch inputs expect normally closed NC switches and must be connected between specified PoKeys input pin and ground We advise adding an additional 1 kΩ pull up resistor on pins with an externa...

Страница 8: ...mA for correct operation 5 V 5 V 2 PoKeys ground not to be used for PoKeysCNCaddon IO GND GND 3 PWM signal for 0 10 V output 17 22 17 22 4 Signal for IO capabilities output 38 38 5 Signal for IO capabilities output 37 37 6 Signal for IO capabilities output 36 36 7 Signal for IO capabilities input 35 35 8 Signal for pulse generation 23 9 9 Signal for pulse generation 25 11 10 Signal for pulse gener...

Страница 9: ...Ref home for axis 7 RefAX3 Ref home for axis 3 AX7 Limit for axis 7 AX3 Limit for axis 3 AX6 Limit for axis 6 AX2 Limit for axis 2 RefAX6 Ref home for axis 6 RefAX2 Ref home for axis 2 AX6 Limit for axis 6 AX2 Limit for axis 2 AX5 Limit for axis 5 AX1 Limit for axis 1 RefAX5 Ref home for axis 5 RefAX1 Ref home for axis 1 AX5 Limit for axis 5 AX1 Limit for axis 1 Relay outputs PoKeysCNCaddon board ...

Страница 10: ...t In order to convert PWM signal to an analog output a low pass filter with the time constant of 1 ms is applied to the source signal In order to avoid ripples in the analog output use PWM frequency of 10 kHz or more Setup calibration either set the duty cycle to 100 or connect the PWM signal input to PoKeysCNCaddon board pin 3 to 3 3V Use the multimeter to measure voltage between GND adn 0 10 V o...

Страница 11: ...PoKeys Pulse engine v2 documentation 11 www poscope com Pulse engine limitations Minimum maximum position o Internal motion controller 16 8 million ticks o External buffered mode 2100 million ticks ...

Страница 12: ...ix keyboard Support for kbd48CNC keyboard on I2C address 1 Support for PWM outputs Support for alphanumeric LCD display Support for analog inputs analog joystick analog to DRO mapping offsets and gains adjustment automatic calibration Support for IO mapping Mach3 native input output pins additional 100 Mach3 IO device pins device name PoKeys_ serial number Dedicated menu for each device Support fo...

Страница 13: ...eys56E To add a new device configuration click the Add new button and select the PoKeys device as illustrated in the image below After new device configuration is added Mach3 MUST BE RESTARTED After restart the option Configure is enabled This opens the device configuration dialog where user can configure the device The same can be achieved using a dedicated device menu entry in the Mach3 Plugin C...

Страница 14: ...requencies up to 125 kHz External 4ch with IO use the pulse engine with PoKeysCNCaddon external boards This option supports step frequencies up to 125 kHz After selecting one of the options above click OK and restart Mach3 in order to allow Mach3 recognize an external motion controller On the next Mach3 startup the following dialog will appear notifying you that the motion control hardware plugin ...

Страница 15: ...ng the axes open the Motor tuning dialog Config Motor tuning Follow the Mach3 motor tuning procedure to setup the appropriate values for Steps per Velocity and Acceleration for each axis The Step pulse and Dir pulse options are IGNORED To setup Home Soft Limits go to the menu Config Homing Limits In this dialog software limits and homing speeds can be setup Use the Reversed and Home neg options to...

Страница 16: ...PoKeys Pulse engine v2 documentation 16 www poscope com ...

Страница 17: ...ternal pulse engine without IO functionality Home ref switch has some additional options Shared with Limit Limit switch functions both as Limit and as home position switch During homing Limit functionality is temporarily disabled Shared with Limit same as above but with Limit switch All switches can be inverted the green red blocks on the left of the switch selection options display the current sw...

Страница 18: ...pin function is set to Input this mapping will enable setting of Mach3 OEM LED state based on PoKeys IO pin state If the pin function is set to Output Mach3 OEM LED state will be reflected to PoKeys IO pin state Fourth column available only for digital inputs enables selection of IO mapping to Mach3 OEM buttons When PoKeys IO pin is triggered the selected Mach3 OEM button will be triggered also Fi...

Страница 19: ...ion switch If such pendant is connected to PoKeys Pendant mode should be enabled checkbox at the bottom of the PoKeys mapping dialog In this mode jog action will be deactivated when the activation switch is released and will be automatically activated when there is a signal detected for both the axis and step selection ...

Страница 20: ...but the plugin configuration must be adjusted accordingly If PoKeys Pulse engine is used Let PoKeys handle MPG jogging must be checked in encoder configuration page Figure 3 PoPendant internal wiring Wire PoPendant wire colour Function PoKeys pin number Mach3 Mapping 1 red MPG 5V 5V 2 black MPG GND GND 3 green MPG A 1 MPG1 B 4 white MPG B 2 MPG1 A 3 purple N C N C 4 purple black N C N C 5 green bl...

Страница 21: ...endant tells PoKeys plugin which encoder is used as MPG on the pendant In case the Pendant mode is enabled and there is an invalid signal from connected pendant changes of encoders marked with Pendant will have no effect on Mach3 or motion MPG manual pulse generator setup PoKeys plugin ties itself directly into Mach3 core and does not represent a device a an LPT port based extension Therefore Mach...

Страница 22: ...pins to matrix keyboard row and column connections The selected pins are automatically setup as digital inputs and outputs To setup mapping of matrix keyboard keys to OEM LEDs and buttons go back to PoKeys mapping tab and select appropriate functions for the matrix keyboard entries in the list of available IOs Enable matrix keyboard option Matrix keyboard size Row connections Column connections ...

Страница 23: ...he line 1 of the LCD display Row 2 are used to setup the other lines of the display Each row can hold multiple entries either label only either holding a numeric display of one of the available variables To add a new entry enter the User label optional select a variable you would like to display and its display format Then click Add button The contents list will be updated with the new entry To re...

Страница 24: ...ied in microseconds and have separetely configurable duty cycles Duty cycles can be specified either in 0 100 or as raw PWM duty cycle period in microseconds Each PWM output can be deactivated mapped to Mach3 OEM DRO PWM period in microseconds or in or assigned a fixed value PWM period in microseconds or in Mach OEM DRO selection PWM total period setting Output PWM mapping selection Fixed PWM valu...

Страница 25: ...ltage present on the selected pin the selected axis can be jogged progressively To enable analog joystick assign the axes in the Analog joystick column and click Calibrate button at the bottom of the dialog A simple wizard will walk you through the process and enable you to calibrate automatically set the gain and offset values based on your input After the successfull calibration enable analog jo...

Страница 26: ...diplayed giving the user an overview of PoKeys inputs and outputs encoder values and PoKeys Pulse engine states even when configuration dialog is closed Other miscellaneous settings Misc tab contains additional miscallaneous settings Assert Reset on connection failure if checked Mach3 will be but into Reset mode when the connection with the PoKeys device is dropped Disable the unavailable devices ...

Страница 27: ...oKeys Mach3 plugin exposes each PoKeys device named PoKeys_ serial where serial is the serial number of the PoKeys device as 100 virtual IO pins that can be accessed from Mach3 VB script with the following functions GetIODevName DevID As Short Return String DevID Device ID s start at zero and go up Return Returns the name of the Divice as a String If the device ID is out of range the return will b...

Страница 28: ...er 1 DevID 1 Do DevID DevID 1 SearchName GetIODevName DevID Search for the Device If SearchName NoDevice Then MsgBox Error Finding Device Exit Sub End If Loop While DevName SearchName For d 0 To 60 Loop 60 times to toggle the output on and off for one min r SetIODevOutput DevID Outputnumber 1 Activate the output If r 0 Then MsgBox Output Outputnumber GetIODevIOName DevID Outputnumber is Not an out...

Страница 29: ...ndle CW 1911 Plugin Spindle Stop 1912 Plugin Spindle CCW Additional OEM LEDs OEM LED Function 1900 Plugin Jog X axis LED 1901 Plugin Jog Y axis LED 1902 Plugin Jog Z axis LED 1903 Plugin Jog A axis LED 1904 Plugin Jog B axis LED 1905 Plugin Jog C axis LED 1906 Plugin Jog Select 0 001 increment LED 1907 Plugin Jog Select 0 01 increment LED 1908 Plugin Jog Select 0 1 increment LED 1909 Plugin Jog Se...

Страница 30: ... using integrated pulse generator or up to 125 pulses per 1 millisecond time slot using external pulse generator circuit which equates to 25 125 kHz maximum pulse frequency supported At each time slot beginning the selected limit and home switches are read and evaluated If emergency switch or any activated limit switch enabled in the configuration is tripped the pulse engine is put into Error mode...

Страница 31: ... set by the axis parameters Internal controller modes and buffer mode utilize separate internal buffers for operation Hence changing between internal or external buffered mode does not require clearing the motion buffers Moreover internal controller can be used on selected axes in parallel to the external buffered mode on other axes new to Pulse engine v2 In buffer slave mode the generated motion ...

Страница 32: ...s Axis parameters Internal mode uses the following axis parameters of motion Maximum speed maximum frequency of pulses in pulses s Acceleration maximum acceleration in pulses s 2 Deceleration maximum deceleration in pulses s 2 Limit and home switches configuration Direction change configuration direction can be changed separately for each of the axes Homing direction configuration direction of hom...

Страница 33: ... 1 QC 2 QD 3 QE 4 QF 5 QG 6 QH 7 GND 8 QH 9 SCLR 10 SCK 11 RCK 12 OE 13 SER 14 QA 15 VCC 16 74HCT595 5V GNDi STEP 1 STEP 2 STEP 3 STEP 4 DIR 1 DIR 2 DIR 3 DIR 4 DATA DATA to next 4 axes CLOCK 5V GNDi LATCH 100n GNDi 100 R2B 100 100 100 100 100 100 100 100 100 ...

Страница 34: ...PoKeys Pulse engine v2 documentation 34 www poscope com ...

Страница 35: ...ample the S60 for spindle speed of 60 to produce an analog output to control the spindle I do not know how to tell the pokeys CNC addon board how to pick up this S command This is achieved using the PWM output of the PoKeys board connected to the pin 3 of the PoKeysCNCaddon board connection Go to PoKeys Mach3 plugin configuration tab PWM select Map to DRO in and select DRO202 Then set the appropri...

Страница 36: ...tificial life support devices or systems and any other applications or purposes that pose a direct threat to human life 8 You should use the PoLabs products described in this document within the range specified by PoLabs especially with respect to the maximum rating operating supply voltage range and other product characteristics PoLabs shall have no liability for malfunctions or damages arising o...

Отзывы: