RobotStudio event

Movement via PC application

Hi everyone!

Now I wanna set up a PC application to read the position of robot,I 've accomplished by read from a RobTarget variable,and the problem is I wanna give a position to instruct robot where to go,how can I  accomplish?

Obviously,I can't program like in FP,define a RobTarget variable ,and write "Movl" instructions to control movements of robot.How can I do in a PC application to fulfill the task just like in FP?