Jump to content

Edilson Adriano Lucas

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Edilson Adriano Lucas

  1. Hi everyone, I'm developing a program to communicate with an inverter and a PM5100 power meter, but I'm getting "4/6" time-out errors when communicating with the PM5100.  Perform the program development as follows.  Function Process Inverted contact, normal closed MB, function block 43000, coil set to Mb and follows the sequence .... I performed a test with Serial Adapter and got success, what can I do to adjust the timeout or calculate how it is done I noticed  that there is a formula in the help menu, has anyone used ??  Can someone indicate an accomplished program ?? https://youtu.be/cBXH0QjwFMw my logic is similar to video

  2. 49 minutes ago, Joe Tauser said:

    Deixe o Soquete 1 mapeado para a porta 20256 e não o use em seu programa. Visilogic usa estes para programar em Ethernet.

    Na verdade, o padrão é 502, mas pode ser qualquer porta. E o Mestre e o Escravo não precisam ser os mesmos, você só precisa saber qual é o número de cada lado.

    @Edilson Adriano Lucas  - você não postou nenhum link de documentação para cfw011, então eu não investiguei os detalhes de sua comunicação. Eu estou supondo que, olhando para o seu programa, você já descobriu o mapa de registro.

     

    Eu cortei seu código um pouco para a atribuição de soquete. Eu escolhi a porta 503 no lado do PLC usando o soquete local 3 para falar o VFD na porta 502.

    Se todo esse material de porta / soquete parece confuso, é porque é. Especialmente para alguém novo nas comunicações Ethernet que está tentando entender o Modbus e se perguntando por que o PLC não pode falar com o que quiser, porque o computador não tem problema com isso.

    A série UniStream enterra tudo isso sob o capô e é muito mais fácil de configurar.

    De qualquer forma, fora do meu palanque. Você tem que conseguir o que você está trabalhando. Deixe-nos saber suas dúvidas.

    Joe T.

     

    TestModbusCFW11_JT.vlp 222,33 kB · 0 downloads

    Hello Joe, thank you very much for your attention.
    So I'm communicating with the inverters and my question really is which port to use.
    I recently ran a UDP communication project with or PLC, where I succeeded, but a friend once made the communication through the TCP protocol with other CLPs together with the OPC server system and eventually came into conflict I believe he used the same ports .
    
    Currently my scenario as described above is to perform the communication between the PLC with the Inverter and at the same time communicate with the OPC server, you could be typing some topic that can specify more about the port configurations.
    
    My other question is whether the reading and writing logic is correct, or you use another pattern.
    
    Many thanks for now.
  3. 43 minutes ago, Flex727 said:

    Resumidamente, (e talvez mais simplificado), uma porta é um endereço que é visível para o mundo exterior. Um soquete hospeda a porta para as comunicações. Você tem 4 Soquetes no seu PLC Unitronics (numerados 0-3) e, portanto, você tem 4 caminhos para comunicações pela Ethernet. Você pode misturar e combinar protocolos como quiser, mas você só tem 4 que você pode usar ao mesmo tempo. Cada um dos 4 Sockets tem uma configuração padrão, mas você pode alterar isso com um FB de inicialização de soquete. Se você for usar o MODBUS TCP, você deve ter um FB de configuração de IP MODBUS para cada soquete que usará o MODBUS TCP. Tanto a inicialização do soquete quanto a configuração do MODBUS devem ser ativadas com o SB 2.

    Hello Flex, the program is attached, Thank You vary much for Help me !!!

    
    
  4. 3 minutes ago, Flex727 said:

    There are example programs that came with your VisiLogic installation that show you the proper way to set up MODBUS TCP communications. You can have a continuous connection with up to 4 MODBUS TCP devices by using the 4 available sockets. You will need to initialize the sockets with the proper protocol and port number, as well as set up your MODBUS IP configuration for each.

    Hello Flex727, 

    So I will be setting the socket 20256 as master in my network with the inverters and in the FB ip config I will be configuring the ip of the slaves and the port that in the case would be 502, and in another FB ip config I will be configuring as slave of my OPC server on the port  502.

  5. 2 hours ago, udubiel said:

    Do you mean Modbus instead of OPC?

    Modbus-TCP is normally on port 512. On a Vision350 you can use Socket 2, which is by default initialized for Modbus. But you can also use any other socket and any other free port number. In this case you have to call 'Socket Init' on your Vision and you also have to change the port number on your cfw011.

    cheers

    Udo

    Currently using modbus through an OPC server, I contacted support here in Brazil and he said that I could be using port 20256, however the moment I set the IP and start the FB config I put the 2 ports and indicated the  IP of my slaves ??  I'll be posting the program here, tomorrow.

  6. 1 hour ago, Ausman said:

    Initial thought is to check that you don't have the same ID somewhere throughout the 485 network.

    cheers,

    Aus

     

    Ausman good evening, my ID configured in the initial configuration of the network is number "2". The funny thing is that in the V230 model, I was able to communicate with the equipments having the expansion module EX A2X. But the V570 did not work, just when I removed the cable from the EX A2X module.

     

  7.  

    Hello friends, I am having trouble developing the program for rs485 communication with a danfoss inverter and a softstarter weg ssw07. I am doing a logic of SET and RESET, after communicating with a condition equipment to the next and at the end RESET both. However it is presenting a number 4 and 5 fault. Someone would have a program that could serve as an example for me where I can communicate with several slave, automatically forming a loop cycle.

×
×
  • Create New...