SteveC
Member
Firstly great website guys!!
I am having difficulties copying an ascii string from an integer register to an ascii register.
In our system, a barcode reader writes a large ascii string into an intger register. I am trying to take part of the barcode data and put it in an ascii register ready to send to a printer. The idea is to record the six digit sequence number of the product, along with the time and date when there is a fault. I can put the date and time into a string, just not the number.
Ive tried COP #N200:0 #ST9:0 but it shows an error, too long. Whatever i seem to try with this doesnt seem to work, even with putting the string length in N200:0.
Ive tried MOV N200:0 ST9:0 DATA[0] but it moves the decimal equivalent of the ascii string, which is also the same as convert integer to ascii.
Is there something that I have missed? I cant find anything in the AB instruction set manual.
banghead
I am using an SLC5/05 processor.
I am having difficulties copying an ascii string from an integer register to an ascii register.
In our system, a barcode reader writes a large ascii string into an intger register. I am trying to take part of the barcode data and put it in an ascii register ready to send to a printer. The idea is to record the six digit sequence number of the product, along with the time and date when there is a fault. I can put the date and time into a string, just not the number.
Ive tried COP #N200:0 #ST9:0 but it shows an error, too long. Whatever i seem to try with this doesnt seem to work, even with putting the string length in N200:0.
Ive tried MOV N200:0 ST9:0 DATA[0] but it moves the decimal equivalent of the ascii string, which is also the same as convert integer to ascii.
Is there something that I have missed? I cant find anything in the AB instruction set manual.
banghead
I am using an SLC5/05 processor.