convert characters to string

peter12

Guest
P
how do i convert characters to string using a tsxscp114? i have read manuals but cant understand
 
it depends on system. the most common (standard) system is either
zero terminated strings (make array of characters followed by zero)
or for short strings (up to 255 characters) first byte is lenght
specifier and the rest are string elements.
As far as I know the later one is normally used in PLCs.
So if you want to make string with something like:
"Temperature is 22.3degC" you would just put them in array
with first byte being the string length (24).
Some PLCs have string data type, others use array of integers
but the principle is the same. Note that 16-bit registers are
holding two characters so your string would actually look like

18 54 where 18h is length (24dec), 54h is "T" etc.
65 6D "em"
70 65 "pe"
72 61 "ra"
74 75 "tu"
72 65 "re"
20 69 " i"
73 20 "s "
32 32 "22"
2E 33 ".3"
64 65 "de"
67 43 "gC"

Someone else might help you more as I have no experience with Modicon Micro PLCs...
 

Similar Topics

Hello all, I'm currently working on a servo motor linear positioning system (ball screw). I'm all set up regarding communication between my HMI...
Replies
1
Views
90
I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation...
Replies
7
Views
238
Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,379
Hello, could someone kindly convert the attached RSP files that are currently used for SLC 5 PLC into PDF please
Replies
6
Views
524
I'm trying to convert an RS Logix 500 fille when I open the 500 file and try to "save as" a .slc file, it does not allow it. It says " SLC library...
Replies
7
Views
688
Back
Top Bottom