Jog the Robot via PLC
Oliver_L
✭
Hi,
Is it possible to jog the robot via PLC? We'd also like to move, start and stop the robot without using the FlexPendant. Therefore, we think about implementing a TCP/IP Socket interface to move or jog the robot from a remote PLC.
If yes is the answer, what do I need?
Is it possible to jog the robot via PLC? We'd also like to move, start and stop the robot without using the FlexPendant. Therefore, we think about implementing a TCP/IP Socket interface to move or jog the robot from a remote PLC.
If yes is the answer, what do I need?
0
Comments
-
Hello
You can do it with a loop in RAPID. Something like below:PERS robtarget pJog;
...TRAP TrapInputX() !Trap when inputPositiveX goes highWHILE inputPositiveX=1 DOpJog:=CRobT();MoveL offs(pJog,1,0,0),v1000,z50,tool0\WObj:=wobj0;WaitTime 0.1;ENDWHILEENDTRAP
/Pavel
0 -
You can use Sockets in the Rapid code. So it is possible to define a connection between the robot and an external device. Furthermore, it is possible to send positions, but the movement and wait instructions have to be defined in the Rapid code.
The application manual gives information about 'Socket communication in general' and the technical reference manual gives information about the specific socket functions.
Available functions are: SocketCreate, SocketConnect, SocketSend, SocketClose, SocketBind, SocketListen, SocketAccept, SocketGetStatus, SocketSend, SocketSendTo, SocketPeek, and SocketReceiveFrom.
If needed I can give an example between Rapid and Python, or Rapid and C#. On the other hand, if you just want to use IO, then you can use a TRAP as stated in the previous comment. In this case, it will be more challenging to send the positions...
0 -
Hi,
John_Verheij, it would be nice if you could give an example between Rapid ans C#. Still possible ?
Thanks
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings