I have done, one time, read a barcode scanner into plc and search a UDT for selected part of ASCII string and set outputs desired. This mostly came from example “Look_Up_A_Bar_Code.ACD”. All worked fine.
Now I am in a little deep and need some ideas.
Request of me: Use HMI to input an ASCII code, partial, for a (Name). This would be stored in a UDT. Along with this, write to the possible same UDT, some bools which are input from the HMI.
With this info, when the broadcast ASCII string is input to the serial port 0, search the UDT for the ASCII string (Name) and then output the bool bits that were programmed with that (Name).
There are 60 ASCII (Names) to be stored along with their respected, part of 40 bools.
Part of HMI screen. -- Can't input an image for some reason.
Next item, as you can see, is to select a specific ASCII (Name) and delete it with it’s programmed bools.
Not sure where to start! Read posts and manuals, looking for some help! All confused!
Use 2D array with indexing? – what ever that is.
Use an array within an array?
Using pointers to search another single array from the .pos value of the (Name) array?
Ideas would be greatly appreciated!
Thanks in advance!
Now I am in a little deep and need some ideas.
Request of me: Use HMI to input an ASCII code, partial, for a (Name). This would be stored in a UDT. Along with this, write to the possible same UDT, some bools which are input from the HMI.
With this info, when the broadcast ASCII string is input to the serial port 0, search the UDT for the ASCII string (Name) and then output the bool bits that were programmed with that (Name).
There are 60 ASCII (Names) to be stored along with their respected, part of 40 bools.
Part of HMI screen. -- Can't input an image for some reason.
Next item, as you can see, is to select a specific ASCII (Name) and delete it with it’s programmed bools.
Not sure where to start! Read posts and manuals, looking for some help! All confused!
Use 2D array with indexing? – what ever that is.
Use an array within an array?
Using pointers to search another single array from the .pos value of the (Name) array?
Ideas would be greatly appreciated!
Thanks in advance!