Why poll? use a datapoint that is amended via the PLC. Make it reflect the state of the PLC and use that to control your script status. It should be able to trigger the other way, not with you polling it.
If needs be contact me via chat and we can discuss in detail.