what's the number of times the letter "w" appears in:
i am trying to find a good way of authenticating users of my machines. our i.t. department uses rfid readers to authenticate users of their applications and so i thought i would try reading the same id cards into my pac.
i purchased a rs232 rfid reader from rfideas (rdr-60w1ak5) which came with a db9 interface. i cut this and purchased a rj12 keystone and straight through cable to connect to my p1k.
my ain instruction is always enabled but when i scan a card, nothing goes into the destination tag. i have tried this instruction with a variable number of characters with termination code 0x0d - no change.
this is a rs-232 network. it is point to point and there can only be one master device and one slave device. the plc should be the master and use an aout command to request the id from the device. ( looks like one of the rfid:qid commands) after the aout is complete the ain should be enabled to look for the response from the slave device. (rfid reader) i do not see anywhere in the manual that they send a termination code or that you can specify one, but they give detailed data on what is in the string so you will have to use string function instructions to extract the data you wish to use.
i have used theses before with an hmi to read out the text in rfid cards. there is a program you have to use to set it up with the type of card you are using but after the initial set up it works well.
on a new serial device, i always use the pc and realterm first to verify my custom ascii before committing to the plc.
thanks guys, i figured it out the devices transmit signal was not making good contact.
user
I counted 21 "w"s in that text.
assistant