
PoKeys Pulse engine v2 documentation
27
www.poscope.com
PoIL shared data interchange
This option enables interchange between PoIL shared slots (see PoBlocks manual) and Mach3 DRO
registers. Once enabled, first 27 shared data slots are copied from PoKeys PoIL core to Mach3 DROs,
starting by the Mach3 DRO number, specified in the field on the right (values between 1000 and
2255 are valid).
If 'Use slots 21-27 to send data from Mach3 to PoKeys' option is enabled, slots 21 to 27 are read from
specified Mach3 DRO registers and sent to PoKeys PoIL core.
Custom operations can be performed on data from various PoKeys peripherals and result forwarded
to Mach3 (e.g. spindle speed calculation, product counting, PID control with reference set by Mach3,
…).
Reading and writing of IO from VB script
PoKeys 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 be
"NoDevice"
GetIODevInput( DevID As Short , IONumber As Short ) Return Double
DevID - Device ID's start at zero and go up.
IONumber - The number of the IO Starting at zero (Pin number -1)
Return - Returns the value of an input OR the value that an output is set to . If the device is not found
a return of 999 will be sent back.
SetIODevOutput(DevID As Short , IONumber As Short, Value As Double)
Return Short
DevID - Device ID's start at zero and go up.
IONumber - The number of the IO Starting at zero (Pin number -1)
Value - Any value to set the output to. for digital outputs 0 and 1 are used as on and off