I'm struggling to implement a rotary tool changer to modified HURCO BMC50. I'm doing tool change first time with basic knowledge of C lang.
Not sure how I can make of use existing LIbrary

There are few signal to shuffle around:
- Vertical valve + lower / upper position sesnors
- Horizontal valve + Extended / Retracted Sesnors
- Index sensor
- Carousel home sensor indicating 20th - last tool.
- and tool clamp / unclamp signals set.
I'll be grateful for support,
Regards
Mateusz