If that's the error you're getting, then you're trying to write to an Input-Only datamember (register).
When making connections with Control Objects like Switches and Pots and PushButtons, you need to pick those datamembers (registers in PLC) which are of type Output or Input-and-Output. One easy way is to check for the Datamembers' types in Lookout's Online help for that particular driver Object. The other being consulting the PLC documentation.
Hope this helps.
Regards,
Khalid 🙂