Schneider M340+NIP2212 STB - TTL issue!

iJAF

Member
Join Date
Sep 2010
Location
PT
Posts
14
Hi, I'm using a schneider M340 modicon PLC with some STBs NIP2212 in a big gigabit optic fiber ring topology network !!!

Everything is working fine !

But when testing the redundancy of the ring network (by disconnecting network segments) and the packets have to travel by the longest side of the ring (lot of network nodes) the communications are lost !!

Through packet monitoring, we believe that the default TTL value (time to live) of 10 is not enough (more than 10 jumps) !!!

I have contacted the local schneider support and they said that I can't change the TTL of TCP packets :O !!!

Which is the best way to solve this problem !?!

Thank you !!
 
Are you using IOScanner? Try with READ_VAR instructions - I think their TTL is longer. Is this 10 hops through routers? I didn't think Switches decrement the TTL. Can you prove it is a TTL issue, can you ping? My windows machine has a TTL of 128 with ping.
 
Are you using IOScanner? Try with READ_VAR instructions - I think their TTL is longer. Is this 10 hops through routers? I didn't think Switches decrement the TTL. Can you prove it is a TTL issue, can you ping? My windows machine has a TTL of 128 with ping.

Yes, I'm using the IOscanner !!!

And yes the network is very large and has a some routers!

Some packets were analised by the network managers and they concluded that the TTL of 10 is not enough (more than 10 jumps)!
 
Not sure what else to suggest besides changing to READ_VARs. I have another idea, but it isn't fully developed, so not sure if it will work or not.

When you do NAT translation through a router (i.e. a typical home router, like Linksys, DLINK, what have you) it will create a new IP packet with different IP addresses, ports, etc. I wonder if it changes the ttl as well... if it does, you could put the IOScanner behind a NAT router and run this way. I can't easily test and there is a good chance the TTL is copied from the incoming to outgoing packet, which would render this idea useless. I know it's possible to use Linux and IPtables to change the ttl in the firewall rules, but I am not sure I would suggest this for a production system.
 
The problem is that I already have the solution working fine and it is completely validated !

The application was done based in ioscan and now it is very difficult to rebuild the whole app with read_var and write_var !!

By the way, do you know which is the best way to emulate the ioscan via read and write vars with a aprox. 250ms rate ?!

read_var(ip_1)
read_var(ip_2)
read_var(ip_3)
read_var(ip_4)

[WAIT 50ms]

write_var(ip_1)
write_var(ip_2)
write_var(ip_3)
write_var(ip_4)

[WAIT 200ms]

read_var(ip_1)
read_var(ip_2)
read_var(ip_3)
read_var(ip_4)
...

I have attached the print screen of my ioscan config !
I never used the manual messaging, sorry for my "rookiness" :ROFLMAO:

Thanks

scan.jpg
 
Last edited:
I have decided to advance to change my solution from IOScan to manual READ/WRITE_VAR, emulating the IOScan !! Read/Write_Var requests have TTL = 64 !!!

Have you ever used STB polling with Read/write var ?!

Do you know if we could do write/read requests to the same IP at the same time ?!

Could I "fire" 7 read_var requests @ the same time wait 200ms and then "fire again" ?! and the same for the 7 writes !

Have you got some experience with this !?

I must poll with a rate of aprox 200msecs !
 

Similar Topics

Hello, I need to access the bits from the fire system control panel through RS-485. So, I used Read Var block to read from the panel...
Replies
0
Views
31
Hi Please I have zeilo smart relay #SR2A201BD but I don't have it's programming cable. Can I use any general usb/rs232 converter? Or need...
Replies
2
Views
78
Hello, Recently I was asked to analyze the logic of the air conditioning system in one of our departments. The PLC that controls this system is...
Replies
2
Views
121
I have an old PLC (circa 2007) consisting of Telemecanique/Modicon/Schneider Electric devices. The system has developed errors and unfortunately...
Replies
2
Views
177
Bisakah bapak untuk cara cepat mendownload data kerja dari komputer ke alat HMIG3U Schneider ? Terdiri atat apa saja ya dan bagaimana hubungan kan...
Replies
0
Views
52
Back
Top Bottom