Jump to content

Javier Camusso

Members
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Javier Camusso

  1. Hello everyone.
    I'm looking for a way to certify that a program running on a PLC is the same as some project file (.vlp).

    Some type of signature CRC.

    The tool "VisiDiff" doesn't support V130 nor V350. (the two versions that I use)

    I've found an SDW value tagged as "Signature Log Checksum", that I think is the key that I need, but this value is always 0, and the help doesn't say anything about it.

    Can anyone help?

     

    Regards, Javier.

  2. SOOLVED!!!

    Looking to the problem, I've tried to set the protocol type manually, and YES! It works!

    After initializing the socket, I set the socket protocol manually in 0.

    Starts the synchronization, and it works.

    There is no need to close the socket. I think that closing the socket only got effect on TCP MASTER connections.

    If you are interested, you can find the details attached.
    Thanks everyone!

    Solved.pdf

    • Like 1
  3. Aus: Thanks for your answer!
    You are right on this. I normally play with instruction orders, or I use a label to go to end of ladder when launching or modifying a connection. The PLC executes the communications at the end of ladder scan. So, I force it to do this before evaluating any connection condition.
    In this case, I am in test stage, so I´m using manual flags to run any single rung. This assures to avoid any timing trouble.

  4. Flex: Thanks for your answer!

    Going a little deeper, the application normaly uses this socket for modbus comm as slave. In some conditions, I need to use this socket for a time synchronization. For this second use, I need the connection as UDP, and don´t have any modbus config to define.

    All I can do is stop the modbus listener rung...

    MBlistener.png.1725c34669ce4a4d60b5b47706c79ee1.png

    ...close the socket...

    ReDefine1.PNG.d5bb6d405a6c91b6d675caa62e99c876.PNG

    ...and initialize as UDP.

    ReDefine2.PNG.6625030af4681b1e21db8bb1e9f117d0.PNG

     

  5. Hi everyone!

    I´m using the four sockets in a Vision 130, and I need more!

    So, I tried to redifine a socket in run time according to some conditions, but I find out that once the socket was defined,  I can´t redefine it.

    The socket is first initialized as TCP / Port 502 / Server. A Modbus IP configuration is attached to this socket, and running as Modbus IP Slave.

     FirstDefintion.PNG.95321219ee44a9a90485ac9ef7a3b37b.PNG

    Then, I close the socket...

    ReDefine1.PNG.444833b3b27e1ffdc9ba21b12c6bd87c.PNG

    ...and redefine it as UDP

    ReDefine2.PNG.f18c1fe88a7dc1d43ee7cc7bd38c05a5.PNGReDefine3.PNG.23318ff8cb2d81e497a72f071b9bd295.PNG

    The result is that the socket never loose the Modbus definition, and can´t connect via UDP.

    SocketState.PNG.9a5d85236fc1b42db1a6c8a7a5c229b7.PNG

    When the second socket definition is executed, the socket state goes from 20 to 34.

     

    If I insert a reset of the PLC before the second definition, all runs correctly.

    So, I think that the only way to "release" the socket definition is restarting the PLC. Is this right? Or (more likely) I am doing something wrong?

     

    Thank you very much!!

    ReDefine.PNG

  6. Hi everyone.

    I tried to use a MODBUS configuration using an indirect declaration of SLAVE ID, but didn't work. (see example in index 2 and 3 below)

    Example.jpg

    If I declare the SLAVE ID in a direct way, all OK.

    My problem is that I have to read several slaves from the PLC, and is realy hard to do with a fixed Modbus configuration.

    I am using a V130 in revision 9.6.0.

     

    Thanks in advance.
    Regards, Javier.

    P.D.: Sorry if I posted this twice. I couldn't find the first post.

    Hw.jpg

  7. Hi everyone.

     

    I tried to use a MODBUS configuration using an indirect declaration of SLAVE ID, but didn't work.

    (You can see an example in index 2 and 3 of the attached image)

    Example.jpg

    If I declare the SLAVE ID in a direct way, all OK.

    My problem is that I have to read several slaves from the PLC, and is realy hard to do with a fixed Modbus confifuration.

    I'm using a V130 in version 9.6.0.

    Hw.jpg

     

    Thanks in advance.

    Regards, Javier.

     

×
×
  • Create New...