Search the Community
Showing results for tags 'arrays'.
Found 3 results
-
Looking for better way to copy array into individual tags
ameyzingg posted a topic in Allen Bradley / Rockwell Automation
I am copying some data from a vendor PLC through MSG instruction into my PLC through CIP data table read. Is there a better way to break down this array of data into individual real tags through an instruction (something similar to WORD_to_BIT instruction in Modicon). I was looking at FAL instruction but its not exactly doing what I am looking for. Any help is greatly appreciated. -
Using a variable array index in FBD in Studio 5000?
ceckert posted a topic in Allen Bradley / Rockwell Automation
I'm trying to use a tag as an array index in FBD in Studio 5000, this works without issue in ST and LDD, but seems to not be allowed in function block. This seems incredibly short sighted to me which leads me to believe I must be doing something wrong. Is this possible? and if not is there a better way to accomplish what I'm trying to do? Attached are two screenshots, one of my problem with the exact error and one with a (hopefully) temporary workaround that I'm using currently. Thanks.- 2 replies
-
- studio5000
- fbd
-
(and 1 more)
Tagged with:
-
Hi friends, I have this need to declare a few arrays of string variables and intialize them with a particular value, in Citect. In citect, on the forms for variable declaration, there is a place given for entering the array-size. In the case of other data-types such as INT or REAL, entering a number here will imply that the declared variable is an array with the size mentioned in the Array-size. In the case of string variables, the array size represents the size of the string ie. one element for 2 characters. If we declare the size of the array as an extension of the variable name, such as StrVariable_array[30] then Citect throws up a compile error. We are of course able to declare an array of string variables in the cicode editor, but then this is not 'Global' for use as variable tags. So the question begs.. How do you declare an array of string variables, preferably using local variables. Thanks for looking in, regards and best wishes.