FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
09-27-2022 05:21 PM - last edited on 09-28-2022 07:32 AM by CodeShepherd
How to get GVL comments via API from data Layer?
https://127.0.0.1:8443/automation/api/v2/nodes/plc/app/Application/sym/gvl/IX01CH01?
only gives type and value
{ "type": "bool8", "value": false }
Solved! Go to Solution.
09-28-2022 07:34 AM
I moved this post to own topic from this thread.
09-28-2022 07:45 AM - edited 09-28-2022 07:45 AM
https://127.0.0.1:8443/automation/api/v2/nodes/plc/app/Application/sym/GVL_Test/bTest
This is like you have seen only getting the data.
The comment is part of the metadata. So you have to read them:
https://127.0.0.1:8443/automation/api/v2/nodes/plc/app/Application/sym/GVL_Test/bTest?type=metadata
The answer will be in my case:
{
"type": "object",
"value": {
"nodeClass": "Variable",
"operations": {
"read": true,
"write": true,
"create": false,
"delete": false,
"browse": true
},
"description": "This is a test boolean",
"descriptionUrl": "",
"displayName": "",
"displayFormat": "Auto",
"unit": "",
"references": []
}
}
For more information about using the REST API see "Using REST API of ctrlX CORE".
09-28-2022 08:59 AM
Thanks!