So far all the code i've written for PLC's has been simple ladder logic and I'm sure this will be simple once i know how.
I have an s7-300 setup with Danfoss Drives connected via profibus. I am trying to construct a function block that i can use for all drives to move bool run/quickstop/ramp/etc to operate the control word.
So far i have tried creating an array of Word stored in the temp area and then within the code referencing the LX.X
then moving this arrayed word to a word stored in the Out area of the declaration.
I have also tried referencing the Out word bools.
Both these only kind of word. When i use the array i end up getting a SF with an error which says area length error when reading.
If i look at the Out word, in the Address info it says theres an error with the format.
Am i doing it all wrong??
I have an s7-300 setup with Danfoss Drives connected via profibus. I am trying to construct a function block that i can use for all drives to move bool run/quickstop/ramp/etc to operate the control word.
So far i have tried creating an array of Word stored in the temp area and then within the code referencing the LX.X
then moving this arrayed word to a word stored in the Out area of the declaration.
I have also tried referencing the Out word bools.
Both these only kind of word. When i use the array i end up getting a SF with an error which says area length error when reading.
If i look at the Out word, in the Address info it says theres an error with the format.
Am i doing it all wrong??