Cross Connection IO with Analog outputs
Hi Friends,
ist there a way doing that Cross connection in i/o system for an number (Analog Value) output not digital in or out?
It works fine in Robot Studio but not in the real controller
thx in Advance
ist there a way doing that Cross connection in i/o system for an number (Analog Value) output not digital in or out?
It works fine in Robot Studio but not in the real controller
thx in Advance
0
Best Answer
-
Hi PeterPan,
How did you manage to do this in RobotStudio? Was that through the station logic under simulation?
In any case, in RAPID you can tie a trap routine / interrupt to an analog output or input value (see ISignalAO and ISignalAI in the RAPID instructions manual).
This will require some forethought; you will need to set the aiotrigg condition to 7 to always trigger an interrupt on signal change, and also choose very carefully your DeltaValue as the interrupt will trigger whenever the analog signal changes by more than your DeltaValue, i.e. if you choose a value that is too small the interrupt will trigger continuously from random signal noise and it will slow down your controller.
In the Trap routine just assign the value of one analog signal to the other or a RAPID variable, whatever you like.
I would run this in a background task if you have the multitasking option so that it can run continuously even when the program is stopped if you need it, and understand that there will be some small lag between the input signal and output as well.
Good Luck,
Harry
0
Answers
-
Thx Harry,
that will work. Somehow didnt think of that. Had Background task in mind but not the trap.
And yes in Robot Studio I did it in the Station logic in Simulation.
Thx
PeterPan
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings