What is a buffer?

shoelesscraig

Member
Join Date
Apr 2009
Location
LA
Posts
382
Ok, I think I already know (and use them on a regular basis), but I am wondering what a "buffer" is...maybe an example of one?? I've seen that term all over the place on this site and others, but I've never really sure what is meant by it.
 
'Buffer' (in PLC's, computing, etc) generally refers to one of two possible definitions.

1) A temporary holding location for data, which holds a copy or amalgamation of the data. In communications for example, serially, you receive one byte at a time (technically one bit, but we don't look bit-by-bit). In order to assemble an entire message, you move the raw bytes into a separate memory area - a buffer. Once completely assembled, it is typical to move the entire contents of the buffer somewhere to act upon the message, freeing it up for the next incoming message.

2) A complete copy of a set of data, that is acted upon in a program. This is typical with the I/O buffering schemes that are used often on the Logix series processors. You copy all the physical inputs to internal locations in the PLC memory, and use the internal locations for your control process. Similarly, you drive internal tags as outputs, and then copy them at one time to the physical outputs.

There are other definitions, but those should cover most cases with PLC programming.
 
Exactly what I thought! Sorry for the newbie question, I have just never known what people meant by that term, but, this is something that I do all the time in my programming.
 

Similar Topics

Hi, is there a way to change the time and date in the plc so they appear right in the diagnostic buffer. Also am I right in thinking the error is...
Replies
1
Views
110
I've been developing a tester using a Micro850 in Connected Components Workbench and part of that tester requires me to scan a barcode every test...
Replies
11
Views
2,201
Does anyone have any recommendations on UPS or buffer modules that can handle power flickers? We don't need a system that can back up for an...
Replies
1
Views
982
Hello, I am using an S7-1200 with a Moxa N5250A to read data from a weigh scale, but occasionally the scale will send a couple of frames of data...
Replies
2
Views
1,618
I have a system that is using TCP sockets. There are 5 connections between the Ethernet card and the end devices (smart conveying system)...
Replies
0
Views
697
Back
Top Bottom