9/7/2010 9:55 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello thanhpp; The CP 341 itself handles data transmission with the communication partner via its serial interface. The CP 341 is equipped with three different drivers for this purpose. Unidirectional data traffic : ● Printer driver Bidirectional data traffic : ● ASCII driver ● 3964(R) procedure ● RK 512 computer link Look for more details in the CP 341 P-t-P manual: http://support.automation.siemens.com/WW/view/en/1117397 The following FAQ shows a list of all extra available protocols that can be loaded on a CP 341, such as Modbus RTU (master or slave), A-B DF1, IEC 870-5-101 and others; these loadable drivers, if useful, have to be purchased. http://support.automation.siemens.com/WW/view/en/1918186 So, look up first what protocols the RFID reader can use, and see if anything compatible comes up. Or at least give us more information on the RFID reader you plan to use than is available on the ThingMagic website; possibly someone here has had to interface some module like theirsto a CP 341 and could give you some hints. Hope this helps, |
Last edited by: dchartier at: 9/7/2010 10:23 PMLast edited by: dchartier at: 9/7/2010 9:58 PMLast edited by: dchartier at: 9/7/2010 9:56 PM |
|
This contribution was helpful to
2 thankful Users |
9/9/2010 4:13 PM | |
Posts: 2 Rating:
|
Thank dchartier. RFID protocol support: EPCglobal Gen2 (ISO 18000-6C) with anti-collision and DRM. In the RFID guide presents the commands: EX: To read a Tag ID, We types a command: msg 02 21 03 E8 <Equivalent to: FF 02 21 03 E8 D5 09> I am used the block function FB8 and FB7 to Send and Read data (follow the ex: zXX21_01_PtP_Com_CP34x in Step7) and choose the protocol 3964(R). The command sent to RFID reader whom I types: code: L 272 T DB40.DBW 2 // Addr L 43 T DB40.DBW 4 // DB_NO L 0 T DB43.DBW 6 // DBB_NO L 7 T DB43.DBW 8 // LEN // commant to RFID reader <FF 02 21 03 E8 D5 09> L B#16#FF // FF T DB43.DBB 0 L B#16#2 // 02 T DB43.DBB 1 L B#16#21 // 21 T DB43.DBB 2 L B#16#3 // 03 T DB43.DBB 3 L B#16#E8 // E8 T DB43.DBB 4 L B#16#D5 // D5 T DB43.DBB 5 L B#16#9 // 09 T DB43.DBB 6 .............. But I just see the TX signal, and I don't see RX signal. I think, maybe I am used the command for RFID reader is wrong. Please help me, how to read the Tag ID from RFID reader and support me a function to do it, or you have an example program about the connection between PLC and RFID reader (Thingmagic). Thank you so much! The datasheet of the M5e thingmagic to attach file: Attachmentm5e-c-datasheet.pdf (221 Downloads) |
Last edited by: thanhpp at: 9/9/2010 4:16 PM |
|
9/9/2010 11:13 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello thanhpp; I have a feeling you are not going to make this run, not using a protocol not supported by your RFID reader. I see nowhere that 3964R is accetable to your reader in the document provided. I would suggest that you think about using staright ASCII comms with your serial module, but there is still the CRC to calculate. See the CP341 manual for help on using ASCII. Have a look in the following link, Late provides a sample CRC-16 calculation program that you might find useful: /tf/WW/en/Posts/1889 Hope this helps, Daniel Chartier |
This contribution was helpful to
2 thankful Users |
Follow us on