Reset WC8 counter to zero from PHP

Hardware counter can be set to 0 in PLC code, but it does not have URL link to remotely reset to zero.
To enable your software to reset hardware counter from PHP, you could designate an unused VAR for certain PLC function call. For example, if VAR8 is not used, you could in your PLC main loop, keeps checking VAR8 value.
You can define VAR8 == 12345 as reset hardware counter,
then each time your mainloop found VAR8 == 12345, it will callsub your RESTCTR function, in that sub function, you can set counter 0, please also make sure set var8 0, so that it will not loop forever.
You could implement other functions this way to let host server have more control functions.