roghenr Posted July 14, 2022 Report 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.
MVP 2023 Flex727 Posted July 14, 2022 MVP 2023 Report Posted July 14, 2022 Does your simulator have the option to be either master or slave? Which type of MODBUS are you using?
Gabriel Franco Posted July 14, 2022 Report Posted July 14, 2022 You need add this piece of program to PLC (in case of Modbus TCP):
MVP 2023 Flex727 Posted July 14, 2022 MVP 2023 Report 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?
Gabriel Franco Posted July 14, 2022 Report Posted July 14, 2022 Well, no. Just a programming way of one of my mates.
roghenr Posted July 15, 2022 Author Report 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
roghenr Posted July 15, 2022 Author Report 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: 👍
roghenr Posted July 15, 2022 Author Report 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
Gabriel Franco Posted July 15, 2022 Report 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:
MVP 2023 Ausman Posted July 15, 2022 MVP 2023 Report 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
MVP 2023 Flex727 Posted July 16, 2022 MVP 2023 Report 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.
MVP 2023 Ausman Posted July 16, 2022 MVP 2023 Report 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.
Gabriel Franco Posted July 17, 2022 Report 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now