No activity yesterday other than printing out my latest cross reference list, as a reunion with friends in Littlehampton was the order of the day - early departure and late return.
However four hours of thinking time on the journey got me to a diagnostic method that I applied this morning. Now that I have the entire PLC program on paper, and can inspect inputs, outputs and flags using the inbuilt facility in real time I can trace what is happening.
So the problem is, that issuing an M20 ('Enable Spindle Drive') command that is the preparation for M19 'Spindle Orientation' the M20 is entered but then locks the control by not asserting the 'Read In Enable' line, so the control is freezing and not reading the next command. However the bits are set in the flag words that the spindle is indeed enabled by the M20.
Now having the PLC ladder in front of me like a circuit diagram, I can go through the logic that asserts 'Read In Enable', which is segment 77 that is a simple dependency on both F 136.6 and F 138.5 being False (or 0). This showed me that F 138.5 was the problem being at a '1'
The previous 'Segment 76' produces the flag bit F 138.5 from a twelve input structure requiring all it's inputs to be '0' (apart from one where the logic is inverted for 'Turret Card Fault') and the failing input was traced to the third input element being F 149.4 (M20 Active) in series with I 5.1 (Spindle Clamp Pressure Switch)
Well guess what - although the spindle clamps OK with an M31 and unclamps OK with an M32 the input on I 5.1 is the inverse of what I would have expected, with a '1' for unclamped and a '0' for clamped.
How could this possibly happen

Well think back to the end of July, when I got all enthusiastic replacing the solenoid and pressure switch sockets as the old ones had perished - I couldn't possibly have wired it wrongly could I - oh yes I could

So a quick wire move from the NC to the NO terminal, and guess what - the M20 command now completes as it should and the following M19 command is read in

However I'm not out of the woods yet, as the M19 keeps the 'Run' light on and doesn't orientate the spindle but just sits there glowing

OK never mind, this IS actually major progress as now I can hopefully trace out what is happening just as you might with the equivalent physical relay circuit and a multi-meter.
Not every item in the PLC ladder is yet named, and probably never will be, but this method will let me concentrate on the area with the issue rather than having a scatter gun approach