Comunicação Melsec Série Q

Bom dia,

Estamos tentando comunicar o Elipse E3 utilizando drive MelsecQ com o CLP Q03UDECPU Mitsubish, a layer é Ethernet. No forum há informação que não há suporte ethernet para a série FX Melsec, isso também procede para a série Q?

Fico no aguardo.

Desde já agradecemos

@Fabio_Araldi, bom dia.

O driver Mitsubishi Melsec-Q, segundo o manual, utiliza o “protocolo de comunicação Melsec communication binário em frame 3E compatível QnA sobre Ethernet da Mitsubishi, que permite aos produtos da Elipse Software se comunicarem com PLCs Melsec série Q e série L com Ethernet.”

Abraço.

Olá Luiz,

Estamos tentando com o Drive Melsec-Q, os tags genéricos de comunicação funcionam com IP correto e incorreto do CLP em questão, não sabemos se a comunicação está realmente sendo executada. As configurações dos parâmetros N já tentamos diversas configurações conforme manual do drive. Há alguma porta em específico que já foi testada e teve retorno positivo na comunicação?

att

@Fabio_Araldi,

Com a porta 5001 deve funcionar, mas, de qualquer forma, este parâmetro é arbitrário.

Há a possibilidade de envio dos logs do driver para análise?

Abaixo Log…

29/02/2016 13:21:07.448 (0FEC) DRIVER Driver name: Driver MITSUBISHI MelsecQ v1.1.3 (IOKitLib v2.0.45)
29/02/2016 13:21:07.448 (0FEC) DRIVER IOKitLib version 2.0.45 of Jul 8 2015 11:29:22
29/02/2016 13:21:07.448 (0FEC) DRIVER drvStartComm(0,0,0,0)
29/02/2016 13:21:07.448 (0FEC) DRIVER Current configuration (59 parameters):
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.BackupIP = ‘’
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.BackupIP2 = ‘’
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.BackupIP3 = ‘’
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.ListenIP = ‘’
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.MainIP = ‘192.168.1.2’
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.MainPort = 5001
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.PingTries = 1
29/02/2016 13:21:07.448 (0FEC) DRIVER - IO.Ethernet.Transport = ‘TCP’
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.GiveUpTries = 1
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Log.Enable = 1
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Log.Filename = ‘C:\eeLogs\MelsecQ_%DATE%.log’
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.RecoverEnable = 1
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.RecoverPeriodSec = 20
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Serial.Baudrate = 9600
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Serial.DataBits = 8
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Serial.Port = 1
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.TimeoutMs = 1000
29/02/2016 13:21:07.449 (0FEC) DRIVER - IO.Type = ‘Ethernet’
29/02/2016 13:21:07.449 (0FEC) DRIVER - MelsecQ.PCNumber = 255
29/02/2016 13:21:07.449 (0FEC) DRIVER - MelsecQ.StandardMaximumStringLength = 128
29/02/2016 13:21:07.449 (0FEC) DRIVER - 38 parameters with value = 0 were omitted
29/02/2016 13:21:07.450 (0770) IOKIT INITIALIZING…
29/02/2016 13:21:07.450 (0770) SOCKET Winsock initialized: version=2.2, highVersion=2.2
29/02/2016 13:21:07.450 (0770) IOKIT INITIALIZED!
29/02/2016 13:21:07.450 (0770) IOKIT Request handler enabled
29/02/2016 13:21:07.450 (0770) IOKIT CONNECTING…
29/02/2016 13:21:07.450 (0770) SOCKET connecting socket to ‘192.168.1.2’ on port 5001…
29/02/2016 13:21:07.450 (0970) TAG Tag(0.106.0.300).Validate = SUCCESS (type=10;flags=9)
29/02/2016 13:21:07.450 (0970) TAG Tag(0.0.0.0).Validate = SUCCESS (type=10;flags=9)
29/02/2016 13:21:08.511 (0770) SOCKET connect() returned error WSAECONNREFUSED (10061)
29/02/2016 13:21:08.511 (0770) SOCKET socket closed
29/02/2016 13:21:08.511 (0770) SOCKET failed to connect socket to ‘192.168.1.2’ on port 5001!
29/02/2016 13:21:08.511 (0770) IOKIT CONNECTION FAILED!
29/02/2016 13:21:08.515 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:08.515 (0FEC) TAG <== (1.065) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:08.515 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:08.515 (0FEC) TAG <== (0.000) Tag(0.0.0.0).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:08.515 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:08.515 (0FEC) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:08.515 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:08.515 (0FEC) TAG <== (0.000) Tag(0.0.0.0).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:09.522 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:09.522 (0FEC) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:09.522 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:09.522 (0FEC) TAG <== (0.000) Tag(0.0.0.0).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:10.529 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:10.529 (0FEC) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:10.529 (0FEC) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:10.529 (0FEC) TAG <== (0.000) Tag(0.0.0.0).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:11.514 (0FEC) DRIVER drvStopComm(0,0,0,0)
29/02/2016 13:21:11.514 (0FEC) IOKIT Stopping physical layer thread…
29/02/2016 13:21:11.514 (0FEC) IOKIT Waiting for termination of physical layer thread…
29/02/2016 13:21:11.514 (0770) IOKIT TERMINATING…
29/02/2016 13:21:11.514 (0770) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
29/02/2016 13:21:11.514 (0770) IOKIT Request handler disabled
29/02/2016 13:21:11.514 (0FEC) IOKIT Physical layer thread stopped!

