Why "updateAtributesByName" not working on real Robot with RobotWare >= 7.7.1?
NaIch
✭
Seems that "RWS.CFG.updateAtributesByName" is no longer working on real Robot with RobotWare >= 7.7.1
1) Generate Signal "TestDI" on real Robot.
2) Run short Test App: (example from "OmniCore App SDK 1.1" p.67)
<!DOCTYPE html>
<html>
<head>
<script src="fp-components/fp-components-common.js"></script>
<script src="rws-api/omnicore-rws.js"></script>
<!-- Always use UTF-8 as character set! -->
<meta charset="UTF-8">
</head>
<body>
<img src="Test.png" alt="Test" height="100" onclick="Test()" />
<script>
fpComponentsEnableLog();
function Test() {
var attr = [];
attr['Label'] = 'Test IO Label';
attr['SignalType'] = 'DI';
attr['Access'] = 'All';
RWS.CFG.updateAttributesByName('EIO','EIO_SIGNAL','TestDI',attr).then (result => {
console.log("UpdateEIO done ");
})
.catch (error => {
console.log(error.message + " failed");
});
}
</script>
</body>
</html>
<html>
<head>
<script src="fp-components/fp-components-common.js"></script>
<script src="rws-api/omnicore-rws.js"></script>
<!-- Always use UTF-8 as character set! -->
<meta charset="UTF-8">
</head>
<body>
<img src="Test.png" alt="Test" height="100" onclick="Test()" />
<script>
fpComponentsEnableLog();
function Test() {
var attr = [];
attr['Label'] = 'Test IO Label';
attr['SignalType'] = 'DI';
attr['Access'] = 'All';
RWS.CFG.updateAttributesByName('EIO','EIO_SIGNAL','TestDI',attr).then (result => {
console.log("UpdateEIO done ");
})
.catch (error => {
console.log(error.message + " failed");
});
}
</script>
</body>
</html>
3) Result:
RobotWare 7.6: "UpdateEIO done" -> all attributes set
RobotWare 7.7.1 & 7.8: "Could not update attributes. >>> Failed to update attributes failed" -> nothing set
In Simulator everything worked fine with all RobotWare Versions ("UpdateEIO done" -> all attributes set)
0
Answers
-
Hello there,
I would recommend you to contact your local ABB https://new.abb.com/contact-centers and report this as a bug.—Maxim RiabichevPC Software Support Engineer0
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