Jump to content

difficulty in implementing a modbus network with vision V130


Recommended Posts

Hello Joe and Kratmel thanks for the previous answers it helped me a lot.
I'm having a lot of difficulty implementing a simple modbus network with Vision 130.

My intention is just:
The program consists of:
1_start and stop the engine
2_read current from vfd address 0026H and show it on the ihm
3_describe in ihm failure, run and ready using status bits from address 0001H...I use vector num for bits starting mb400
4_I would like to reset the fault in bit 3; In this case, to write the reset bit, do I need to use holding or can I use coil for the specific bit?

With help I can turn the engine on and off, change the vfd frequency through the ihm and show it in numbers when the vfd fails [16344]
I have no success reading the chain... I've already lost substantial time.
I also noticed that I have timing problems because I need to press key several times to turn it on or off.

Modbus is implemented in the first lines of the program.
I need help from specialists, sorry for my English, I'm using google translator.
Thanks any help will be appreciated

I am sending program in attachment

08.01.23.vlp

Link to comment
Share on other sites

  • MVP 2023

I would divide your task into two parts:

1) setting of VFD;

2) development of a code for interaction with VFD.

Considering control via Modbus, I would like to say that turning on and off the VFD must meet the safety requirements.

If the VFD does not have an external Safe stop input, then controlling it via the network causes a problem - what will happen when the network is interrupted or the PLC fails.

Therefore, taking into account the fact that in a standard VFD it is possible to separately define the source of control and the source of the setpoint.

Then I would use the VFD logic inputs of the START-STOP and the network as the source of the speed setpoint, write parameters, reading the status, errors and resetting them.

In this case, there is no need to constantly monitor the network and configure network control timeouts in the VFD (sometimes they cannot be disabled in the VFD converter even for a test).

If the above-mentioned control method is not possible, then for the network it is necessary to determine the polling period of each parameter and each VFD in the network (timer controlled send command) to ensure constant control and accordingly adjust the VFD to stop or other reaction in case of network loss.

1 hour ago, roghenr said:

I also noticed that I have timing problems because I need to press key several times to turn it on or off.

In order to speed up the reaction to pressing the control buttons, it is necessary to take into account that, in addition to the data sending command (and transmission times), there are other parts of the program that must be executed. Therefore, before the Modbus start-stop command, you should put a label in the program, and at the end of the program rung, where there is a button-click, place a jump to this label.

Main idea - do not send something if it not needed at this time.

Link to comment
Share on other sites

42 minutes ago, kratmel said:

Eu dividiria sua tarefa em duas partes:

1) configuração do VFD;

2) desenvolvimento de um código para interação com VFD.

Considerando o controle via Modbus, gostaria de dizer que ligar e desligar o VFD deve atender aos requisitos de segurança.

Se o VFD não tiver uma entrada de parada segura externa , então controlá-lo através da rede causa um problema - o que acontecerá quando a rede for interrompida ou o PLC falhar.

Portanto, levando em consideração que em um VFD padrão é possível definir separadamente a fonte de controle e a fonte do setpoint.

Então eu usaria as entradas lógicas do VFD do START-STOP e a rede como fonte do ponto de ajuste de velocidade, escreveria parâmetros, leria os status, erros e os redefiniria.

Neste caso, não há necessidade de monitorar constantemente a rede e configurar timeouts de controle de rede no VFD (às vezes eles não podem ser desabilitados no conversor VFD mesmo para um teste).

Se o método de controle acima mencionado não for possível, então para a rede é necessário determinar o período de polling de cada parâmetro e cada VFD na rede (comando de envio controlado por timer) para garantir o controle constante e, consequentemente, ajustar o VFD para parar ou outra reação em caso de perda de rede.

Para agilizar a reação ao pressionar os botões de controle, é necessário levar em consideração que, além do comando de envio de dados (e tempos de transmissão), existem outras partes do programa que devem ser executadas. Portanto, antes do comando start-stop do Modbus, deve-se colocar um label no programa, e ao final da linha do programa, onde houver um clique de botão, colocar um salto para este label.

Ideia principal - não envie algo se não for necessário neste momento.

Thanks for wasting your time answering, in fact this is just a simple project where I start making alarms for stopping motors and for using many inputs I found it efficient to put the vfd in a network to monitor only the failures.
In my workplace the panels are where we start motors I just wanted to create fault alarms on a vision 130 that receives the external signals.
So I decided to take the opportunity to do this project in order to turn on and off and monitor to learn to program even when I do a complete project.
Could you guide me on how to do what you are rightly proposing?
I have wasted a lot of time researching unitronics, and I even started this project that I sent with help from the experts on the forum.

my email is roghenr00@gmail.com
Rogerio Henry.
I am from Brazil

Link to comment
Share on other sites

23 minutes ago, roghenr said:

Obrigado por perder seu tempo respondendo, na verdade este é apenas um projeto simples onde começo a fazer alarmes para parar motores e por usar muitas entradas achei eficiente colocar o vfd em uma rede para monitorar apenas as falhas.
No meu local de trabalho, os painéis são onde ligamos os motores. Eu só queria criar alarmes de falha em uma visão 130 que recebe os sinais externos.
Então resolvi aproveitar para fazer esse projeto para ligar e desligar e monitorar para aprender a programar mesmo quando faço um projeto completo.
Você poderia me orientar sobre como fazer o que você está propondo com razão?
Perdi muito tempo pesquisando unitronics, e até comecei esse projeto que enviei com ajuda dos experts do fórum.

meu e-mail é roghenr00@gmail.com
Rogerio Henry.
eu sou do Brasil

I understood what was proposed, it would be to activate the vfd independently and read the current and bits via the modbus network for use in the alarms.
It's like I explained before the panel is already working I would just collect the data from the inverters that are several so I don't need wiring and additional inputs that the plc doesn't have.
I follow some examples and it helps but the current reading does not work and I notice that the status data reading is slow.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...