can't help but notice your apa pin aliases are of the latx.y type

APAData var LATE.1
APAClock var LATE.0
that is a definite no no for shiftout command

but you post no relevant info about the routine so its just a guess

gigo