
HyTechWorks©2013 – V3.1 63
HyCNC_SetSpindle2 sets PWM2’s duty cycle.
hUsb – the handle of the HyCNC interface.
Duty Cycle =
duty
period
BOOL HyCNC_KickWatchdog(HANDLE hUsb)
This function send a normal working signal to USB interface. The first signals
enable the watchdog if it is not enabled. This function needs to be called every
0.1 second. If it is not called in 0.5 second, the watchdog times out.
hUsb – the handle of the HyCNC interface.
BOOL HyCNC_CaptureCoordinate(HANDLE hUsb, int* data, int size, unsigned int
trigger, unsigned short hw_type)
This function captures the coordinate readings when home switches’ inputs or
tool setting input is toggled.
hUsb – the handle of the HyCNC interface.
data – pointer that hold the current coordinate readings. The order of the data is
as the follow:
Data[0] – X-coordinate reading when X homing switch input toggled if X
capture trigger is set.
Data[1] – Y-coordinate reading when Y homing switch input toggled if Y
capture trigger is set.
Data[2] – Z-coordinate reading when Z homing switch input toggled if Z
capture trigger is set.
Data[3] – A-coordinate reading when A homing switch input toggled if A
capture trigger is set.
Data[4..7] – X/Y/Z/A-coordinate readings when tool setting switch input
toggled if tool setting capture trigger is set.
size – number of data to read.
trigger – capture trigger setting. The trigger is reset when the input toggles.
bit 0 – X capture trigger. “1” sets and “0” has no effect.
bit 1 – Y capture trigger. “1” sets and “0” has no effect.
Comentarios a estos manuales