Hi, I try to read a variable in my PLC program. I successfuly got created the variable in DataLayer by DeviceBridge app and see that the values reqularily change. In PLC I execute the following sample program. For whatever reason I read only 0. Is there some fundamental issue which I have overseen or do wrong? vars: fbReadNodeValue: DL_ReadNodeValue; bReadExecute: BOOL; bReadDone: BOOL; bReadActive: BOOL; bReadError: BOOL; ReadErrorID: CXA_Datalayer.ERROR_CODE; ReadErrorIdent: CXA_Datalayer.ERROR_STRUCT; DataRead: CXA_Datalayer.DL_NodeValue; DataType: CXA_Datalayer.DL_DATA_TYPE; prog: bReadExecute := NOT(bReadExecute); fbReadNodeValue(Execute:=bReadExecute, Done=> bReadDone, Active=> bReadActive, Error=> bReadError, ErrorID=> ReadErrorID, ErrorIdent=> ReadErrorIdent, ClientId:= , NodeName:= strNodeName, NodeValue:= DataRead); IF fbReadNodeValue.Done THEN iValue := DataRead.GetValueInt32(); DataType := DataRead.GetType(); END_IF ============================== iValue is always 0. Thank you very much for any suggestion. Michael
... View more