Menu

Trying to communicate to an IAI-Axis, only getting Infos from Axis but can not move it.

2018-05-07
2018-05-08
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-07

    Hello,
    I am absolutely new to Ethernet/IP and CIP. We have a Axis from IAI with an Ethernet/IP (CIP) interface. We have a description of the Assembly-Data sent to and received from the Axis. Now I tried out your Program to see if I am able to move the Axis and so on.
    Therefore I used the Discover. After thet I can see my Axis.
    Then I added two Instances to Assembly:
    #100 For the output of the Axis
    #150 For the input of the Axis
    I also managed to Add decoders so that I can read the Data directly (Except single Status Bits, I did not find out how to do that.)

    So now when I move the Axis form the PC interface Software for RC/EC from IAI, I can see the Status bits and Positions in my Assembly #100.

    But when I change something in #150 I get a Write OK, but the Axis does not react and in the Software of the Axis I also see tthat the Data in the Input (PLC Output) does not change. So seems my Data is not accepted by the Axis.

    When I look to the controller of the Axis I see the LED which show the connection to a PLC always blink which indicates that it is not connected to a PLC, Guess that is the Problem why the Axis does not react to my Data sent.

    I have a .EDS- File from the Axis, but no Plan what to do with it or how to interpret, the only thing I was able was to find out the two Assemblys #100 and #150. There are several Connection descriptions, but I dont know what to do with them.

    I tried to use the Implicit Messaging in your software, but "Forward open" gives me an error.

    Can you give me some hints, the MAnufacturer of the Axis can only help Programmers of a PLC, but we try to do it drom Windows, and do not have any PLY and PLC knowledge.

    Regards
    Bernd

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-07

    Additional Info:
    In the Software of the Axis I can setup the Structure of the Ethernet/IP data (Operation Mode). When I change it I can see that the ammount of Data in the exchanged Assemblys also changes.
    Bernd

     
  • F. Chaxel

    F. Chaxel - 2018-05-07

    Hi,

    Maybe implicit (Forward open) messaging is required to write into the device.

    Please post a link to the eds file or the file itself ... a config assembly is sometimes required for Foward Open connection (even with 0 byte) and the eds file shows it.

    Could you post a wireshark capture of the write operation who says OK but not working : to looks at the device response ? .. also maybe the Forward open connection with the error response.

    Bye.

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    First File the EDS...
    I will try to do the Wireshark captures and post them later on...

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    First capture.
    I did all Changes directly in the GUI. I clicked to the Assembly #100/150, then I changed Byte 30 of Assembly #150 to 16 and got a write OK. After that I clicked to the Assembly #100/150 agian.

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    Second capture.
    I restarted teh Program, opened teh interface, clicked the Tree, Opened Implicit Messaging, Moved my Assemblys to O->T / T->O and clicked forward open.

    The Interesting for me: When I change some Values which should be written to the Axis, I can end the Ethernet/IP and restart it, and I still see the same changed values. On the Axis I do ont see any changes...

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    From the RC-Software of the Axis

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    second - the Data, the Input is all 0

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    In Ethernet/IP Explorer -> I see the Output of the Axis

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    But The Data to the Axis is not sent. (I also tried the first Bytes, also a completely correct filled 32 Byte Block)...

     
  • F. Chaxel

    F. Chaxel - 2018-05-08

    Quite strange Write shows only 26 bytes written. So off course byte n°30 is not modified when readed back !

    Try to write first byte (or bellow byte n°26).

    I have to see why it's like this and why all the array is not sent ! ... but this tool has not be tested with a lot of devices (only 2 in fact).

    The EDS file shows a config assembly instance #5.

    You can try implicit messaging using the 3 assemblies attributs instance : using the last source code from this morning will be better than the .exe from some weeks ago.

    Please give feed back.

    If another capture is sent please apply the filter tcp.port==44818 then save/export only displayed packets.

    Good luck.

     
  • Bernd Tinkl

    Bernd Tinkl - 2018-05-08

    Hello,
    I've just downloaded and compiled your new Version.
    After that I went to implicit Messaging and the conection Lights of the Axis changed to always on, after I pressed Forward Open. After that changes in the Output structure are shown on the Axis software and finally I managed to move the Axis.

    A BIG BIG THANK YOU for your help. We made a big step forward.

    I have to check if we can use your code to write a DLL to interface to the Axis form C++.

    Can you please give me some contact data so that we can clear up the usage, donation, ....

    Regards
    Bernd

     
  • F. Chaxel

    F. Chaxel - 2018-05-08

    I've made a mistake in the Read/Write process analysis.

    Frames 820-821 : Read 0x96 att3 return 32 byte 0
    Frames 934-935 : Write 0x96 att3 byte 30 (start counting at 0) to 0x10 is OK
    Frames 936-937 : Read back get the byte at 0x10.

    So seems to be a display problem.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.