hotwires Posted November 21, 2016 Report Share Posted November 21, 2016 Good evening ladies and gentlemen, I have 4- V430-J-TA24's, serial (RS232, 9600, 1, none) MODBUS, one as a master (MTU), and the other 3 as slaves (RTU). port 1 on each unit connects to it's respective radio modem. The MTU polls the 3 RTU's successfully and the cycle repeats. Here is my problem: how do I detect a comm failure on the slaves that will set a MB to clear my outputs and registers? The master reads a register from RTU1, here it can use the status message from the RHR #3 and use a compare if MI96 (rhr#3 status) = D#5 then ----[R] (MI100, the value displayed on MTU, fetched from RTU). Now on to RTU 3 and 4, they only have a MODBUS config FB follow by a SCAN_EX. How does the RTU know if updates cease? The registers and coils will just hold their last set values. My thought is having the master toggle a MB on/off in the slave, then somehow implementing logic in the slave to detect if MB being stuck in a 0 or 1 state for greater than a defined amount of time. this would trigger a bit that would zero out the coils in the slave. Please someone tell me there is an easier way. Also what is the reason that RS232 port 1 (RJ11) seems to be disabled while connected to a PC with the USB cable? Thanks! Link to comment Share on other sites More sharing options...
hotwires Posted November 22, 2016 Author Report Share Posted November 22, 2016 Problem #1 solved. In the MTU I side chained to the MODBUS function block (R/W mixed data in my case) a Memory Bit toggle bit (MB40 in my application). Each time the R/W function is called (periodically) the toggle MB changes states. I included this same toggle MB in my R/W mixed data exchange table (ie. Master: MB40 "RTU 4 toggle bit", Slave: MB40 "RTU 4 toggle bit", Length: 1, Direction: Write). Now to the slave which was blind to com failure: MB40 OFF Delay timer -----[P]-------------------------(T0)------ "timer 0, TE, 90 seconds, Alias: Off Delay Timer" | MB40 | -----[N]---- T0 MB42 "MB42 alias: Lost Com Flag" ----[/]--------------------------( )------- a pulse from each MB40 transition keeps T0 from expiring thus holding T0 (XIC) inverted contact open. If no MB40 transistion for greater than 90 seconds then T0 (XIC) inverted contact closes and LOST COM is signaled on the SLAVE (RTU 4) I saw the light, I saw the light..... BEDTIME Link to comment Share on other sites More sharing options...
Ofir Posted December 18, 2016 Report Share Posted December 18, 2016 Hi, The USB device port and the RS232 (port1) of the V430 are connected to the same serial channel. This means that only one can work at a time. I hope this is clear. Link to comment Share on other sites More sharing options...
Guest bazzi Posted December 20, 2016 Report Share Posted December 20, 2016 Nice. Exactly the fix I was looking for. Thank you. Link to comment Share on other sites More sharing options...
hotwires Posted December 25, 2016 Author Report Share Posted December 25, 2016 Ofir, Yes, I now understand the USB port is a serial convertor that overides COM 1 in the PLC. If Usb connection to PC and simulatneous use of local com is required an additional COM module is required. thanks Link to comment Share on other sites More sharing options...
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