5/5/2017 12:06 PM | |
Joined: 4/28/2015 Last visit: 3/26/2025 Posts: 10837 Rating:
|
Hello, https://en.wikipedia.org/wiki/Software_flow_control In my opinion I'm surprised you need use SW control, never used if there is reason to, mean partner device requirements. Look to your Hercules SW what communication settings has set, also speed, data bits, parity, but I expect same settings you have set on both systems - PLC and PC SW. In my opinion you need set correct end of receive condition. In case of standard 9600 speed you can define receive condition in most cases about 4ms as intercharacter time detection - end of receive. Test other but bigger timeout as you need. This can be enough for your correct functionality, I'm using this everytime as end of receive condition, of course due defined communication speed, look to web for table shows speed and inter character time definition. In this case you can send frame of f.ex. 100 bytes to PLC and PLC will check flow, timeout with incomming bytes to buffer. If timeout will elaps, your DONE or NDR (look to respective correct bit output due instruction type) will be set to TRUE for one cycle. This mean you have now in buffer received data. You need catch this bit with your condition and do next what you need. Pretty simple. You can also disable work of RECV instruction and do some checks after receive (count CRC or other) and after that enable RECV again. All must be of course coordinated with f.ex. case that Master sends to you cyclically messages and you as Slave must react to this. Update: set pls only this one condition for end of receive condition and test it. Now I see you have more end of recv conditions set. |
Last edited by: Duris_I at: 5/5/2017 12:07:30 PMLast edited by: Duris_I at: 5/5/2017 12:10:21 PMWith best regards... |
|
This contribution was helpful to
1 thankful Users |
5/5/2017 3:02 PM | |
Posts: 53 Rating:
|
Oh yes, i connect like this the wires. Wich interface? I use TIA portal V13 or what? I don´t understand the questiion Than you very much Duriss |
5/5/2017 4:02 PM | |
Posts: 53 Rating:
|
Thanks friend! |
Follow us on