SmartComponent - Events for triggering a signal

Henry123
✭
Hi,
I'm quite new in programming and I just started with the development of SmartComponents.
I would like to check the position of a joint value. If it has reached a defined position, the SmartComponent should trigger a DigitalOutput (=limit switch).
My problem now is, how can I connect the joint value with a DynamicProperty? If this is possible, I could use the event "OnPropertyValueChanged" to trigger further methodes.
thanks, Henry
I'm quite new in programming and I just started with the development of SmartComponents.
I would like to check the position of a joint value. If it has reached a defined position, the SmartComponent should trigger a DigitalOutput (=limit switch).
My problem now is, how can I connect the joint value with a DynamicProperty? If this is possible, I could use the event "OnPropertyValueChanged" to trigger further methodes.
thanks, Henry
0
Answers
-
Hello,Or you can use signal.You can have a look at my SmartComponent here:And how to update your output here:
☑️2024 - RobotStudio® User Group0 -
Hi DennisFR,thanks for your feedback. Unfortunately I didn't get it.My problem is when the mechanism is moved manual, there is no trigger to reset the limit switches. That means, even when the mechanism is not on a defined pose, the limit switch is still triggered.Thats why I want to directly connect the axis values with the dynamic property of the SmartComponent.If I got you wrong, could you please describe how you would trigger an event liked described above.Thanks a lot, Henry0
-
So do you develop your SmartComponent by yourself or you want to use RS ones?
☑️2024 - RobotStudio® User Group0 -
I'm trying to develop them in Visual Studio.0
-
So you can have a look at how I've done in my GitHub
☑️2024 - RobotStudio® User Group0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 328 IRC5
- 65 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 821 RAPID Programming
- 8 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings