String File

idnarbjm

Member
Join Date
Jun 2004
Posts
10
I'm trying to copy Integer Data to a String File. The MOV instruction and the COP instruction don't work for this. Is there an instruction that will allow me to do this?
 
I tried this


MVM N30:12 0FFFFH ST15:56.DATA[0]

and this is what I get for a string

\1B\BE34

I've never used a masked move instruction before so I'm not sure what 0FFFFH is for. The value in N30:12 is 7102 and thats what I want to move into st15:56. This data is from a scale so it updates frequently.
 
MVM

I told you wrong, forget about doing it my way. What mine was for was converting a numberic integer that was a ascii value into a string. For example 12594 equals 12 as an ascii string.
 
If you enter something like "SPEED [N7:10]" into your ST file, it will automatically convert the integer value contained in N7:10 into the corresponding numeric string.
 
MVM

I told you wrong, forget about doing it my way. What mine was for was converting a numberic integer that was a ascii value into a string. For example 12594 equals 12 as an ascii string.
 

Similar Topics

I'm just trying to load from a text file into a string. I don't get why this doesn't work. Function LoadFile(FileName As String) As String()...
Replies
0
Views
1,554
Hi guys!! I'm using a G315 HMI from RedLion to change an internal String tag via Data Entry, and I would like to add this tag to a Log file...
Replies
2
Views
1,486
Is there a way I can pass a string with spaces in the parameter file? I want to do something like this: #1=Water Makeup
Replies
6
Views
14,788
Hello! Sorry, my english is poor:rolleyes: Please tell me how to remove the line from the file. The library TsSistem no suitable function. Can be...
Replies
5
Views
3,015
Hello to everyone, I am trying to achieve simple writing of a string to a text file in TwinCAT. The code I am using can be found below. Problem...
Replies
3
Views
5,184
Back
Top Bottom