Glad to help! Okay here's the post I made that hopefully resolves the issue. It produces G-code that matches that of the working code you sent, so if there's still an issue with the soft limits it likely is a machine origin type issue (zero on your machine doesn't match where you have the origin set in PixelCNC, for example).
Download the post here: RichAuto (Metric).txt If it doesn't download and instead opens up in the browser you should be able to right-click and Save As to save it to the posts folder in your PixelCNC directory.
Let me know how it goes :)