interger ASCII to String Conversion SLC5/05

Yurikei

Member
Join Date
Oct 2008
Location
Swindon
Posts
2
Hello all

i am a long time reader of this forum but first time questioning

i am having a problem with converting acsii code, i have ascii code being wrote into a Interger Data file on my SLC5/05 but using the Integer to string conversion AIC this only convertes it as a number but i need to read it as ascii code/radix.

have i missed something or will i have to setup part of the program to convert manually

Cheers
 
Try using the COPy instruction to copy the integers into string files. COP is a bit for bit copy, and the destination file type determines the length. Since there are two ascii characters per integer, you will want to ensure that your destination ST file is twice as long as the integer file you're copying, and set the length of the COP accordingly.

Hope this helps.
Paul
 

Similar Topics

Hi Guys I wrote a programme which compares values in a counter to a pre set value depending on a number of calculations. I am using a Keyence...
Replies
1
Views
1,672
Panelview 1000e, rio tag for long interger. Need to have a f file in the plc 5 read the same on the panelview screen. Did a copy f8;1 to n7:100...
Replies
0
Views
2,226
Hello All, I would like to change interger value to Strings 1. Time format and 2. Date Format. Now i got these value in Interger but i don't...
Replies
2
Views
2,538
I am using a ab 1500 micro logix and i need to convert flaot to interger. The card manufacture said all i need to do is do the following...
Replies
1
Views
1,517
Does anyone have an example of converting two 16bit integers N10:0, N10:1 into a floating point F8:0? This is very new to me and Im tyring to get...
Replies
44
Views
11,157
Back
Top Bottom