29/02/2016 13:21:20.967 (2098) DRIVER Driver name: Driver MITSUBISHI MelsecQ v1.1.3 (IOKitLib v2.0.45)
29/02/2016 13:21:20.967 (2098) DRIVER IOKitLib version 2.0.45 of Jul 8 2015 11:29:22
29/02/2016 13:21:20.967 (2098) DRIVER drvStartComm(0,0,0,0)
29/02/2016 13:21:20.967 (2098) DRIVER Current configuration (59 parameters):
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.BackupIP = ‘’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.BackupIP2 = ‘’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.BackupIP3 = ‘’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.ListenIP = ‘’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.MainIP = ‘192.168.1.2’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.MainPort = 5001
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.PingTries = 1
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Ethernet.Transport = ‘TCP’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.GiveUpTries = 1
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Log.Enable = 1
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Log.Filename = ‘C:\eeLogs\MelsecQ_%DATE%.log’
29/02/2016 13:21:20.967 (2098) DRIVER - IO.RecoverEnable = 1
29/02/2016 13:21:20.967 (2098) DRIVER - IO.RecoverPeriodSec = 20
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Serial.Baudrate = 9600
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Serial.DataBits = 8
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Serial.Port = 1
29/02/2016 13:21:20.967 (2098) DRIVER - IO.TimeoutMs = 1000
29/02/2016 13:21:20.967 (2098) DRIVER - IO.Type = ‘Ethernet’
29/02/2016 13:21:20.967 (2098) DRIVER - MelsecQ.PCNumber = 255
29/02/2016 13:21:20.967 (2098) DRIVER - MelsecQ.StandardMaximumStringLength = 128
29/02/2016 13:21:20.967 (2098) DRIVER - 38 parameters with value = 0 were omitted
29/02/2016 13:21:20.968 (3178) IOKIT INITIALIZING…
29/02/2016 13:21:20.968 (3178) SOCKET Winsock initialized: version=2.2, highVersion=2.2
29/02/2016 13:21:20.968 (3178) IOKIT INITIALIZED!
29/02/2016 13:21:20.968 (3178) IOKIT Request handler enabled
29/02/2016 13:21:20.968 (3178) IOKIT CONNECTING…
29/02/2016 13:21:20.968 (3178) SOCKET connecting socket to ‘192.168.1.2’ on port 5001…
29/02/2016 13:21:20.968 (3200) TAG Tag(0.106.0.300).Validate = SUCCESS (type=10;flags=9)
29/02/2016 13:21:20.969 (3200) TAG Tag(0.100.0.1).Validate = SUCCESS (type=10;flags=9)
29/02/2016 13:21:22.022 (3178) SOCKET connect() returned error WSAECONNREFUSED (10061)
29/02/2016 13:21:22.022 (3178) SOCKET socket closed
29/02/2016 13:21:22.022 (3178) SOCKET failed to connect socket to ‘192.168.1.2’ on port 5001!
29/02/2016 13:21:22.022 (3178) IOKIT CONNECTION FAILED!
29/02/2016 13:21:22.023 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:22.023 (2098) TAG <== (1.054) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:22.023 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:22.023 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:22.023 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:22.023 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:22.023 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:22.023 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:23.030 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:23.030 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:23.030 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:23.030 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:24.037 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:24.037 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:24.037 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:24.037 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:25.044 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:25.044 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:25.044 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:25.044 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:26.051 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:26.051 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:26.051 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:26.051 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:27.058 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:27.058 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:27.058 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:27.058 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:28.064 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:28.064 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:28.064 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:28.064 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:28.971 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:28.971 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:29.071 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:29.071 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:29.978 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:29.978 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:30.078 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:30.078 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:30.984 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:30.984 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:31.085 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:31.085 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:31.991 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:31.991 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:32.092 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:32.092 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:32.998 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:32.998 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:33.099 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:33.099 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:34.005 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:34.005 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:34.106 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:34.106 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:35.012 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:35.012 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:35.113 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:35.113 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:36.019 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:36.019 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:36.120 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:36.120 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:37.026 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:37.026 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:37.026 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:37.026 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:38.033 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:38.033 (2098) TAG <== (0.000) Tag(0.106.0.300).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:38.033 (2098) DRIVER Failed, physical layer not connected…
29/02/2016 13:21:38.033 (2098) TAG <== (0.000) Tag(0.100.0.1).ReadValue = ERROR (hr=80004005)
29/02/2016 13:21:38.148 (2098) DRIVER drvStopComm(0,0,0,0)
29/02/2016 13:21:38.148 (2098) IOKIT Stopping physical layer thread…
29/02/2016 13:21:38.148 (2098) IOKIT Waiting for termination of physical layer thread…
29/02/2016 13:21:38.148 (3178) IOKIT TERMINATING…
29/02/2016 13:21:38.148 (3178) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
29/02/2016 13:21:38.148 (3178) IOKIT Request handler disabled
29/02/2016 13:21:38.148 (2098) IOKIT Physical layer thread stopped!

