Hello,
Custom-KRL code is not simulated in KUKA|prc, it is only written into the *.src file. In the full version you can import KRL code, however that is mostly meant to import some positions from teaching and will not import all commands or loops, conditionals etc. From your code it looked like a simple sequence of LINs, that should work fine.
For KUKA|prc support it's usually best to go to the Robots in Architecture forum.
Best,
Johannes