Hi Archie,
thanks to your help and some playing around I'm now sort of up an running.
For others who may want to do the same thing, here are a couple of stumbling points:
1. OPCServer in the OpcDaComx is CoDeSys.OPC.DA (for me: the .02 doesn't work at all)
2. The PLC address on the components has the following format:
PLC_NAME..ItemName
PLC_NAME is the name you give to a PLC when using Edit=>Append PLC in the CODESYS OPCConfig editor
Item name is the variable name in the CODESYS PLC
The two full stops .. between are necessary here as well.
I also have a couple of points which I haven't yet cleared up:
1. If I only have a button on the form i.e. write and no read elements (light...) then the problem I was having yesterday
always happens. As soon as I add a light to the form then all's well.
2. Whe using a button, I can only get the momentary actions to work properly. If I use the toggle mode then it dies on me
saying that there's no source code available. I checked the forums here but didn't find anything.
Thanks for your help.
Cheers
Phil