Help MaslowDue sketch

I’m not much of a help here. Out of the Due to long. Perhaps this post 2nd Generation MaslowCNC Controller on GRBL or mentioning @idocull will give you a hint.