writing status to PLC

I was able to associate status of DO on my PLC via OPC connection. I could use your help on how to write (i mean change) status to my plc. Should I write a script or can i somehow do this through OPC server? Could you give me an example of how to achieve this?
Thanxs in advance!