bharat.desh
Member
Hello Gents,
I am currently using AB CompactLogix Processor L36 ERM (Mid Range Controller) in an application. One of the device on the network is a Loadcell with built-in RS232 to Ethernet Converter (Model ad4212c and AD-8526 from A&D, Japan). This device is supporting TCP/IP Protocol, so I have used Sample Program from RA Knowledgebase ID 32962 and also referred Manual enet-at002_-en-p.pdf.
The End Device (A&D) is continuously outputting data on the ethernet (e.g. say 20 times a second)- which I can read on Hyperterminal correctly.
In my Application, I set up PLC as Client, Did sequence as
a) Delete ALL socket (once at power on with delay)
b) Create Socket
c) Connection Request
d) Read Socket
e) Write Socket.
My EWEB PATH Is SET CORRECTLY to (1,0 - as for All 5370 controllers)
Problem Description :
My all above sequences take place correctly, DN bit of each MSG comes up correctly. I am able to read data from A&D Device in the Read_Response.READ_BUFF. However, this data comes with some delay of about 8-10 seconds in PLC (Pls. note that this delay does not appear when reading it on Hyperterminal). Apparently, data from A&D gets stored somewhere in the Ethernet Port Buffer (inside PLC that is not accessible by the user) and when the length of buffer is full, then it's outputted via READ_SOCKET MSG. There is no loss of data, only data is available after delay to PLC program. I verified this by putting some weight on loadcell and checking it;s value on FIRST Hyperterminal and then on PLC one by one. In case of Hyperterminal, weight value reflects as soon as I put weight / remove weight - whereas in case of PLC (i.e. read_socket msg created as per above sequence), the value change gets reflected after 8-10 seconds.
Some important points in addition :
a) I refered program "EWEB_SOCK_TCP_CLIENT_VER2_1.ACD" from KB ID-TN_32962.
b) A&D Device Data Length is 17 bytes
c) I tried putting Task/Program as continuous / periodic task @ 100ms.
d) Read_socket MSG is executed every 20ms.
ANY HELP FROM GIANTS ON RESOLVING THIS ISSUE WOULD BE GREATLY APPRCIATED.
Thanks in Advance to All,
B.D
I am currently using AB CompactLogix Processor L36 ERM (Mid Range Controller) in an application. One of the device on the network is a Loadcell with built-in RS232 to Ethernet Converter (Model ad4212c and AD-8526 from A&D, Japan). This device is supporting TCP/IP Protocol, so I have used Sample Program from RA Knowledgebase ID 32962 and also referred Manual enet-at002_-en-p.pdf.
The End Device (A&D) is continuously outputting data on the ethernet (e.g. say 20 times a second)- which I can read on Hyperterminal correctly.
In my Application, I set up PLC as Client, Did sequence as
a) Delete ALL socket (once at power on with delay)
b) Create Socket
c) Connection Request
d) Read Socket
e) Write Socket.
My EWEB PATH Is SET CORRECTLY to (1,0 - as for All 5370 controllers)
Problem Description :
My all above sequences take place correctly, DN bit of each MSG comes up correctly. I am able to read data from A&D Device in the Read_Response.READ_BUFF. However, this data comes with some delay of about 8-10 seconds in PLC (Pls. note that this delay does not appear when reading it on Hyperterminal). Apparently, data from A&D gets stored somewhere in the Ethernet Port Buffer (inside PLC that is not accessible by the user) and when the length of buffer is full, then it's outputted via READ_SOCKET MSG. There is no loss of data, only data is available after delay to PLC program. I verified this by putting some weight on loadcell and checking it;s value on FIRST Hyperterminal and then on PLC one by one. In case of Hyperterminal, weight value reflects as soon as I put weight / remove weight - whereas in case of PLC (i.e. read_socket msg created as per above sequence), the value change gets reflected after 8-10 seconds.
Some important points in addition :
a) I refered program "EWEB_SOCK_TCP_CLIENT_VER2_1.ACD" from KB ID-TN_32962.
b) A&D Device Data Length is 17 bytes
c) I tried putting Task/Program as continuous / periodic task @ 100ms.
d) Read_socket MSG is executed every 20ms.
ANY HELP FROM GIANTS ON RESOLVING THIS ISSUE WOULD BE GREATLY APPRCIATED.
Thanks in Advance to All,
B.D