roghenr Posted July 14, 2022 Report Share Posted July 14, 2022 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted July 14, 2022 MVP 2022 Report Share Posted July 14, 2022 Does your simulator have the option to be either master or slave? Which type of MODBUS are you using? Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 14, 2022 Report Share Posted July 14, 2022 You need add this piece of program to PLC (in case of Modbus TCP): Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted July 14, 2022 MVP 2022 Report Share Posted July 14, 2022 @Gabriel Franco, I always just hang my MODBUS IP SCAN_EX FB directly on the left rail. Why do you include SB 2? Are you expecting the first PLC scan to cause a problem? Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 14, 2022 Report Share Posted July 14, 2022 Well, no. Just a programming way of one of my mates. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted July 14, 2022 MVP 2022 Report Share Posted July 14, 2022 👍 Quote Link to comment Share on other sites More sharing options...
roghenr Posted July 15, 2022 Author Report Share Posted July 15, 2022 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 Quote Link to comment Share on other sites More sharing options...
roghenr Posted July 15, 2022 Author Report Share Posted July 15, 2022 14 hours ago, Gabriel Franco said: Você precisa adicionar este programa ao PLC (no caso de Modbus TCP): 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? 13 hours ago, Flex727 said: 👍 Quote Link to comment Share on other sites More sharing options...
roghenr Posted July 15, 2022 Author Report Share Posted July 15, 2022 17 hours ago, Gabriel Franco said: Você precisa adicionar este programa ao PLC (no caso de Modbus TCP): sorry I wrote wrong I'm using my vision 130 as a master and not as a slave Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 15, 2022 Report Share Posted July 15, 2022 PLC as Modbus RTU master (in this code, I´m using PLC port 2 as RS485, your case may be different): Reading registers from the slave. You must use a N.C contact of FunctionInProgress in series with your own reading conditions: Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted July 15, 2022 MVP 2022 Report Share Posted July 15, 2022 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted July 16, 2022 MVP 2022 Report Share Posted July 16, 2022 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted July 16, 2022 MVP 2022 Report Share Posted July 16, 2022 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. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 17, 2022 Report Share Posted July 17, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.