Hello,
I am using a UDT to track status from two different indexing lines that merge into one. Essentially, one indexing line is the part, and the second indexing line is the container. The UDT has BOOLs for each of the status bits for both lines (part loaded, part inspection passed, container inspection passed).
When the part is loaded into the container, I wanted to merge these UDT tracking words, so that at the end I will have the status of the part in container and know whether or not it is a good or a reject.
When the two lines merge, if I copy the line1 tracking to the line2 tracking, I will lose the line 2 tracking that had already been set for the container (or have to copy individual bits from line 2 tracking to a temp buffer and then latch / unlatch those bits in the "merged" tracking)
Is there a way to do a Masked Move with UDT's to only copy part of the BOOLs from the UDT to another UDT of the same structure? Any alternative solutions?
Thanks!
I am using a UDT to track status from two different indexing lines that merge into one. Essentially, one indexing line is the part, and the second indexing line is the container. The UDT has BOOLs for each of the status bits for both lines (part loaded, part inspection passed, container inspection passed).
When the part is loaded into the container, I wanted to merge these UDT tracking words, so that at the end I will have the status of the part in container and know whether or not it is a good or a reject.
When the two lines merge, if I copy the line1 tracking to the line2 tracking, I will lose the line 2 tracking that had already been set for the container (or have to copy individual bits from line 2 tracking to a temp buffer and then latch / unlatch those bits in the "merged" tracking)
Is there a way to do a Masked Move with UDT's to only copy part of the BOOLs from the UDT to another UDT of the same structure? Any alternative solutions?
Thanks!