It's hard to tell, cause it's a mix of code and suedo code.
But if the 0x04 (shown in red) is what's being sent to the Setup Register, then the device will be in Unipolar mode, instead of Bipolar like the comments say.
But you may get a better answer from a different forum.
We do mostly PicBasic Pro here.
hth,
Bookmarks