Yuri7811 Posted April 28, 2019 Report Posted April 28, 2019 Hi to All. I have V700 project configurated for Modbus IP I try to make connection whith PLC from KepServerEX 6.6 I try to read MI5 (40006), but when I running the QC in the OPC the tag quality is" BAD" and the value is "unavailable". I am not sure, if configuration correct from both sides. Can anybody help.
AlexUT Posted April 28, 2019 Report Posted April 28, 2019 V700 have 8 Sockets and have different default configuration for Socket 2. So you have to configure it for Port 502. Then it should work. B.R.
Yuri7811 Posted April 28, 2019 Author Report Posted April 28, 2019 Thanks for reply. But i dont understand where i have change configuration? Is it not already configurated ? Or I have to open socket 2 in SOCK INIT module? And other qustions: what means in KepServer, number after IP (<172.21.204.37>0) ? And where i can find it in my PLC program? Thanks
AlexUT Posted April 28, 2019 Report Posted April 28, 2019 You have to configure Socket 2 for port 502 as you configured Sockets 0, 1, and 3. Not experienced with KepServer. It may be port number. Look KepServer manual. B.R.
Cam Posted April 30, 2019 Report Posted April 30, 2019 @Cara Bereck Levy Can you have someone look at the demo programs for the V700 MODBUS TCP/IP as in the demo Socket 2 is showing as Default TCP 502 Modbus slave, while in the help file the defaults are: Default Socket Settings The V700 default settings are listed below: Socket 0- TCP_Slave Port: 20256 Socket 1- TCP_Slave Port: 20257 Socket 2- TCP_Slave Port: 20258 Socket 3- TCP_Slave Port: 20259 Socket 4- TCP_Slave Port: 20260 Socket 5- TCP_Slave Port: 20261 Socket 6- TCP_Slave Port: 20262 Socket 7- TCP_Slave Port: 20263 So when looking at the demo project it appears that you don't need to configure socket 2 as it's port 502 by default(believe its due to the version the demo was written in V8.0.1) but I can see how this would be confusing for new users.
Gabriel Franco Posted April 30, 2019 Report Posted April 30, 2019 Regardless of the default socket and port configuration, I always configure the values at power up. It makes that rung explain itself and avoid misunderstandings with other programmers or even myself over time
Yuri7811 Posted May 2, 2019 Author Report Posted May 2, 2019 Thanks to all for help, problem was fixed by changing Socket 2 to 502 in setting touch panel (not in a program)
MVP 2023 Flex727 Posted May 2, 2019 MVP 2023 Report Posted May 2, 2019 1 hour ago, Yuri7811 said: problem was fixed by changing Socket 2 to 502 in setting touch panel (not in a program) The Socket will revert to Port 20258 when the PLC is power cycled or Reset. Add the Socket 2 Initialization block to your program to prevent that.
Yuri7811 Posted May 5, 2019 Author Report Posted May 5, 2019 Thanks for advise. I'll change it. Can you explain how i can read output bit O25 ( adress i have put in Kepware ?). Inputs reads OK. With outputs something wrong.
MVP 2023 Flex727 Posted May 6, 2019 MVP 2023 Report Posted May 6, 2019 On 5/5/2019 at 3:54 AM, Yuri7811 said: Can you explain how i can read output bit O25 ( adress i have put in Kepware ?) Output coils start at address 4000h (16384 decimal). Or you can assign an MB to the Output coils and read those instead.
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