Nassim Lamrous
Member
Hi,
i'm actually using a rfid card reader to send cards number to the plc, we have two differents type of cards: one with 6 digits (24 bits) and the other with 8 digits (32 bits) in exadecimal. to be able to get the right number displayed on each card in PLC. i have to specify to the PLC to take only 16 bits from the first one and put 0 for the 8 bits left from 24 bits. for the second one i have to tell the PLC to take 20 bits from 32 bits and put 0 for 12 bits.
so, once i scan the card, i want the plc to make a test weither the card contain 24 bits or 32 bits and proceed
Exemple:
first card is C8659D and number diplayed on the card is 26013 so i need only 659D to get the right number
Second card is 7FD21C38 and the number displayed on the card is 138296 which only 21C38.
i wanna know if somebody has done something similar to this. and which instruction d i have to use.
Any help would be much appreciated
i'm actually using a rfid card reader to send cards number to the plc, we have two differents type of cards: one with 6 digits (24 bits) and the other with 8 digits (32 bits) in exadecimal. to be able to get the right number displayed on each card in PLC. i have to specify to the PLC to take only 16 bits from the first one and put 0 for the 8 bits left from 24 bits. for the second one i have to tell the PLC to take 20 bits from 32 bits and put 0 for 12 bits.
so, once i scan the card, i want the plc to make a test weither the card contain 24 bits or 32 bits and proceed
Exemple:
first card is C8659D and number diplayed on the card is 26013 so i need only 659D to get the right number
Second card is 7FD21C38 and the number displayed on the card is 138296 which only 21C38.
i wanna know if somebody has done something similar to this. and which instruction d i have to use.
Any help would be much appreciated
Last edited: