RSLogix 5000 STOD command

bernie_carlton

Lifetime Supporting Member + Moderator
Join Date
Apr 2002
Location
Yakima, Washington
Posts
6,413
What occurs if a string which has no numbers in it is given as the source? Does the destination change at all? I don't have a system here to test on.

I see that the Knowledgebase says the destination is not changed if an empty string is present. I'm wondering if the same is true with a non-empty string with no numbers is presented.
 
Last edited:
I got the answer from Rockwell first (didn't know it was a race?). The action is as if it were an empty string, the destination is not affected.
 
Well, I just tried it in 5000 emulator, and it makes the Dint a zero, overwriting what's there. I don't know if the emulator handles this differently.
 
Thanks for that. I guess Rockwell advice needs an update. For my particular problem the result yields the same effects. But I would think that logically it should do nothing to the destination as there would be no numeric information available (not even a zero).
 
L61 Rev.19 CPU
STODing an "empty" string ('') does not modify the DINT destination.
STODing a "zero" string ('0') will "zero" the DINT destination.
 
Yes that is what happens. But I thought the question is what happens if the string has no numbers in it, just letters. In that case, the dint is overwritten.
 
It is handled similar to the Emulator.
A "strictly ASCII" STODed string will "zero" the DINT destination.
 

Similar Topics

So, in the example below, why is the first two numbers after the $ symbol considered control characters? I would think they should be converted...
Replies
3
Views
2,457
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
154
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
574
First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
514
Back
Top Bottom