RESOLVED -- ASCII to ST - COP ?

jonny_blade

Member
Join Date
Sep 2003
Posts
12
I need to copy the contents of an ascii file A100:0 -> A100:9 to my string file ST101:0. When I use the COP file all i get in my ST101:0 file is the value in A100:0? I am using an old SLC 5/03. However, we use the same command with our main 5/05 processors and the entire block gets transferd from the ascii file to the string file. Not sure what I am doing wrong, but I need to transfer the entire contents of A100:0 -> A100:9 as one block into my string file to port out via RS232. Any help would be great as my searchs have not produced an answer...
 
Last edited:
Not the file size, but the element length. For example, if the destination string element is ST30:10, then, before the COPy, MOV 10 ST30:10.LEN

I never work with ASCII file types, but have done lots with ST file types, so it's just a WAG...
 
Tried it without success... Not sure what the deal is as my commands are identical to the ones working on the 5/05 processors?
 
The knowledgebase #17923 (TechConnect needed) shows the copy. A key is that the first entry in the ASCII file must be the length of the string which follows it in the ASCII file. The length of the COP command becomes 1.

The following compiles ok for a SLC 5/03

COP #A100:0 #ST101:0 1
 

Similar Topics

Hello, once again, CODESYS experts. I have to setup a CODESYS RTE PLC for a customer, and I stumbled with a problem I can not solve:smas:, as per...
Replies
1
Views
413
I have VBA code on a FactorTalk View SE v11 project that reads various PLC tags in a FOR loop. All is good if the PLC tag exist. But for a...
Replies
4
Views
3,574
Hi, this is my first time using a PLC. Any assistance is greatly appreciated!!! I recently acquired a second-hand MicroLogix 1400 Series B...
Replies
2
Views
3,620
Is there a way on this forum to mark a problem as being resolved?
Replies
5
Views
2,006
Hi, We couldn’t find anything specific, so am starting a new thread. I’m trying to migrate a config from a ML1400 to a micro820 & am experiencing...
Replies
1
Views
116
Back
Top Bottom