11/15/2022 3:54 PM | |
Joined: 11/15/2022 Last visit: 11/22/2022 Posts: 4 Rating:
|
Hi all ! I was given the task to etablish communication between a reader RF340R (or RF380R) and a industrial PC with a serial connection card (RS232/422/485) through a c++ program. The reader is used to read data from a SIMATIC RF350T transponder. The goal is to read 10 bytes from the 32ko table on a predefined reading range From my understanding by looking at the « Simatic Ident Configuration Guide », for the RF3XXR readers, only Scanmode reader ("RF310R Scan Mode, RF382R Scan Mode) are planned to be used for the purpose of communicate with a PC. The following steps would be done : -> Find the serial communication parameter -> Send a « Change Parameter » frame with Byte 14+15 and 16+17 to specify the data to be read -> The reader would then autonomously send the data to the PC. -> What is the frame that is send ? A « Read » reply ? Simatic Configuration Guide : https://support.industry.siemens.com/cs/ww/en/view/67384964 ScanMode Communication Manual : https://support.industry.siemens.com/cs/ww/en/view/109762012 The problem is that the material is defined by the client, so I have to work with a RF340R reader. So my question is the following : Is there a way for us to configurate the RF340R reader so that I can emulate the scan mode configuration ? From the documentation, the RF340R reader can communicate on a RS422 interface with a Siemens PLC through 3964R protocol. In oreder to communicate with a PC, I saw a thread which tell to follow the guide from «SIMATIC Ident RFID systems FB 45 for MOBY U, MOBY D, RF200, RF300 Function Manual chapter B4 »to implement the acyclic frame service of PROFIBUS/PROFINET. But I still need some help. My first goal is to initialize the reader (for now it has a blue LED which means it’s not initialized), so i have to send a RESET command to turn the light green. What is the command ? and how can I know the serial configuration (baudrate, parity, etc..) of the reader to send the frame ? SIMATIC Ident RFID systems SIMATIC RF300 https://support.industry.siemens.com/cs/ww/en/view/109814622 SIMATIC Ident RFID systems FB 45 for MOBY U, MOBY D, RF200, RF300 Function Manual https://support.industry.siemens.com/cs/ww/en/view/21738808 RF340R interfacing on RS422 interface https://support.industry.siemens.com/forum/fr/en/posts/rf340r-interfacing-on-rs422-interface/85152/?page=0&pageSize=10 Perhaps, somebody can give me some advice With best regards, Thai An. |
Last edited by: Jen_Moderator at: 11/16/2022 09:28:51Links optimized. |
|
11/15/2022 4:14 PM | |
Joined: 10/1/2013 Last visit: 5/8/2024 Posts: 605 Rating:
|
Hi tangcy, here's an application example on how to manually implement the serial connection from a PLC to a reader: In this documentation you'll find serial connection parameters (see attachment) for RS422. If you have TIA Portal or Step 7 classic you might also check out the code of the function blocks and try to adopt them in your C++ code. Example for RESET command for RF340R with RF3xxT: [0] : 16#0A These 11 Bytes you have to send via RS422 using the 3964(R) protocol to reset your reader. Try to implement the reset first (to have a constantly shining green LED). Then continue with reading or writing tags. The manual you mentioned is correct, as the next post already acknowledged ;) |
Last edited by: Owei at: 11/15/2022 16:36:07Last edited by: Owei at: 11/15/2022 16:40:23Last edited by: Owei at: 11/15/2022 16:45:42 |
|
This contribution was helpful to
1 thankful Users |
11/16/2022 2:59 PM | |
Joined: 11/15/2022 Last visit: 11/22/2022 Posts: 4 Rating:
|
Thanks a lot for your answers, helps a lot it reassures me that my approach is more or less coherent =) I will try to see with a colleague if he can export the code from the S7 block for some inspiration . That’s indeed a good idea, thanks. I tried to implement the 3964R protocol. From my understanding (Pic1), the master of communication sends a 02H and should receive 10H. SIMATIC S7-300 PtP coupling and configuration of CP 340 - Chap2.4 : https://support.industry.siemens.com/cs/document/1137332/simatic-s7-300-ptp-coupling-and-configuration-of-cp-340?dti=0&lc=en-FR But when I send 02H from my PC to the serial communication, I don’t get the 10H from the reader. Is it normal or maybe my serial configuration is not the same as the reader ? (When I connect my serial cable to another PC, i receive the 02H so i know that my my wire connection is good) Also I didn’t send the whole RESET frame yet, I will try right after I write the post. I also tried to connect an oscilloscope to the Reader Tx+/- (Pin 4 and Pin2) (Pic2) And I saw that the reader RF340R continuously sends 3 frame which seem to be at different speed (baudrate) and which seem to be « STX » (02H) [snip] On the first frame, 1 bit duration is 8.8us which would correspond to 115.2 kBauds rate. (Pic3) On the second frame, 1 bit duration is 52us which would correspond to 19.2 kBauds rate. (Pic4) AttachmentFiles.zip (691 Downloads) |
Last edited by: Jen_Moderator at: 11/17/2022 07:40:15Link removed and files added as zip file. Spaces removed to shorten post. |
|
11/16/2022 4:25 PM | |
Joined: 2/10/2015 Last visit: 8/13/2024 Posts: 105 Rating:
|
The reader is trying to identify the used baudrate. When it receives a response it'll stay at that baudrate. |
Follow us on