Ok, here's what you would do:
Install Python 2.7.13
https://www.python.org/
Download pylogix
https://github.com/dmroeder/pylogix
Create a new python file(.py)(if you need help with that, let me know)
Save the following code in the file (save it in the same directory as pylogix):
Code:
from eip import PLC
import time
with PLC() as comm:
comm.IPAddress = '192.168.1.20'
while True:
comm.Write('BaseDINT', 1)
time.sleep(0.5)
comm.Write('BaseDINT', 0)
time.sleep(0.5)
You'll have to replace the IP address that I had with your PLC's address. Replace 'BaseDINT' with the tag name that you want to write to. If you want to adjust the interval to write, change the value in time.sleep(). It is in seconds, so the example above is 1/2 second.
Keep in mind, there is probably a lot that can be done to improve here, just starting off simple.