willer1998
Member
I am working on a problem with a scanner. The data comes in as ASCII. I am scanning the quantity. The data looks like Q1^M or Q21^M (They can have 1 or 2 digit quantity)
I need to tie in the qty with the machine to make sure it does not over produce or under produce. I cannot seem to convert the Ascii into an integer.
I am using SLC500. The data comes into a INTEGER file. I have tried copy, moving to ASCII, then to a STRING. And directly to a string. (Then I could use the ACI) But - nothing shows up in the STRING file. When I copy it I have to address it as ST9:0.DATA[0]
When you look at it in the ladder - it appears to have the value, but when you go to the data file - there is nothing.
When I copy the INTEGER file to the ST file - the ST file is 1330+ in length and when I try the AEX, I do not get any data.
Any suggestions?
I need to tie in the qty with the machine to make sure it does not over produce or under produce. I cannot seem to convert the Ascii into an integer.
I am using SLC500. The data comes into a INTEGER file. I have tried copy, moving to ASCII, then to a STRING. And directly to a string. (Then I could use the ACI) But - nothing shows up in the STRING file. When I copy it I have to address it as ST9:0.DATA[0]
When you look at it in the ladder - it appears to have the value, but when you go to the data file - there is nothing.
When I copy the INTEGER file to the ST file - the ST file is 1330+ in length and when I try the AEX, I do not get any data.
Any suggestions?