That drawing is 2018, and thus the machine is CE marked, thus covered by the law, in the UK SMSR.
To modify you need to comply with PUWER at least, and you would be taking on the design and liability for the safety function yourself.
PUWER guides you to SMSR which guides you to the HD's.
So for an s-stop, there would be ISO 12100, ISO 13850, ISO 13849-1, ISO 13849-2, EN 60204-1, plus the machine instructions to re-write and update the technical file, which the machine OEM is not legally obliged to provide, so you would need to reverse engineer the situation yourself.
This all applies regardless of whether the machine owner does the work or gets someone else to do it.
It's the law.
The relevant laws have a lot closer links legally to the HD's than BS 7671 does to EAWR.
Once you have done the design calls and documented them including the 13849-2 validation, then you would proceed with the work on-site, it's not acceptable to do the work then document it because you might come unstuck like I have found several times when doing after the fact validations and the design doesn't comply!
Doing a 13849-2 validation on a used machine is also a nightmare because you don't know how far through the B10d lifetime the existing components are.
BREXIT doesn't change anything, apart from you could argue that you now need to UKCA mark it and use the DS's rather than the HD's, the technical requirements are identical.
As DW says above, beware of your insurance as you are into the design, manufacture and supply of a product, here. Most electrical contractors policies do not cover anything outside the scope of BS 7671, and this is.
Clause 1102, xi of BS 7671 puts this out of scope.
Also as DW says, not trying to spoil your fun, just warning you what the ramifications are.