
API sync to station

Saibel
✭
Hi!
I try to write a procedure to sync a Rapid proc to station:
Set pro = pros.Item("PROC1")
pro.Refresh
An empty path "PROC1" exists.
I get the following message:
"Synchronization of element PROC1 succeeded."
But in fact it looks like RS syncronizes station to virtual controller instead of the procedure to station. Anyway, I don't get some robtargets into the "PROC1" path.
Best regards,
Sergej Saibel
Sergej Saibel
0
Comments
-
Hi
Here is a simple example how to sync a module from VC to RS.
Module name in VC ="myModule"
Procedurename in VC="Path1"Sub SyncToStation()
Dim SyncToModule As ABBS4Module
Set SyncToModule = ActiveStation.ActiveMechanism.Controller.Modules("myModule")ActiveStation.Paths.Insert SyncToModule.Procedures("Path1")
End Sub
Per Svensson
Company Specialist
ABB Automation Technology Products0 -
Thank you very much, I will try this.
Best regards,
Sergej Saibel0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings