will XYZ Touch Probe Plus work on the new xpro v5 controller and if so how would I get the macro .for the cncjs.
it should, see docs:xyzprobe:wiringgeneric [OpenBuilds Documentation] For probing gcodes see G Codes we use G38.2 in our software: javascript here OpenBuilds-CONTROL/probev2.js at master · OpenBuilds/OpenBuilds-CONTROL - if you want to try to extract what you need for your host.