purge sending WEBSET queue?

Efried

Active Member
Hello,
I guess after disconnecting the receiving WC of a WEBSET command, the blocked sending queue is introducing trouble for following WEBSET commands storing data at a server.
How to clear the sending stack before calling WEBSET?
 
thanks
 
CAI_Support said:
send queue is automatically cleared after new request came, or after existing request finished.
 
Hmmm I'm experiencing trouble if the WC receiving WEBSETs every 15 seconds is switched off. Then the WEBSET storing data at the server every half hour does not work, I guess...
 
If that last command in the queue did not send, it will keep sending, until it sent.  Your setup might never finished sending, so that it keeps trying.
 
yes and therefore I guess it needs a queue clearance command?
 
CAI_Support said:
If that last command in the queue did not send, it will keep sending, until it sent.  Your setup might never finished sending, so that it keeps trying.
 
If this is to send an alert, our logic is that it must send at first possible time.  So that if network connection lost, it will be sent first after network reestablished. So the request in the queue will retry till it either send or being pushed out the queue by later commands.
 
What is the point to clean it?
 
CAI_Support said:
If this is to send an alert, our logic is that it must send at first possible time.  So that if network connection lost, it will be sent first after network reestablished. So the request in the queue will retry till it either send or being pushed out the queue by later commands.
 
What is the point to clean it?
The point is that the communication to the server is not possible anymore.
The slave unit is not reachable but I cannot detect that in the PLC, so I can't stop it?
The cut.off of the slave unit accumulates WEBSET commands in the stack, so the few server targeting calls of WEBSET don't come through.
 
I see.  You webset to different servers, one of the servers went down.  You want to be able to delete the queue, so that you can send to other servers.  To do that, it will need to delete the queue and restart the board, since TCP stack may still have leftover in it, only reboot the board can clear it out from stack.
 
CAI_Support said:
I see.  You webset to different servers, one of the servers went down.  You want to be able to delete the queue, so that you can send to other servers.  To do that, it will need to delete the queue and restart the board, since TCP stack may still have leftover in it, only reboot the board can clear it out from stack
But of course I could add a relay for self rebooting every half hour, but clearing the sending stack would be smarter ;-)
In case the second WC has webset capability it could set an ALIVE bit at the server, then the other WC could send WEBSET command to the second WC only if it is alive....
PLC may be seen as easy task, but making it work altogether is cumbersome...
 
CAI_Support said:
We will add those commands for you, then release a update image for you to update, if your board has bootloader.
 
Great, you have the best customer support of all...
I will however take your offer only when ordering the WC32 sharing shipping cost.
cheers
 
We will get those features ready for you.  Once your board updated its firmware, you can go new version or back down to older version without shipping back.  All our current shipping are with bootloader already, thanks to az1324's great help.
 
Back
Top