Manipulate Robot inputs by VBA
Comments
-
Maybe you may use the following VBA object:
ActiveStation.Mechanisms("Robot Name").Controller.IOs("inputName")
Where Robot Name and inputName are the actual names of the robot you are using and the io you want to change.
Hope this helps.
Regards.
Victor - En essayant!!0 -
By this way, I have checked that it is possible to write a output, but not an input....
my code is:
'To find a Output in a controller:
For Each Aux_Out In ActiveStation.ActiveMechanism.Controller.IOs
If Aux_Out.Name = "aux" Then Exit For
End If
Next Aux_Out
'To set the value of the output
AuxOut.Value = True
'or
AuxOut.value = False
I have found that this don't work for an input.
The compromise-solution I reached was to write a output and made a croos-connection via "Event table" with the input.
Otra cosa vleon, soy espa?ol, y si no se me entiende en mi arcaico ing?s, te lo cuento en castellano ;-).
0 -
Jaja, se entiende perfectamente.
Creo que sabes bastante m?s de VBA que yo... lo que es normal pq yo no s? na de na, casi (solo la poca cosa necesaria para manejar algo de entradas, mecanismos y demas)
La verdad es que no prob? con inputs... pero curiosamente tampoco puedo cambiar inputs con el programmaker... e hice lo mismo que tu, via eventtable
Hehe, ok, i think the eventtable solution is perfect, unless you are running out of io's....
Greetings/saludos
Victor - En essayant!!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)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings