Read Access Level on Signal
KSP
✭
Hello,
We are programming a driver to talk with a RobotController and in this driver we want to get/set IO Signals defined on the RobotController.
We would like to filter on Access Level so that only Signals that can be set are shown in our UI.
It is only possible to write Signal.Value when the Access Level on that signal has the Remote Client (Auto Mode or Manual Mode) set to "Write Enabled".
We are now struggling to read this Access Level property on the Signal that is returned after calling IOSystem.GetSignal(string signalName)
Is it possible to read the Access Level on a Signal at all?
0
Comments
-
Hi,
i think you have to get the acess data from the system paramters.
That means you read the parameter name which is used for the access level of the signal:
string strAccess = _controller.Configuration.Read("EIO", "EIO_SIGNAL", signal.Name, "Access");
If you know the parameter name you will read the data of this acess level:
bool bLevelManual = Boolean.Parse(_controller.Configuration.Read("EIO", "EIO_ACCESS", accessName, "RemoteManual"));
bool bLevelAuto = Boolean.Parse(_controller.Configuration.Read("EIO", "EIO_ACCESS", accessName, "RemoteAuto"));
Depending of the current operation mode you could set or reset the signal if it is allowed.
/BR
Micky
2 -
Thanks Micky!
We just tested your suggestion and it is exactly what we needed.
Cheers,
Martijn0
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)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings