Hi,
I am totally new in robotstudio (my version is 5.15.2).
I'm trying to make in full simulation the application below (starting à 0:45) :
Exemple de l'utilisation de l'instruction SearchL (Example of the use of the SearchL instruction)
- I created a news system with a robot
- I created a box
- Then a tool (name = sensor) with tool assistant wizard
- a collision group (A objects = box, B objects = tool)
- a new unit virtual in system configuration
- a new digital signal in system I/O configuration
- in the event manager a new collision event attached to the signal
- i attached the new tool to the robot
Now in my rapid module :
MODULE calibration
PERS robtarget p1;
PERS robtarget p2;
PROC main()
Here i can't get my tool "sensor"
GetSysData tool0;
p1 := CRobT(\Tool:=tool0);
p2 := Offs(p1,0,0,-400);
Here i want to dive into the box to get collision trigger
SearchL \Stop, diTest1, p1, p2, v100, tool0;
ENDPROC
ENDMODULE
Maybe there is already an example script for this application.
Thank you for helping