
Originally Posted by
felixst
Dear Soundarya,
are you using an OnlineContainer to ensure that the variables have a proper value?
Regards,
Felix
Hello Felix,
Thanks for considering my post.
I am not using onlinecontainer in my code.
The code I have used is,
Dim Internal_Values as string="Z_Datalog_int[1]"
Values = Me.Variables.Item(Internal_Values).get_Value(0).To String().Trim
objWriter.Write(Values)
objWriter.WriteLine()
In this code ,
Z_Datalog_int[1] is a PLC Variable, I am just get reading the value of the variable and writing it in a text document.
Sometimes, Instead getting the value in document , I am getting the variable name as "Z_Datalog_int[1]" and sometimes its identification.
Kindly help me in resolving this issue.
Thanks and regards,
Soundarya.