Hello everyone,
I'm working on something where I am retrieving data from a machine by sending it message packets and using the machine response.
Sometimes the response gets cut off in the middle, so I am having to send the message twice to make sure I always get the full response.
I'm trying to figure out a way to either copy each response into two separate tags and then combine them back into one. With the second response being copied into it immediately at the end of the first one.
Or possibly copy them both into one the same tag from the beginning.
So for example, message #1 comes back into Tag1[0]-[30] and message #2 comes back into Tag2[0]-[20]. I want to combine these into Tag3[0]-[50]. Also the message lengths may change during each response as well.
Anybody have any ideas on how to do something like this?
Also I'm using Studio 5000 for this.
Thanks
I'm working on something where I am retrieving data from a machine by sending it message packets and using the machine response.
Sometimes the response gets cut off in the middle, so I am having to send the message twice to make sure I always get the full response.
I'm trying to figure out a way to either copy each response into two separate tags and then combine them back into one. With the second response being copied into it immediately at the end of the first one.
Or possibly copy them both into one the same tag from the beginning.
So for example, message #1 comes back into Tag1[0]-[30] and message #2 comes back into Tag2[0]-[20]. I want to combine these into Tag3[0]-[50]. Also the message lengths may change during each response as well.
Anybody have any ideas on how to do something like this?
Also I'm using Studio 5000 for this.
Thanks
Last edited: