[Python] Connecting to a plc with server using Pymcprotocol

Discussão em 'Python' iniciado por Stack, Abril 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am Swapnil and I have no experience with servers. I am trying to connect to a Mitsubishi fx5u PlC from a server but I get a timeout error when I try. But when we try to connect it to connect it with any other laptop or PC, it get connected without any problem. On the other hand when I have tried to ping the PLC from the server it it returns the ping that means I have a link to the PLC.

    I am using Hewlett Packard with windows server on it has , I have tried :

    1. Tried to configure the IP of the server
    2. Tried to make the gateway same
    3. Tried disabling windows defender.

    Code:

    import pymcprotocol
    plc1 = pymcprotocol.Type3E()
    plc1.connect("192.168.250.6", 1200)



    error : TimeoutError : timed out

    My Server IP is 192.168.250.90.Code with error message

    1. I have tried to reconfigure the ip of the serve IP.
    2. Tried disabling the windows defender.
    3. Tried to reconfigure PLC.

    Please help me to troubleshoot this issue.

    Thank you in advance !!

    Continue reading...

Compartilhe esta Página