I'm using Advanced HMI to read string values from the PLC. Occasionally, I haven't been able to narrow down an exact time this happens; nor have I been able to consistently replecate the issue, the values I get back from the PLC are not the string values held by a specific tag, but instead are a string of nonsensical numbers that almost look sequential, but are not in fact sequential. Has anyone else ran accross this?
Here is the code I'm using to read the values.
Fori=0To23Tryt=frm_Main.EthernetIPforCLXComm1.ReadAny(Formula_List(i))' Read value to temp varIfisFormulaValid(t,CompoundNumber)Then'checking to see if the value read from plc is valid based on known list of formulas that can be ran.Ift<>""Then'if not empty show but disable dropdown list.WithControlArray(i).Enabled=False.SelectedText=tEndWithElseControlArray(i).Enabled=TrueEndIfElseWithControlArray(i).Text=""'value recieved wasn'tvalidsomakeitem"".Enabled=TrueEndWithEndIfCatchexAsExceptionMessageBox.Show(ex.ToString)EndTryNext
I recently added the code to make list item "" if formula isn't valid, however it does not address the problem of the erroneous values being read. Do you have any suggestions?
Thanks,
Mickey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just wanted to check in with you and see if you might have thought of any reason why this is happening, or possibly any ideas that I could try that would help test the issue further.
Thanks,
Mickey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you using version 3.26? Prior versions had a known issue with transaction numbers when communication was heavy that could cause the problem you describe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using the AdsvancedHMIbetav326.zip file that's available here. The Release notes are for V322, however. there is also a notes 324.?
Now that you mention issues with heavy communication I do remember getting a couple of errors when I was testing where the read failed due to timeout. I didn't think much about it before.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2013-03-19
I'm having this issue with the EthernetIPforCLXComm driver also. It appears that I've followed almost the same troubleshooting path as you as well, kf4ozb. I'm using a few of the components on a form as well as having a ReadAny() call to pull in a 100 member array in the form's code. In my case once I get the SequenceNumber returned rather than the array I have to kill and restart the program to get valid responses again.
I'm using Advanced HMI to read string values from the PLC. Occasionally, I haven't been able to narrow down an exact time this happens; nor have I been able to consistently replecate the issue, the values I get back from the PLC are not the string values held by a specific tag, but instead are a string of nonsensical numbers that almost look sequential, but are not in fact sequential. Has anyone else ran accross this?
Here is the code I'm using to read the values.
I recently added the code to make list item "" if formula isn't valid, however it does not address the problem of the erroneous values being read. Do you have any suggestions?
Thanks,
Mickey
Hey Archie,
Just wanted to check in with you and see if you might have thought of any reason why this is happening, or possibly any ideas that I could try that would help test the issue further.
Thanks,
Mickey
Are you using version 3.26? Prior versions had a known issue with transaction numbers when communication was heavy that could cause the problem you describe.
I'm using the AdsvancedHMIbetav326.zip file that's available here. The Release notes are for V322, however. there is also a notes 324.?
Now that you mention issues with heavy communication I do remember getting a couple of errors when I was testing where the read failed due to timeout. I didn't think much about it before.
I'm having this issue with the EthernetIPforCLXComm driver also. It appears that I've followed almost the same troubleshooting path as you as well, kf4ozb. I'm using a few of the components on a form as well as having a ReadAny() call to pull in a 100 member array in the form's code. In my case once I get the SequenceNumber returned rather than the array I have to kill and restart the program to get valid responses again.
I've posted about it in the AdvancedHMI forum at http://advancedhmi.com/forum/index.php?topic=15.0
Version 3.27 has addressed many issues with the EthernetIPforCLX driver. I would try that version to see if it resolves these issues.