![]() ![]() ![]() ![]() GRT Array_Index 9 MOV 0 Array_Index //limit check, wrap it back to 0 if it's past the endĬOP DINT_Source DINT_Array COP STRING_Source STRING_Array //store the data When your conditions were true, you would increment the index, test for out of bounds, then write to the arrays using that index.įor example (I just typed this in, it's not from a PLC):ĪDD Array_Index 1 Array_Index //increment the index Then use an index tag to indicate the offset of the last thing stored. ![]() Here's an option to use instead of FFU/FFL: you could create an array of your UDT (with a DINT and a STRING) or simply use a DINT array and a STRING array. I haven't done much with FFL or FFU, but what you're trying to do with the data once it's in the array may impact how you store it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |