MitsM83
Member
Okay so,
I have a user data base that consists of 100 users that have 10 words of data each. So 1000 words.
My log in data is coming in as BIN ASCII into 3 words. It is gathered from a ID badge reader at my HMI not that that matters.
When a person scans the badge I need to check the 1000 word data base for a match to the 3 word card data. Then grab the 10 word user info and hold it in the logged in user area of my code.
I can think of a few ways to do this but want short and efficient code.
Off the top of my head I am thinking use some BKCMP= and indirect addressing but that is going to need a lot of registers and internal relays.
Any one have any cool commands for comparing one data register to 1000 then showing where the match is??
Just started to think this over I will come up with something, would be nice if someone has all ready done the work for me!!
I have a user data base that consists of 100 users that have 10 words of data each. So 1000 words.
My log in data is coming in as BIN ASCII into 3 words. It is gathered from a ID badge reader at my HMI not that that matters.
When a person scans the badge I need to check the 1000 word data base for a match to the 3 word card data. Then grab the 10 word user info and hold it in the logged in user area of my code.
I can think of a few ways to do this but want short and efficient code.
Off the top of my head I am thinking use some BKCMP= and indirect addressing but that is going to need a lot of registers and internal relays.
Any one have any cool commands for comparing one data register to 1000 then showing where the match is??
Just started to think this over I will come up with something, would be nice if someone has all ready done the work for me!!