Hello all, I am fairly new to Allen Bradley programming so bear with me.. ( I have prgogrammed microcontrollers and computers before). Im working on a ML1100.
I am trying to do a simple extraction of the last three digits from a four digit number (e.g. starting with a number like 3875, all I am interested in is '875'.) I figure I can do a DIV instruction ( Dividing the number by 1000 and moving the number in register S:13 to a location in memory. I have had no success doing this. The S:13 register always stays at 1. Attached is a picture of the code I have.
Any help is appreciated.
Thanks
Stan
I am trying to do a simple extraction of the last three digits from a four digit number (e.g. starting with a number like 3875, all I am interested in is '875'.) I figure I can do a DIV instruction ( Dividing the number by 1000 and moving the number in register S:13 to a location in memory. I have had no success doing this. The S:13 register always stays at 1. Attached is a picture of the code I have.
Any help is appreciated.
Thanks
Stan