FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-10-2021 03:02 PM
I am trying to read out the IO of my indradrive and use the values in my PLC program. With a virtual axis I can do this without any problem I can call the data from the datalayer into my PLC program. As soon as I try it with the IO coming from the IndraDrive into the datalayer, nothing happens. in the datalayer itself I get the actual values of the IO back so the communication is working, am i missing something?
The images should clarify what I am doing. Maybe it's something with the blue message "string constant" but i cant seem to find a problem there. Backslash infront of 'fieldbus' doesnt change anything.
DataLayer_Value: INT;
Solved! Go to Solution.
03-10-2021 03:11 PM
03-11-2021 09:31 AM - edited 03-11-2021 09:31 AM
The first thing I see is that your paths are different. The real data has a starting "/" and the virtual not.
What is the error message that your function block is showing?
For your real time data you can of course also use the Codesys standard ways:
03-11-2021 01:50 PM
Thanks for the reply i got what i needed with the codsys standard ways!
But ReadNode should work too, right?
As said in my first post the "/" doesn't change a thing and the function block has no error message the output value of readnode is just 0. While the value in the datalayer is not 0.
03-11-2021 02:18 PM
Sorry I kind of over read this. In my opinion it should work. I will do some tests. Thanks for mentioning.