Hi,
What is the method to send a signal from a kflop c program to a mach3 vbscript?
Thanks,
Frank
Hi,
What is the method to send a signal from a kflop c program to a mach3 vbscript?
Thanks,
Frank
Hi Frankee,
I'm not sure I understand what you mean. An input signal?
KFLOP has Virtual IO bits (IO numbers 48-63) that you can Set/Clear from a C Program. Or you might use one of the KFLOP LEDs (#46 or #47). You can configure inputs in Mach3 in the:
Mach3 | Ports&Pins | Inputs
Set the Port as 1 and the Pin as the KFLOP IO Number.
You can then poll that Mach3 input in the Mach3 CB Script.
To pass floating point values between Mach3 and KFLOP see:
Mach3 Plugin Passing DROs
HTH
TK
http://dynomotion.com
Hi Tom,
I setup a system where a Mach VBscript triggered a function in a Kflop thread and then needed to know when the Kflop function was completed before it would return from the script. I ended-up using the the DRO <> persist.Userdata mapping.
It probably wouldn't hurt to have a more detailed document on how the Kflop driver interacts with Mach3.
Frank