Send a signal to a bit in PLC with a write scripting bottom

Welcome to the forum!

Please see Wiki - how to post code on this forum. You can edit your post to fix the code.

Add the 'vision' or 'perspective' tag so we know which application you are using.

I think you mean 'button', not 'bottom'.