Richard250891
Member
Hi,
How would I write a program to get the PLC to calculate a value for a set of characters in a string?
I'm using RSLogix 500 and a SLC 5/05 CPU.
For example, if I have a string that reads "ABCD", I know that the ASCII value of the characters combined would be 65+66+67+68=266, but is there a way to set this up so the PLC can do this automatically, without me having to manually enter the character values into, say, a CPT instruction?
Thanks
How would I write a program to get the PLC to calculate a value for a set of characters in a string?
I'm using RSLogix 500 and a SLC 5/05 CPU.
For example, if I have a string that reads "ABCD", I know that the ASCII value of the characters combined would be 65+66+67+68=266, but is there a way to set this up so the PLC can do this automatically, without me having to manually enter the character values into, say, a CPT instruction?
Thanks