bernie_carlton
Lifetime Supporting Member + Moderator
I'm working with a CompactLogix system and RSLogix 5000.
I used a condition on a rung to copy a string from itself to another string when the length (LEN) changed from zero. This was run through a one-shot to only do this once.
While monitoring the program from RSLogix 5000 I cleared the first string and the target string. Then I entered a 5 character string into the first one. Checking the result the target string got the length of 5 but its characters were 5 hex zeroes.
I think I've seen this before with an HMI and another external device when I tried to trigger on the LEN changing to non-zero and didn't think much but worked my way around it. I'm guessing that RSLogix 5000 and other external devices send the LEN in one messge then the array of SINTs in another, leaving a condition for a moment of the string with a length but not valid characters.
Maybe I need to use the 'handshake' bit available with controls on the HMI.
Any observations? Maybe everyone else already knew this and never triggerr just off the LEN.
[Edit - using Ethernet, just in case it matters.]
I used a condition on a rung to copy a string from itself to another string when the length (LEN) changed from zero. This was run through a one-shot to only do this once.
While monitoring the program from RSLogix 5000 I cleared the first string and the target string. Then I entered a 5 character string into the first one. Checking the result the target string got the length of 5 but its characters were 5 hex zeroes.
I think I've seen this before with an HMI and another external device when I tried to trigger on the LEN changing to non-zero and didn't think much but worked my way around it. I'm guessing that RSLogix 5000 and other external devices send the LEN in one messge then the array of SINTs in another, leaving a condition for a moment of the string with a length but not valid characters.
Maybe I need to use the 'handshake' bit available with controls on the HMI.
Any observations? Maybe everyone else already knew this and never triggerr just off the LEN.
[Edit - using Ethernet, just in case it matters.]
Last edited: