Eddolls Posted April 26, 2017 Report Posted April 26, 2017 Hi everyone, I am having real problems trying to get 2 v570's to talk via modbus ip at the same time as scada system reading from them both. I Currently have a PC scada system reading from the 2 v570's ok but also want one of the v570's to read from the other. they both have 2 modbus configurations, the slave v570 has 2 scan-ex fb's one for the scada and one for the other v570 and the master v570 has one scan-ex and one read holding register fb, i am using socket 2 for the scada system and socket 3 for the v570 using ports 502 and 503 respectivly with a socket init for socket 3, i have noticed that sb150 (socket 3 connected ) is 0 If i use some modbus scanning software i can access the slave on both ports so i'm sure the slave is ok but my read holding registers fb shows status of 5 and 0 acks. I have attached only the modbus part of the software. i think i must of done something stupid but i have now gone blind from looking at for so long so if anyone could cast an eye i would be very greatfull Regards Chris v570modbusread slave.vlp v570modbusread.vlp
MVP 2023 Flex727 Posted April 26, 2017 MVP 2023 Report Posted April 26, 2017 It looks like you have a number of problems that are easily resolved. 1) In the master, use a polling timer so that you are not trying to exchange data on every PLC cycle. I know MB 201 will prevent that, but a few extra milliseconds generally helps with MODBUS IP. I usually poll at 100ms intervals, but you can go much faster if you absolutely need to. 2) In the slave you do not need to configure socket 2 - you are scanning on socket 3. 3) Also, you are using SB 149 to gate your SCAN_EX FB - this will prevent the SCAN_EX FB from being executed. You should be using SB 146. 4) You do not need the SCAN_EX FB for the SCADA in your slave PLC.
MVP 2023 Flex727 Posted April 26, 2017 MVP 2023 Report Posted April 26, 2017 Oops, one more: 5) You need a CONNECT FB in your master PLC.
Eddolls Posted April 27, 2017 Author Report Posted April 27, 2017 Thankyou for your help Flex727, it now works!!! i am really greatfull, i had been struggling with tjhis for hours yesterday. Do you know if i should reset the total sessions and acknowledgment counts after a certain time or will it do that it self?
MVP 2023 Flex727 Posted April 27, 2017 MVP 2023 Report Posted April 27, 2017 There is no need to reset total sessions or acknowledgments, though you can if you are using the numbers for some purpose.
CallMeOme Posted May 26, 2018 Report Posted May 26, 2018 Hello Everyone} I am a new for unitronics, I need values advices from everyone. I need to connect the existing V570 ( Master) with 4 new V570 (Slaves) My Goal is to show a status and values of Equipments in 4 new V570 in the existing V570. If possible to connect via above mention. Please advice Thank you Ome
MVP 2023 Flex727 Posted May 26, 2018 MVP 2023 Report Posted May 26, 2018 Yes, you have 4 sockets available for Ethernet communication. Initialize the 4 sockets and configure for MODBUS IP using the IP address and port numbers for the 4 slaves. Connect to each one and use MODBUS read commands to obtain the data you want. There are example projects that came with your VisiLogic installation that will demonstrate one way to accomplish all this.
MVP 2023 Joe Tauser Posted May 28, 2018 MVP 2023 Report Posted May 28, 2018 @CallMeOme - you need to tell us how fast the data needs to update. "As fast as possible" is not an answer - give us a real value you can live with. I wouldn't use all 4 sockets in the V570 for Modbus IP - I generally leave a socket for myself for programming. There are two ways I would do this- 1. Use two sockets and alternate the IP addresses for the two slaves between them. This will give you a possible update time of about 5 seconds. 2. If you haven't bought the V570 for the Master (or can change your mind), I would seriously consider using a V700, which has 8 sockets. This is a much better solution for what you are trying to do. Joe T.
Ako Posted October 22, 2018 Report Posted October 22, 2018 Hello, i want to transfer data from V1210 to PC. Can you help me? Thanks alp.
MVP 2023 Joe Tauser Posted October 23, 2018 MVP 2023 Report Posted October 23, 2018 You need to be much more specific in your request. What data? What program on the PC receives the data? Is there a file format you need? Is this for a program you've written yourself or SCADA software? Unitronics has a Utility called DataXport that may meet your needs. Joe T.
Ako Posted October 23, 2018 Report Posted October 23, 2018 Yes , sorry about that. i want to transfer coil data via modbus. i want to know if there are any program.
MVP 2023 Flex727 Posted October 23, 2018 MVP 2023 Report Posted October 23, 2018 It would be helpful if you answered the rest of Joe's questions. Read Coils is MODBUS function #1. Force Coils is MODBUS function #15. There are example programs that came with your VisiLogic installation.
MVP 2023 Joe Tauser Posted October 24, 2018 MVP 2023 Report Posted October 24, 2018 On 10/22/2018 at 7:57 PM, Joe Tauser said: What program on the PC receives the data? Is there a file format you need? Is this for a program you've written yourself or SCADA software? Need to know what on the PC will be creating the Modbus requests. Joe T.
Ako Posted October 24, 2018 Report Posted October 24, 2018 i have done it using C# code so thanks for paying attention.
MVP 2023 Joe Tauser Posted October 24, 2018 MVP 2023 Report Posted October 24, 2018 If you're rolling your own Modbus, you can use something like this (assuming a .NET environment)- https://sourceforge.net/projects/easymodbustcp/ Also look on the software page of this website at "Programming Tools for Developers" for the Unitronics PCOM protocol driver and documentation. Joe T.
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