Set MotorsOn/StartAtMain using TCP/IP through a semi-static task
in RobotStudio
Hi everyone,
I have a semi-static task running a TCP/IP server which already communicates correctly with a remote client. The communication part is going fine but I would like to know:
Is it possible to raise the StartAtMain event using the rapid code of my server such that I can start my motion task remotely?
I had a look at System Input in Configuration/IO System where I can connect StartAtMain with a real DI but I would like to avoid connecting a DO to a DI. I think this solution would work but, since my problem seems quite basic, I guess there are better (and faster) alternatives.
I am using RS5.
I have a semi-static task running a TCP/IP server which already communicates correctly with a remote client. The communication part is going fine but I would like to know:
Is it possible to raise the StartAtMain event using the rapid code of my server such that I can start my motion task remotely?
I had a look at System Input in Configuration/IO System where I can connect StartAtMain with a real DI but I would like to avoid connecting a DO to a DI. I think this solution would work but, since my problem seems quite basic, I guess there are better (and faster) alternatives.
I am using RS5.
Tagged:
0
Comments
-
What you mean by real DI?
You can connect any DI to system input, even simulated.
Create simulated DI.
Create simulated DO.
Create Cross connection, (actor) DO->(resultant) DI.
Trigger DO in RAPID code.0 -
Hi Dmitry, thanks for the help !By using 'real DI' I meant cross connecting manually the terminals on my D652 I/O board from an output to an input then trigger my DO in rapid.I never heard of such simulated I/Os. If I remember correctly, one must always specify the device related to each input/output. Therefore, how do I define those virtual (or simulated) input without losing two spots on my D652 board ?
0 -
Hello,
Sorry, I do not remember exactly how robot configs are organized in Robotware 5. Anyway, you do not need any real I/Os to accomplish this.
If I remember correctly, one must always specify the device related to each input/output. Cannot comment for RW5, but in RW6 you can just define signal without any relation to device and without address.
In RW5, there is a Bus of type Virtual. So you should add you device to this bus to make it simulated. Or if you do not have it, you create it manually, and set type of bus to be virtual.
http://serioussurvivor.com/wp-content/uploads/2017/03/System-Parameters-3HAC17076-1_revG_en.pdf 4.4 Type Bus
You create a DeviceNet device, for example, you define D652, and connect it to your virtual bus. Then you create signals as if they were real signals, but you assign them to your virtual D652, and use them in RAPID.
0 -
Thanks it works like a charm ! I thought I had RW5 but I was actually using RW6 so your past explanation did the trick:Create simulated DI.
Create simulated DO.
Create Cross connection, (actor) DO->(resultant) DI.
Trigger DO in RAPID code.1
Categories
- All Categories
- 5.5K RobotStudio
- 393 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 307 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 780 RAPID Programming
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings