Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python IO Communication for more Programs

#1
Hello everyone;

I have question for Python in RoboDK. For Ex: I have 2 program , first python script program other one normal robodk program modul.
Program 1 : setD0(0,1)    // Python Program Line
Program 2 : Wait IO_0=1 // Normal RoboDK Simulation Prog

its possible? And any watchlist in RoboDK.

One more question about pause , I need wait time for just robot not program .
robot.Pause(time_ms=1000000) doesnt work. (Robot defined)
#2
When you use digital outputs/inputs in RoboDK simulation you'll notice some station parameters that are automatically generated (such as IO_5=1 if you use DO[5]=1).

You can use waitDI as shown in the following link:
https://robodk.com/doc/en/PythonAPI/robo...tem.waitDI

The robot pause is not simulated but it is executed when you run the robot program on the robot or generate code for your robot.
#3
Can you check my program ?

I can simulate Prog3 via Prog2, but I can't simulate via Prog1


Attached Files
.rdk   ExampleIO.rdk (Size: 966 bytes / Downloads: 483)
#4
Is there anyone who knows to way ?
#5
I'm not sure I understand what you are trying to do.

Prog2 sets digital output 5 to 1 and 0 immediately. I would recommend you to add a small pause if your goal is to create a pulse.
#6
Its not important thing Albert , I wrote always same question. Dont focus Set IO_5=1 or 0 .
Wait IO_5=1 in Prog 3 ? Correct ?
When I run Prog2 SetIO5=1 , Prog3 running and flowing... Thats Ok ? Because Wait IO5=1 True ?
But..... When I run Prog1 which is the Python Program ( İncluding SetIO5=1 again same like Prog2 ) Prog3 not flowing wait Wait IO5=1 line ..
Its not clear ?
  




Users browsing this thread:
1 Guest(s)