IOSystem GetSignal Parse Properties
saitoevc
✭
Dear All, I`m kinda slipping on this and need some tip from the experts:
I`m developing an AddIN Button to parse IO`s properties from RS (-Name, -Type, -Value, -DeviceMapping);
I can read all but last one by e.g.:
Signal signal1 = controller.IOSystem.GetSignal("diMotorOn");
Ok, I can Query those values from EIO.cfg after doing a backup and compare them with my standard sequence but there maybe is some shortcut from IOSystem?
I need to make sure IO`s are located in the right sequence bit (standard).
Thank you in advance
Edson
I`m developing an AddIN Button to parse IO`s properties from RS (-Name, -Type, -Value, -DeviceMapping);
I can read all but last one by e.g.:
Signal signal1 = controller.IOSystem.GetSignal("diMotorOn");
string Name = signal1.Name; (I know redundant =S, just as example)
string Type = signal1.Type.ToString();
float Value = signal1.Value;
int mapPosition = signal1.?
Ok, I can Query those values from EIO.cfg after doing a backup and compare them with my standard sequence but there maybe is some shortcut from IOSystem?
I need to make sure IO`s are located in the right sequence bit (standard).
Thank you in advance
Edson
0
Best Answer
-
Ok, I`ve found my answer.
If you are interested on knowing:
. using ...Controllers.ConfigurationDomainl;
then able to use this:
.ConfigurationDataBase myconfigDB = mycontroller.configuration;
. string[] myPath={"EIO","EIO_SIGNAL","diMotorOnStart","DeviceMap"};
.string myData=myconfigDB.READ(myPath);
Ok, so what? this is already in ABB WebSite: Configuration domain (robotstudio.com)
Right! But here is my tip:
RS says "Device Mapping" in Signal Config and ABB Website says: "UnitMap" for Unit scan.
As I`m tryna scan from RS, EIO.cfg label is "DeviceMap"
Cheers from Italy
Edson1
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