07-29-2020 09:24 AM
Hello,
I am trying to use SDO write on a node, I am able to do that in vi attached below. But on the second one it gives me a "Sub-index does not exist" error, the rest of the code is working fine. Only difference between the vis is that the are in two different projects, the are run on the same target. Is there something I am doing wrong?
07-29-2020 09:57 AM
Hi Neowise,
@Anurag_NI wrote:
But on the second one it gives me a "Sub-index does not exist" error, the rest of the code is working fine. Only difference between the vis is that the are in two different projects, the are run on the same target. Is there something I am doing wrong?
There is a lot of error handling missing in the 2nd VI (image)…
Does the device support that index/subindex?
07-30-2020 09:51 AM
Yes the first vi (working.png) runs perfectly, so the index and subindex are supported on the node.
Regards,
Anurag
10-14-2020 06:40 AM
The issue is resolved. The object index had to be given in the decimal form ie (25088) instead of 6200.
10-14-2020 11:09 AM
Hi neowise,
once you enable the radix display on your numeric constants you can also input hexadecimal values...
Recommendation: ALWAYS enable the radix display or the display mode indicator for strings when you want to use non-default display modes!