Hello,
Hmmm... I can only work from what I am seeing in the screenshot.
Basically all commands need to be provided as a list to the KUKA|prc Core component.
However, you are getting the WAIT FOR command and then use its output to set the amplitude of a Z-vector to change the position of your second PTP movement. Your Python script is only outputting "0", how should that affect the simulation?
Note that without mxAutomation you are not getting real-time data from the robot.
To write something like that you could use the Custom KRL component e.g.:
WHILE $IN[1]==FALSE
LIN_REL {Z -1.0}
ENDWHILE
That moves the robot down by 1 millimeter, checks the input and then repeats it until input 1 is TRUE.
The proper way would be to do that through interrupts, but if a millimeter is not a problem, that is propably the simplest way to do it.
Custom-KRL code will not show up in the simulation, though!
Hope that helps!
Best,
Johannes