easy one: Continuous timer for MSG block reads - Logix 500

TimD

Lifetime Supporting Member
Join Date
Aug 2007
Location
New Hampshire
Posts
235
Hello again. SoI need to read data from another controller every 60 seconds. I put in a TON and I get one read. I want to reset the same timer while triggering the MSG block at end of each cycle.

I know this is easy (not for me). Thanks!!!
 
The self-resetting timer is a very common way to get a "one shot" bit (the .DN bit) that occurs every so many seconds in a PLC program.

When you are using it to trigger a Message instruction, take into consideration how fast you trigger the Message versus the longest timeout value. You don't want to pile Messages into the execution buffer if the remote device is disconnected.

Since you are sending a message at a 60 second interval, you should be OK because the standard DH+/DH485/DF1 message timeout is 5 seconds and on Ethernet it's 23 seconds.

repeating_timer.png
 
Both, very excellent replies! I used them both. Thanks for the time-out info! I am using Ethernet reads.

Got it working like a champ. Solves a few issues for me.

Many Thanks again!!!
 
Consider executing the MSG command when data has changed. Takes some memory space and logic, but it can keep un-necessary traffic off of the communications highway.
 

Similar Topics

See picture. I want to add a rung (magenta) into the existing code. Can't figure out how to do this. I select a -||- , right? When I drag/drop...
Replies
21
Views
1,792
Hi All, On my site, the standard template for storing recipes in the PLC is to create a tag called PartRecipe which is an 2D array - for example...
Replies
4
Views
1,471
I would like to do change a kinetix drive, so i believe i just have to put the IP address in the new kinetix and just connect right? Do I need to...
Replies
1
Views
1,196
Hey all, I am trying to check in logix designer in emulator and I need to check the hmi alarms by toggling bits to activate an alarm . But...
Replies
4
Views
2,066
Good afternoon guys, I have a basic question on the bubble level in the picture attached. This is probably really easy, but I don't get it, haha...
Replies
11
Views
3,349
Back
Top Bottom