What I'd probably do, is start with a basic custom macro to test tool positions.
Something like -

IF(+X00-X01-X02+X03)THEN
MESSAGEBOX(TOOL 1)
RETURN
ENDIF

Make sure the turret is on position 1, the relevant inputs are as expected, run the macro, and see if you get the message shown.
If the message doesn't show, try just the MESSAGEBOX with a basic message to ensure the macro is actually running (or try this first to save some typing!)

You could then extend the macro for other tool positions, and add in TS(0) = xx, CURTS = xx, and DISP to initialise the tool position.

Once you know you can read the tool positions correctly, then work on getting the turret to move.