12/27/2017 12:25 PM | |
Joined: 7/25/2011 Last visit: 3/14/2025 Posts: 20 Rating:
|
Hello. I am working on a Project where I need to collect and logg data from a GPS. It is Connected to S7-1200 With RS-232. I have used a example Project earlier, but this time the GPS is more Advanced and use GPGGA and HEHDT. It is no problem to read in one sentence from RS-232, but I can not find out how to read in the Next sentecne. How do I read 2 different sentencens from RS232 using the Block RCV-CFG and RCV-PTP. Or is it another way to do this easier? Hope for good answere:) Thank you. Best regards Andreas AttachmentRS232.pdf (648 Downloads) |
1/18/2022 3:04 PM | |
Joined: 5/30/2014 Last visit: 3/19/2025 Posts: 166 Rating:
|
Hi, This is probably a late answer, but there is an error in your end condition characters. You should set CONDITIONS.END.SEQ.STR[4] and CONDITIONS.END.SEQ.STR[5] instread of 1 and 2. In your way, RCV_PTP waits for CR/LF and any three characters after them. So, I suppose your RCV_PTP terminates with a timeout or waits next three characters from the next message and you do not get $HEHDT where you wanted. See SIMATIC S7 S7-1200, System Manual, v4.4, page 1036: Example configuration: End message with a character sequence |
Last edited by: C-3PO at: 01/18/2022 17:12:15Last edited by: Jen_Moderator at: 01/19/2022 08:38:08Optimized link. If you find my contribution helpful please RATE it :)) |
|
Follow us on