BryanG
Member
Hi Archie
I am at the stage of getting the Write sections to work for the Siemens PLCs driver and hit a minor snag. In the code for SelectorSwitch and BasicButton, Toggle, you use ReadAny to get the current state of the bit. I am roughly using the TwinCATcomm as a model but you don't use the ReadAny function in that driver. Have you got some other way of knowing the current contact state. Sorry if I am being a bit thick here.
Also spotted but don't know if it is deliberate, in SelectorSwitch and BasicButton in OnCreateControl you have code that only mentions TwinCATCom.
I am at the stage of getting the Write sections to work for the Siemens PLCs driver and hit a minor snag. In the code for SelectorSwitch and BasicButton, Toggle, you use ReadAny to get the current state of the bit. I am roughly using the TwinCATcomm as a model but you don't use the ReadAny function in that driver. Have you got some other way of knowing the current contact state. Sorry if I am being a bit thick here.
Also spotted but don't know if it is deliberate, in SelectorSwitch and BasicButton in OnCreateControl you have code that only mentions TwinCATCom.