RobotStudio event

Simulating profibus as slave on a virtual controller

Hello,

I would like to make a PROFIBUS communication simulation with a virtual IRC5 controller (in RobotStudio) acting as a slave to an external (real or pc simulated) master. Based on inputs from the master the virtual robot would carry out various actions. Is this somehow possible? 

Also can the IRC5 controller be coded in rapid to create multiple threads? For example 1 thread running the PROFIBUS communications and the other 1 running the robot control program?

If yes then can the 1st thread externally control program execution of the 2nd thread? For example jump to line X, pause program, restart program from paused point, get 2nd threads program pointer position?