mikeav-soft / LogixTool

Tool for working with Allen-Bradley PLC (ControlLogix, CompactLogix) via EthernetIP connection
GNU General Public License v3.0
24 stars 11 forks source link

Working on V32 #1

Closed arj3090 closed 3 years ago

arj3090 commented 3 years ago

Is this still an active project? I tried it on a 5069-L306 processor with V32 firmware and it doesn't work. Looking at the WireShark I can see it initially reads all the tags, then reads the UDT structures. After that it gets stuck on a Register Session with an invalid Command response. The command is 0x65 with data of 01 00 00 00

mikeav-soft commented 3 years ago

Dear, arj3090! I load this project at end of last year, and before, during 2 years I created this Library for EIP. I just tested it with 18.11 firmware and after 16.00. It was works successful. Unfortunately, also, It was not checked with V32 yet (planned at this year). Please, could you provide list of tags for reading and Wireshark files for analyse? Thank you so much!

arj3090 commented 3 years ago

Attached is the Wireshark capture. There is only 1 tag in the PLC named DINTTag

arj3090 commented 3 years ago

if you need any information such as Wireshark captures, I can provide that while I have a V32 CPU setup.

mikeav-soft commented 3 years ago

Thank you so much! Please keep V32 setup during this week!

mikeav-soft commented 3 years ago

if you need any information such as Wireshark captures, I can provide that while I have a V32 CPU setup.

Yes! I need Help! I need your full Wireshark capture for analyse, because right now for me V32 not avaliable yet! Could you send me? Thank you for advance!

arj3090 commented 3 years ago

Here is the WireShark capture.

https://1drv.ms/u/s!At6_1hHECMoogsIne9mnln1PLE6IFw?e=q8ad6g

Can you edit the post that contains all the garbage from me directly replying to the email? It contains my email address and I don't want it to be picked up by the spam bots. I didn't realize when you directly reply that it includes all the extra information in the post.

mikeav-soft commented 3 years ago

Here is the WireShark capture.

https://1drv.ms/u/s!At6_1hHECMoogsIne9mnln1PLE6IFw?e=q8ad6g

Can you edit the post that contains all the garbage from me directly replying to the email? It contains my email address and I don't want it to be picked up by the spam bots. I didn't realize when you directly reply that it includes all the extra information in the post.

Thank you a lot! I got file! Could you check log window at application? Does it has any Errors messaging during connections? It seems like after recievong UDT application can't to check tagname.

About my reply, I deleted it. Sorry I didnt know how it was appeared.

arj3090 commented 3 years ago

LogixToolScreen

mikeav-soft commented 3 years ago

Thank you very much for the most valuable information! The reason is clear, the application cannot read some structures. I need time to analyze everything and as I said, I will try to fix it within a week.

Thank you very much for your interest, I did not think that anyone would be interested in this project.

arj3090 commented 3 years ago

This project could be very useful if it can retrieve the list of tags, then let you view and edit the values.

mikeav-soft commented 3 years ago

I used it for register logic problems of installations during working. Also little bit latter I will translate all comments to English.

mikeav-soft commented 3 years ago

I fix some logic. Please, Could you try test again?

arj3090 commented 3 years ago

I get a different error. Here is the WrieShark:

https://1drv.ms/u/s!At6_1hHECMoogsIoVSCd6bwymfEV-g?e=EIXZTO

LogixTooError

mikeav-soft commented 3 years ago

I get a different error. Here is the WrieShark:

https://1drv.ms/u/s!At6_1hHECMoogsIoVSCd6bwymfEV-g?e=EIXZTO

LogixTooError

Good! It means we solve the first problem! According with your results Name of tag must be "DintTag", but you try to get "DINTTag".

arj3090 commented 3 years ago

Same result with DINTTag. The error sounds like it is related to the data type (0xc4).

mikeav-soft commented 3 years ago

Same result with DINTTag. The error sounds like it is related to the data type (0xc4).

Could you show some pictures with faults? Also, as I said, in your PLC there is "DintTag". Tag Name is case sensitive. изображение_2021-01-15_194902

arj3090 commented 3 years ago

I tried it with DintTag and it is now working

mikeav-soft commented 3 years ago

Ok! I see! I will check it during 1-2 days. Thank you so much.

arj3090 commented 3 years ago

Did you see my edited post? I first posted an error, but realized the PLC no longer had the tag in it. So now that I put the correct program in the PLC, it is working.

mikeav-soft commented 3 years ago

Oh! Good! Just for information. In my application I used three methods of tag reading. Two opened (I called it Simple and Fragmented) acording with PM020 Rockwell manual. Third is Table method reading (closed), I created by observing Wireshark. Table mehod is used by RSLinx (HMI also). Third method allow to get tag value with max speed reading (more than multiply request).

For writing tag values, also there is methods inside project, but it was not activayed yet. Writing could be perform just Opened methods and just for atomic Data Types. But reading capable to read even structures (TIMER, etc). изображение_2021-01-15_232957

mikeav-soft commented 3 years ago

Also at this weekends I planned to fix some bugs, and I will start to Translate to English all comments.

arj3090 commented 3 years ago

One more thing I noticed. If I go offline, then try to go online again it gives an error

Failed. EncapsulatedPacket.Status=InvalidCommand Failed. MessageRouterResponse.GeneralStatus=1 (Connection Failure)

mikeav-soft commented 3 years ago

One more thing I noticed. If I go offline, then try to go online again it gives an error

Failed. EncapsulatedPacket.Status=InvalidCommand Failed. MessageRouterResponse.GeneralStatus=1 (Connection Failure)

I'll check! Please write all the problems and suggestions, I will try to help in these problems. How does the application work in general?

It is also very useful for analyzing any Wireshark captures.

mikeav-soft commented 3 years ago

Dear, arj3090! During 2-3 days, I plan to push new updates. Nowadays I checkout test cases. Do you have another questions or Issues? Do you still interested this project yet?

arj3090 commented 3 years ago

In my opinion, this software could become very popular if it would automatically populate the table with all the tags and allow you to see and edit the values. Similar to the tag tables in RSLogix.

mikeav-soft commented 3 years ago

In my opinion, this software could become very popular if it would automatically populate the table with all the tags and allow you to see and edit the values. Similar to the tag tables in RSLogix.

Thank you very much for your answer! I started adding all the functionality. I lost one week of work while in the Hospital. I think in 2 weeks I will upload all the necessary changes that you recommended.

mikeav-soft commented 3 years ago

Dear, arj3090! At the moment new version of application was pushed. I tryed to fixed all bugs and some reading features was improved. Also was optimized bool array reading, and other. Also EIP library was separated. Please, could you check it? In case of all is OK I will close the Issue. Writing of value tags function I will finish during thr week. Thank you so much for help!