Jump to content

Recommended Posts

Posted

Good afternoon.
I tried to use modbus Sim,Docklight for addressing tests but without success.
I saw in a post that to use modbus simulator I need to turn my vision 130 into slave.
I need some guidance.
Thanks.

Posted
18 hours ago, Flex727 said:

Seu simulador tem a opção de ser mestre ou escravo?

Que tipo de MODBUS você está usando?

I'm using modbus serial rtu.
I have modbus that simulates slave, but it doesn't work.
I wanted to use Vision 130 as a master in tests with VDF

Posted
14 hours ago, Gabriel Franco said:

Você precisa adicionar este programa ao PLC (no caso de Modbus TCP):

 

image.png.55a44a32867416a27b64be304b92556f.png

14 hours ago, Flex727 said:

@Gabriel Franco, eu sempre apenas penduro meu MODBUS IP SCAN_EX FB diretamente no trilho esquerdo. Por que você inclui SB 2? Você está esperando que a primeira varredura do PLC cause um problema?

image.png.d9690791bc84072820139b16c7853ae7.png

 

13 hours ago, Flex727 said:

👍

image.png.f5cbd51e9662948fe0f03f176dadaeca.png

image.png

Posted
17 hours ago, Gabriel Franco said:

Você precisa adicionar este programa ao PLC (no caso de Modbus TCP):

 

image.png.55a44a32867416a27b64be304b92556f.png

sorry I wrote wrong I'm using my vision 130 as a master and not as a slave

Posted

PLC as Modbus RTU master (in this code, I´m using PLC port 2 as RS485, your case may be different):

image.png.f3448ec311a06e4883250cb748fc8b29.png

 

Reading registers from the slave. You must use a N.C contact of FunctionInProgress in series with your own reading conditions:

image.png.330de611f8e8dc8a6e505f68c8a2fe43.png

  • MVP 2023
Posted

Gabriel, this is only minor, but I'm intrigued why you activate SB168 in the ladder itself, rather than simply setting it on powerup?

cheers, Aus

  • MVP 2023
Posted
15 hours ago, Ausman said:

Gabriel, this is only minor, but I'm intrigued why you activate SB168 in the ladder itself, rather than simply setting it on powerup?

It looks like he is doing both.

  • MVP 2023
Posted

Too true, missed that.  As I don't change IPs at any time, I was wondering whether it needed to be "redone" after a change, and maybe there were address changes happening elsewhere in the program which made it necessary.  Just curious.

Posted
On 7/15/2022 at 6:35 PM, Ausman said:

Gabriel, this is only minor, but I'm intrigued why you activate SB168 in the ladder itself, rather than simply setting it on powerup?

cheers, Aus

Its the way to remember to myself and to my coleagues that its madatory to set it in all programs using Ethernet.

I set all requiered power up values in ladder rather than Visilogic option.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.