Teria como enviar algumas imagens dos parâmetros do CLP?

Abaixo as Imagens da configuração.




Ok.

Por favor, teria como verificar se as configurações do CLP estão compatíveis ao configurado no driver?

Tenta fazer um ping no prompt para o ip configurado.

Outra observação é quanto ao erro WSAECONNREFUSED. Este indica que a conexão foi recusada. Pode ser algo na configuração, ou na rede, ou no conversor (se estiver utilizando), etc. Ver: https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx

Boa tarde. Estou tentando comunicar com a CPU Mitsubishi serie Q porem sem sucesso.
Segue imagens.
image
image


Para teste, estou tentando ler o Endereço X9 do CLP
Endereço de rede da CPU 192.168.10.152.
Obrigado!

Olá Bruno!

Favor enviar para o meu e-mail o log de comunicação do driver.

Estou tentando gerar o LOG mas nao esta sendo criado no destino que especifiquei.
marquei a opção de salvar o log e rodei a aplicação, porem não gerou nenhum arquivo de log.
image

Talvez seja alguma questão de restrição de acesso. Tenta em outra pasta.

A propósito, para gerar o log basta ativar a comunicação pelo próprio Studio.

Mesmo colocando outro destino, não gera arquivo de LOG.
image

Bruno,

Tenta só com o nome do arquivo, assim ele será gerado na mesma pasta da DLL.

Anota%C3%A7%C3%A3o%202020-07-23%20132825


image

Os arquivos que estão em minha pasta do projeto, sao esses da image,.

Tá lá ele!