Hi!
I'm building an HMI i .NET and for some reason i can't write or read the string from my PLC! Why is that?
this is how my code looks like right now:
PLC:
HMI_AktParIns: STRING;
global in .NET app:
Public HMIaktparaminst = ".HMI_AktParIns"
Read from plc:
VarParamInst = TcClientSync.ReadVar(HMIaktparaminst)
txtAktParamInst.Text = CStr(VarParamInst)
System.Diagnostics.Debug.Write("ReadVar:" & VarParamInst)
Write to plc:
varAktparamInst = CStr(System.IO.Path.GetFileNameWithoutExtension(openFileDialog1.FileName))
System.Diagnostics.Debug.Write("WriteVar:" & varAktparamInst)
Call TcClientSync.WriteVar(HMIaktparaminst, varAktparamInst)
I'm building an HMI i .NET and for some reason i can't write or read the string from my PLC! Why is that?
this is how my code looks like right now:
PLC:
HMI_AktParIns: STRING;
global in .NET app:
Public HMIaktparaminst = ".HMI_AktParIns"
Read from plc:
VarParamInst = TcClientSync.ReadVar(HMIaktparaminst)
txtAktParamInst.Text = CStr(VarParamInst)
System.Diagnostics.Debug.Write("ReadVar:" & VarParamInst)
Write to plc:
varAktparamInst = CStr(System.IO.Path.GetFileNameWithoutExtension(openFileDialog1.FileName))
System.Diagnostics.Debug.Write("WriteVar:" & varAktparamInst)
Call TcClientSync.WriteVar(HMIaktparaminst, varAktparamInst)