Title of Invention

A METHOD FOR UTILIZING A MEMORY DEVICE FOR A PLC

Abstract Certain exemplary embodiments comprise a method comprising a plurality of activities comprising: at a programmable logic controller comprising a memory device, receiving a request to create a data log that is adapted to receive data from a process; initializing the data log by writing to the data log a head marker code in the record type field of a first record and an invalid code in the record type field of a last record of the data log, the last record logically preceding and logically adjacent to the first record.
Full Text

Summary
[5] In certain exemplary embodiments, a replaceable memory cartridge can be used with a programmable logic controller. The memory cartridge can be adapted to store a data log. The data log can be initialized by writing a head marker code in the record type field of a first record and an invalid code in the record type field of a last record of the data log. The last record can be logically adjacent to the first record regardless of physical location. Fields of data log records can be filled with data sequentially. For example, responsive ' to collecting data to fill the first record, a head marker code can be written to the record type field of a second record, thereby automatically invalidating the second record. Data can be written to at least one field of the first record. The record type field of the first record can be overwritten with a code indicative of valid data.
Brief Description of the Drawings
[6] A wide variety of potential embodiments will be more readily understood
through the following detailed description of certain exemplary embodiments, with reference to the accompanying exemplary drawings in which: [7] FIG. 1 block diagram of an exemplary embodiment of a system 1000; [8] FIG. 2 is a block diagram of an exemplary embodiment of a data
structure 2000;
[9] FIG, 3 is a sequence of states of a plurality of records 3000; [10] FIG. 4 is a sequence of states of plurality of records 4000; [11] FIG. 5 is a flowchart of an exemplary embodiment of a method 5000; [12] FIG. 6 is a flowchart of an exemplary embodiment of a method 6000;
and [13] FIG. 7 is a block diagram of an exemplary embodiment of an
information device 7000.
Definitions
[14] When the following terms are used herein, the accompanying definitions apply:
[15] adapted to - made suitable or fit for a specific use or situation. [16] apparatus - an appliance or device for a particular purpose.

[17] activity - an action, act, step, and/or process or portion thereof.
[18] acquire - to obtain or gain possession of.
[19] acquiring - obtaining or gaining possession of.
[20] adapted to - made suitable or fit for a specific use or situation.
[21] adding - combining.
[22] addition - an act of accumulating something.
[23] additional - an act or process of adding.
[24] apparatus - an appliance or device for a particular purpose.
[25] associated - related to.
[26] automatically ~ performed via an information device in a manner
essentially independent of influence or control by a user. [27] can - is capable of, in at least some embodiments. [28] comprising - including but not limited to. [29] closest - logically nearest. [30] code - a system of symbols used to represent and/or indicate
something. Code values can be used to fill record fields such as, for
example, a record type field of a data log. [31] create - to cause to exist. [32] data - distinct pieces of information, usually formatted in a special or
predetermined way and/or organized to express concepts. [33] data log - an organized group of records comprising gathered
information.
[34] define - to establish the outline, form, or structure of. [35] definition - a specification. For example, a data log definition can
specify record formatting and/or a number of records. [36] detecting - the act of sensing or perceiving. [37] different - changed.
[38] extra - additional to a requested and/or required amount. [39] field - a storage space for data. Fields contain textual, numeric, date,
graphical, audio, video, and/or calculated data. Any text field has
properties comprising a fixed or variable length, a pre-defined display
format, and/or relatability to another field. [40] fill - introduce into; populate.

[41] first record - an initial record of a plurality of records. When a data log is created, the first record can comprise a code of "head marker" in the record type field.
[42] fully populated - a state wherein each of a plurality of tillable records comprises data.
[43] head marker code - a byte or set of bytes coded into a record type field, the head marker code indicative of a data log location of a next record to be populated with process data.
[44] identifying - recognizing or detecting.
[45] incrementing - changing a value to point to a next logical record of a plurality of records.
[46] information - numbers, characters, symbols etc., that are related to a subject.
[47] information device - any device capable of processing information,
such as any general purpose and/or special purpose computer, such as a personal computer, workstation, server, minicomputer, mainframe, supercomputer, computer terminal, laptop, wearable computer, and/or Personal Digital Assistant (PDA), mobile terminal, Bluetooth device, communicator, "smart" phone (such as a Handspring Treo-like device), messaging service (e.g., Blackberry) receiver, pager, facsimile, cellular telephone, a traditional telephone, telephonic device, a programmed microprocessor or microcontroller and/or peripheral integrated circuit elements, an ASIC or other integrated circuit, a hardware electronic logic circuit such as a discrete element circuit, and/or a programmable logic device such as a PLD, PLA, FPGA, or PAL, or the like, etc. In general any device on which resides a finite state machine capable of implementing at least a portion of a method, structure, and/or or graphical user interface described herein may be used as an information device. An information device can include well-known components such as one or more network interfaces, one or more processors, one or more memories containing instructions, and/or one or more input/output (I/O) devices, one or more user interfaces, etc.
[48] input/output (I/O) device - any sensory-oriented input and/or output device, such as an audio, visual, haptic, olfactory, and/or taste-oriented

device, including, for example, a monitor, display, projector, overhead
display, keyboard, keypad, mouse, trackball, joystick, gamepad, wheel,
touchpad, touch panel, pointing device, microphone, speaker, video
camera, camera, scanner, printer, haptic device, vibrator, tactile
simulator, and/or tactile pad, potentially including a port to which an
I/O device can be attached or connected. ;
[49] initializing - setting to a default value or set of values.
[50] instructions - directions adapted to perform a particular operation or function.
[51] interact - receiving alerts or notifications, revising or switching
programs, examining control algorithms, and/or modifying graphics displays, etc.
[52] invalid - faulty and/or not valid.
[53] invalid code - a byte or set of bytes coded into a record type field indicating that a record comprising the record type field is invalid.
[54] invalidating - an act of determining information faulty or not valid.
[55] known - recognized or understood.
[56] last - a final item of a plurality of items.
[57] logical - a sequential placement relative to other elements and/or
identification of that sequential placement. In a plurality of records, the sequential identification can be considered as circular in that a physically first record of the plurality of records can logically follow a physically last record of the plurality of records.
[58] logically - related to a sequential placement relative to other elements and/or identification of that sequential placement.
[59] machine readable medium - a physical structure from which a machine can obtain data and/or information. Examples include a memory, punch cards, etc.
[60] marked - denoted by a discernable symbol.
[61] marking - an act of denoting by a discernable symbol.
[62] may - is allowed to, in at least some embodiments.
[63] memory - a device capable of storing analog or digital information, for example, a non-volatile memory, volatile memory, Random Access Memory, RAM, Read Only Memory, ROM, flash memory, magnetic

media, a hard disk, a floppy disk, a magnetic tape, an optical media, an optical disk, a compact disk, a CD, a digital versatile disk, a DVD, and/or a raid array, etc. The memory can be coupled to a processor and can store instructions adapted to be executed by processor according to an embodiment disclosed herein.
[64] memory cartridge - a non-destructively, repeatedly removable, and/or replaceable memory device.
[65] memory device - any device capable of storing analog or digital information, for example, a non-volatile memory, volatile memory, Random Access Memory, RAM, Read Only Memory, ROM, flash memory, magnetic media, a hard disk, a floppy disk, a magnetic tape,
an optical media, an optical disk, a compact disk, a CD, a digital
»
versatile disk, a DVD, and/or a raid array, etc. The memory device can be coupled to a processor and can store instructions adapted to be executed by the processor according to an embodiment disclosed herein.
[66] method - a process, procedure, and/or collection of related activities for accomplishing something.
[67] MicroWin - PLC data management software adapted to download, classify, and/or archive information from sensors and/or instruments.
[68] moving - transferring from one location to another.
[69] near [or nearest] - logically closest.
[70] network - a communicatively coupled plurality of nodes. A network can be a public, private, circuit-switched, packet-switched, virtual, radio, telephone, cellular, cable, DSL, satellite, microwave, AC power, twisted pair, ethernet, token ring, LAN, WAN, Internet, intranet, wireless, Wi-Fi, BlueTooth, Airport, 802.1 la, 802.1 lb, 802.1 lg, and/or any equivalents thereof, etc.
[71] network interface - any device, system, or subsystem capable of
coupling an information device to a network. For example, a network interface can be a telephone, cellular phone, cellular modem, telephone data modem, fax modem, wireless transceiver, ethfernet card, cable modem, digital subscriber line interface, bridge, hub, router, or other similar device.

[72] new - having been made or coming into existence relatively recently as compared to something else.
[73] newest - most temporally recent.
[74] number-quantity.
[75] oldest - occurring first in time.
[76] organizing - placing and/or arranging in an order.
[77] organization - a structural state or manner.
[78] plurality - the state of being plural and/or more than one.
[79] power interruption - a cessation and/or substantial aberration of a flow of electricity providing energy to a device and/or system.
[80] preceding - taking place at a prior time.
[81] predetermined - established in advance.
[82] proceeding - to go forward or onward.
[83] process - an organized activity. Examples of a process comprise: materials conveying, materials pumping, materials manufacturing, heating systems, ventilating systems, air conditioning systems, chemical operations, mining, machining, packaging, and/or materials distribution, etc. A process can be monitored and/or controlled by a SCADA system.
[84] processor - a device and/or set of machine-readable instructions for performing one or more predetermined tasks. A processor can comprise any one or a combination of hardware, firmware, and/or software. A processor can utilize mechanical, pneumatic, hydraulic, electrical, magnetic, optical, informational, chemical, and/or biological principles, signals, and/or inputs to perform the task(s). In certain embodiments, a processor can act upon information by manipulating, analyzing, modifying, converting, transmitting the information for use by an executable procedure and/or an information device, and/or routing the information to an output device. A processor can function as a central processing unit, local controller, remote controller, parallel controller, and/or distributed controller, etc. Unless stated otherwise, the processor can be a general-purpose device, such as a microcontroller and/or a microprocessor, such the Pentium IV series of microprocessor manufactured by the Intel Corporation of Santa Clara,

California. In certain embodiments, the processor can be dedicated purpose device, such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA) that has been designed to implement in its hardware and/or firmware at least a part of an embodiment disclosed herein.
[85] programmable logic controller (PLC) - a digitally operating electronic apparatus which uses a programmable memory for the internal storage of instructions for implementing specific functions such as logic, sequencing, timing, counting and arithmetic to control through digital or analog input/output modules, various types cf machines or processes. See NEMA Standard ICS 3-1978, Part ICS3-
304(5).
i
[86] receive - acquire or obtain something.
[87] record type - a field in a data log record. Exemplary values for the record type field comprise "valid," "invalid," and/or "head marker," etc.
[88] reached - arrived at.
[89] read - obtain from a memory device.
[90] reading back - obtain from a memory device temporally soon after writing to the memory device.
[91] receiving - obtaining and/or acquiring.
[92] record - a collection of data elements. A set of records constitutes a file. For example, a personnel file might contain records that have data elements stored in three fields: a name field, an address field, and a phone number field. A group of records forms a database.
[93] remove - to do away with and/or eliminate.
[94] request - a message asking for something.
[95] responsive - reacting to an influence and/or impetus.
[96] set - a related plurality.
[97] store - to place, hold, and/or retain data, typically in a memory.
[98] stored - placed in a memory device.
[99] substantially - to a great extent or degree.

[100] system - a collection of mechanisms, devices, data, and/or
instructions, the collection designed to perform one or more specific functions.
[101] upload - to transfer from a first information device to a second information device.
[102] uploaded - transferred from a first information device to a second information device.
[103] uploading - transferring from a first information and/or memory device to a second information and/or memory device.
[104] user - a person interfacing with an information device.
[105] user interface - any device for rendering information to a user and/or requesting information from the user. A user interface includes at least one of textual, graphical, audio, video, animation, and/or haptic elements. A textual element can be provided, for example, by a printer, monitor, display, projector, etc. A graphical element can be provided, for example, via a monitor, display, projector, and/or visual indication device, such as a light, flag, beacon, etc. An audio element can be provided, for example, via a speaker, microphone, and/or other sound generating and/or receiving device. A video element or animation element can be provided, for example, via a monitor, display, projector, and/or other visual device. A haptic element can be provided, for example, via a very low frequency speaker, vibrator, tactile stimulator, tactile pad, simulator, keyboard, keypad, mouse, trackball, joystick, gamepad, wheel, touchpad, touch panel, pointing device, and/or other haptic device, etc. A user interface can include one or more textual elements such as, for example, one or more letters, number, symbols, etc. A user interface can include one or more graphical elements such as, for example, an image, photograph, drawing, icon, window, title bar, panel, sheet, tab, drawer, matrix, table, form, calendar, outline view, frame, dialog box, static text, text box, list, pick list, pop-up list, pull-down list, menu, tool bar, dock, check box, radio button, hyperlink, browser, button, control, palette, preview panel, color wheel, dial, slider, scroll bar, cursor, status bar, stepper, and/or progress indicator, etc. A textual and/or graphical

element can be used for selecting, programming, adjusting, changing, specifying, etc. an appearance, background color, background style, border style, border thickness, foreground color, font, font style, font size, alignment, line spacing, indent, maximum data length, validation, query, cursor type, pointer type, autosizing, position, and/or dimension, etc. A user interface can include one or more audio elements such as, for example, a volume control, pitch control, speed control, voice selector, and/or one or more elements for controlling audio play, speed, pause, fast forward, reverse, etc. A user interface can include one or more video elements such as, for example, elements controlling video play, speed, pause, fast forward, reverse, zoom-in, zoom-out, rotate, and/or tilt, etc. A user interface can include one or more animation elements such as, for example, elements controlling animation play, pause, fast forward, reverse, zoom-in, zoom-out, rotate, tilt, color, intensity, speed, frequency, appearance, etc. A user interface can include one or more haptic elements such as, for example, elements utilizing tactile stimulus, force, pressure, vibration, motion, displacement, temperature, etc.
[ 106] valid - correct and/or sound.
[107] valid code - a byte or set of bytes coded into a record type field indicating that a record comprising the record type field is valid.
[ 108] verify - to test accuracy.
[109] write - a coding of data on a memory device.
[110] writing - placing data in a memory device.
[Ill] written - placed in a memory device (e.g. data).
Detailed Description
[112] Certain exemplary embodiments comprise a method comprising a plurality of activities comprising: at a programmable logic controller comprising a memory device, receiving a request to create a data log that is adapted to : receive data from a process; initializing the data log by writing to the data log a head marker code in the record type field of a first record and an invalid code in the record type field of a last record of the data log, the last record logically preceding and logically adjacent to the first record.

[113] FIG-1 is a block diagram of an exemplary embodiment of a system 1000. As illustrated, system 1000 can comprise a programmable logic controller (PLC) 1100. System 1000 can comprise a machine and/or process monitorable and/or controllable by PLC 1100. System 1000 can further comprise hardware and/or software adaptable to allow a user to communicate with PLC 1100. PLC 1100 can be used to monitor and/or control an industrial plant or processing system, such as a processing system 1600. PLC 1100 can be communicatively coupled to processing system 1600 via an I/O interface 1400. Processing system 1600 can comprise a machine tool, a robot, a chemical reactor, a stove, a furnace, an assembly machine, a packaging machine, and/or piece of conveying equipment, and/or associated instrumentation, sensors, relays, indicators, controllers, human interfaces, and/or actuators, etc. For example, PLC 1100 can monitor and/or control an alarms indicator, relay, sensor, another controller, and/or a motion device, such as a motion controller, such as a stepper motor controller, a servo controller, an actuator controller, etc.; a motion drive, such as a stepper drive, servo drive, etc.; and/or an actuator, such as a stepper motor, servomotor, linear motor, motor, ball screw, servo valve, hydraulic actuator, pneumatic valve, etc.
[114] PLC 1100 can include a central processing unit (CPU) via which instructions are processed and appropriate control signals determined. PLC 1100 can further comprise and/or be coupled to an input-output (I/O) device 1450. I/O device 1450 can render information obtained from PLC 1100. The user also can interact with PLC 1100 via the I/O device.
[115] A memory device, such as a memory cartridge 1300 can be a part of PLC
1100 and/or couplable to PLC 1100 either directly or via a network. In certain exemplary embodiments, memory cartridge 1300 can be a insertable into and/or connectable to PLC 1100. Memory cartridge 1300 can provide storage for instructions and/or data usable by a main processor 1200 of PLC 1100. PLC 1100 can comprise a memory such as memory 1350. Memory 1350 can provide storage for instructions, recipes, and/or storage protocols, etc.

[116] In an exemplary embodiment, PLC 1100 can be couplable to one or more of a plurality of information devices, such as an information device 1700 via a network 1500. PLC 1100 can be communicable with information device 1700 via a network interface device 1475. Via network interface device 1475 the user to communicate with PLC 1100 while located remotely from the PLC 1100.
[117] Information device 1700 can comprise user interface components such as a visual output device such as a cathode ray tube. Information device 1700 can comprise any common input device such as a keyboard, mouse, touch screen, and/or digitizing pad, etc. Via information device 1700, the user can interact with PLC 1100. Utilizing information device 1700, the user can monitor a process, connectable to and/or controllable by PLC 1100. The user can also interact with PLC 1100 via information device 1700.
*
[118] Network 1500 can allow the user to interact with PLC 1100 from a location hundreds or even thousands of miles away from PLC 1100. Network 1500 can be usable to enhance availability and reduce programming, managerial, and/or maintenance costs attributable to PLC 1100 and/or the monitoring and/or control of processing system 1600. Processing system 1600 can comprise a plurality of process elements.
[119] FIG, 2 is a block diagram of an exemplary embodiment of a data structure
2000. An exemplary embodiment of data structure 2000 can comprise a file ; 2100. File 2100 can be storable on a memory device, such as the memory cartridge. File 2100 can comprise a plurality of records, such as record 2200 and record 2300, which comprise a plurality of data. File 2100 can define a plurality of fields that can contain and/or store the data of the records of file 2100. Record 2200 and record 2300 can comprise temporal fields such as a date field and/or a time field. Record 2200 and record 2300 can comprise data such as process data. Record 2200 and record 2300 can comprise a checksum field for a value adapted to improve information transfer and/or recording reliability- Record 2200 and record 2300 can comprise a record type. In

certain exemplary embodiments the record type can comprise values such as a code indicative of valid data, such as 01. The record type can comprise values such as a code indicative of invalid data, such as 00. The record type can comprise a code indicative of a head marker, such as 02. The head marker can be indicative of a record that will receive the data of a next record to be written to file 2100. The head marker can be indicative of a starting point for uploading data from file 2100 to an information device. In certain exemplary embodiments, record 2300 can be logically adjacent to record 2200 even if record 2200 and record 2300 are not physically adjacent.
[120] FIG. 3 is a sequence of states of a plurality of records 3000. Plurality of
records 3000 can comprise records in state 3100 at a first point in time. At a later second time, records 3000 can comprise records in state 3200. At a still later third time, records 3000 can comprise records in state 3300. Progressing from state 3100 to state 3200 to state 3300 can be indicative of a process for writing data to at least one field of Record 2. At state 3100, plurality of records 3000 can comprise Record 1, which comprises a record type code indicative that Record 1 comprises valid data. At state 3100, Record 2 comprises a record type code indicative of a head marker - thereby indicating that Record 2 comprises invalid data. At state 3100, Record 3 and records between Record 3 and Record "x-1" can comprise an undefined record type. The undefined record type can be used to initialize the plurality of records. The undefined record type can automatically indicate that Record 3 and records between Record 3 and Record "x-1" do not comprise valid data. At state 3100, Record x can comprise an invalid record type code. Record x can be considered to be logically adjacent to Record 1 in a logically circular data log. If an invalid code is found in the record type field in Record x, records logically between Record x and the first record comprising a head marker code in the record type field - Record 2 in this embodiment - are valid.
[121] Records 3000 can comprise records in state 3200 at a second point in time. At state 3200, Record 1 can comprise a record type code indicative of the record comprising valid data. At state 3200, Record 2 can comprise a record type code indicative of a head marker - thereby indicating that record 2 comprises

invalid data. At state 3200 Record 3, can comprise a record type code indicative of a head marker - thereby indicating that record 3 comprises invalid data. Placing a record type code of head marker in record 3 can be a step to allow record 2 to be overwritten with valid data while providing that at least one record of the plurality of records in this embodiment comprises a head marker code in the record type field. Should power fail with the plurality of records in state 3200, a scan of the records would reveal two head marker codes. The head marker code in record 2 can be considered the valid head marker. The head marker code in record 3 can either be ignored or overwritten with a record type code of invalid. In this way, one record of data might be lost in event of a power failure without affecting valid records, such as Record 1, stored in records 3000. At state 3200, a plurality of records between Record 3 and Record "x-1 can comprise an undefined record type. The undefined record type can be used to initialize the plurality of records. The undefined record type can automatically indicate that records between Record 3 and Record "x-1" do not comprise valid data. At state 3200, Record x can comprise an invalid record type code.
[122] Records 3000 can comprise records in state 3300 at a third point in time. At state 3300, Record 1 can comprise a record type code indicative of the record comprising valid data. At state 3300, Record 2 can comprise a record type code indicative of valid - thereby indicating that valid data has been written to Record 2 during the time interval between state 3200 and state 3300. At state 3300, Record 3 can comprise a record type code indicative of a head marker -thereby indicating that Record 3 comprises invalid data. At state 3300, a plurality of records following Record 3 and continuing through Record "x-1 can comprise an undefined record type. The undefined record type can be used to initialize the plurality of records. The undefined record type can automatically indicate that records between Record 3 and Record "xrl" do not comprise valid data. At state 3200, Record x can comprise an invalid record type code.
[123] Overwriting the record type of head marker in Record 2 between state 3200 and state 3300 can provide a degree of fault tolerance to records 3000. If

power is lost to the programmable logic controller between state 3200 and state 3300 before the head marker record type code in Record 2 is overwritten, only the data that would have been written to Record 2 will be lost. Remaining records comprising valid data, such as Record 1 can still be read from records 3000.
[124] A sequence of states such as state 3100, state 3200, and state 3300 can be
iteratively continued until and/or beyond a state wherein all records comprise data except for a record with a record type code of a head marker. If continued beyond the state wherein all records comprise data except for a record with a record type code of a head marker, the plurality of records can be circular in the sense that newest records can progressively overwrite oldest record in the plurality of records - thereby successively advancing the record that comprises a head marker code in the record type field.
[125] FIG. 4 is a sequence of states of plurality of records 4000. Plurality of records 4000 can be described by a series of non-sequential states such as state 4100, state 4200, state 4300, state 4400, and state 4500. In certain exemplary embodiments, a set of pointers can be used. Using pointers can improve access and write times related to plurality of records 4000. Pointers can provide a programmable logic controller with relatively efficient access to an absolute or relative location of plurality of records 4000 in a particular memory device associated with a programmable logic controller. Pointers can comprise a beginning pointer, ending pointer, head pointer, and/or tail pointer, etc.
[126] The beginning pointer can indicate a location of a first physical and/or logical record of plurality of records 4000. Once defined, the beginning pointer can remain set so long as plurality of records 4000 remains defined without change in the particular memory device. The end pointer can indicate a location of a last physical and/or logical record of plurality of records 4000. Once defined, the ending pointer can remain set so long as plurality of records 4000 remains defined without change in the particular memory device.

[127] The head pointer of plurality of records 4000 can be used to point to a record comprising a code indicative of a head marker record type. The record pointed to by the head pointer can be a next location wherein data from sensors and/or instruments associated with a process can be stored. The head pointer and/or head marker can be advanced by one logical position, in pointing to a record of plurality of records 4000, each time data is written to fill a next record.
[128] The tail pointer of plurality of records 4000 can be used to point to a record that is temporally oldest among plurality of records 4000. Alternatively when plurality of records 4000 is first defined, the tail pointer can indicate a
logically first record of plurality of records 4000. The tail pointer can be
i
advanced by one logical position, in pointing to a record of plurality of records 4000, each time data is written to fill a next record once all records comprise data. Certain exemplary embodiments do not move the tail pointer until all records comprise valid data and the programmable logic controller begins to overwrite previous records,.
[129] At state 4100, plurality of records 4000 can be initially defined and as
illustrated does not comprise process data in any of plurality of records 4000. The beginning pointer, the head pointer, and the tail pointer, if pointers are used, can each be defined to point to a first record of a logically contiguous plurality of records 4000. A record type code of "02" can be stored in the first record, which can be indicative of a head marker in the first record. The end pointer, if used, can be indicative of a last logical record in plurality of records 4000. A record type code of "00" can be stored in the last record, which can be indicative of an invalid record being present in the last logical record. In certain exemplary embodiments a number of valid records of plurality of records 4000 can be determined by a logical number of records between the record comprising the head marker code in the record type field and a nearest logically preceding record comprising an invalid code in the record type field. At state 4100, if the invalid code is in a cell logically immediately preceding the record comprising the head marker code in the record type field, plurality of records 4000 might not comprise any valid records.

[130] At state 4200, plurality of records 4000 can be fully populated with process data. At state 4200 the beginning pointer, if used, can continue to indicate a physically and/or logically first record of plurality of records 4000. The ending pointer, if used, can continue to indicate a physically and/or logically last record of plurality of records 4000. The head pointer, if used, can point at a next location - indicated as the third of the list of six records illustrated in this particular embodiment - wherein process data can be written. The record pointed to by the head pointer comprises a code of "02," which can be indicative of a head marker in the record type field of the record, thereby automatically invalidating the record comprising the head maker code. Since plurality of records 4000 comprises no invalid codes in the record type fields, plurality of records 4000 can be considered as fully populated with data with the exception of the automatically invalid record comprising the head marker code. The tail pointer, if used, can mark a location - indicated as the fourth of the list of six records illustrated in this particular embodiment - wherein an oldest present record is written. In the particular embodiment illustrated in state 4200, all records except for the record associated with the head marker can comprise a code of "01" in the respective record type field, which can be indicative of a valid record.
[131] As state 4300, plurality of records 4000 can be fully populated with process data. At state 4300 the beginning pointer, if used, can continue to indicate a physically and/or logically first record of plurality of records 4000. The ending pointer, if used, can continue to indicate a physically and/or logically last record of plurality of records 4000. The head pointer can point at a next location (indicated as the sixth of the list of six records illustrated in this particular embodiment) wherein process data can be written. The record pointed to by the head pointer comprises a code of "02," which can be indicative of a head marker in the record type field of the record. The tail marker can mark a location (indicated as the first of the list of six records illustrated in this particular embodiment) wherein an oldest present record is written. In the particular embodiment illustrated in state 4300, all records except for the record associated with the head marker can comprise a code of

"01" in the respective record type field, which can be indicative of valid records. In a circular data log, when a request is received to write a next record to the data log, the head marker code can be written to the first logical record of plurality of records 4000, thereby invalidating the first logical record.
[132] At state 4400, plurality of records 4000 can comprise one or more invalid
records. An invalid record can be determined by locating a value of "00" in a record type field of plurality of records 4000 (such as the value illustrated in the second cell of the plurality of records in the illustrated embodiment). The invalid record code can provide a user with information indicative that a particular record is invalid. For example, data denoted by the record type as invalid can be excluded from statistical and/or graphical analyses of plurality of records 4000.
[133] At state 4400, plurality of records 4000 can be in a state following an
uploading of plurality of records 4000 with instructions to erase plurality of records 4000 after uploading. In certain exemplary embodiments, state 4400 can occur as a result of a power failure. In certain exemplary embodiments, state 4400 can occur as a result of a memory cartridge of an unknown state being placed in a programmable logic controller. An initial search can be made of the record type field to locate the record comprising a head marker code in the record type field - in this case in the fourth record from the logical beginning of plurality of records 4000. The head pointer, if used, can be assigned to point to this record. A search of the record type fields at state 4400 reveals two invalid record codes. The closest invalid record code preceding the record comprising the head marker code can indicate that no valid records are available and that the data log is effectively empty. Responsive to locating the invalid record code in the third record from the logical beginning of plurality of records 4000, the tail pointer, if used, can be set to point to the same record as pointed to by the head pointer. In certain exemplary embodiments, if a data log is to be erased after an uploading operation has been completed, an invalid record code can be placed in a record immediately preceding the record comprising the head marker. The tail

pointer, if used, can then be set to point to the record comprising the head marker.
[134] At state 4500, plurality of records 4000 can comprise a single invalid code in the second record from the logical beginning of prurality of records 4000. After adding a valid record to the third cell, the tail pointer, if used, can be assigned to point to the valid record as the oldest valid record in plurality of records 4000. The head marker code can be found, in this particular embodiment, in the record type field of the fourth record.
[135] At state 4600, plurality of records 4000 can be partially filled. The particular embodiment illustrated indicates four valid records, one invalid record, and a head marker in the record type fields of plurality of records 4000. The tail pointer, if used, can be pointed at an oldest record, which happens to be in a logical location immediately following a record comprising a record type code of invalid. A next group of process data to be recorded to a record can be placed in the cell indicated by the head pointer, if used, once the head pointer and head marker have been incremented. Since the head pointer and the tail pointer, if used, do not point to consecutively numbered records, data can be added to a next record without incrementing the tail pointer.
[136] FIG. 5 is a flowchart of an exemplary embodiment of a method 5000 for using the memory device. In certain exemplary embodiments, at activity 5100, a request and/or definition can be received at a programmable logic controller for creating a data log file. The request can be from a user of the programmable logic controller. The request can be initiated by a user of the programmable logic controller. The user can request data collection from a plant and/or process utilizing the programmable logic controller. Responsive to the user request, a memory device, such as a memory cartridge, can be initialized to obtain and/or collect data requested by the user. The amount of collected data can be user-specified in any of numerous fashions, such as an amount of time over which to collect data, an amount of memory to fill, a number of data records to collect, etc. In certain exemplary embodiments a data log definition can be received at a programmable logic controller to create

a data log file. The data log definition can be generated responsive to the user request and/or can be automatically generated by the programmable logic controller.
[137] At activity 5200, a block of memory of a memory device can be allocated for the data log. The block of memory can be allocated responsive to a user request and/or automatically. Memory can be allocated to comprise a predetermined plurality of records. The memory device can be organized to hold the predetermined plurality of records. Each record can comprise a record type field, which is a field that indicates whether the record is a valid record, an invalid record, and/or a "head" record (indicated by a "head marker" code in the record type field). In certain exemplary embodiments, records can comprise a date stamp, time stamp, identifier, process unit identifier, machine stamp, sensor number, and actuator number, and/or data field, etc. The block of memory can be allocated to comprise one record more than desired for data storage in order to accommodate an automatically invalid record comprising a code indicative of a head maker record type. Searching the block of memory can identify an invalid record and/or a valid record.
[138] In an exemplary embodiment, the data log file can be written in a logically
circular buffer; The logically circular buffer can be characterized by data log records written to contiguous memory segments, the buffer commencing at a beginning memory segment. The logically circular buffer can be further characterized by the writing of the next data log record at the beginning of the buffer when the buffer is full The next data log record can overwrite an oldest data log record written in the logically circular buffer. For example, if the buffer is full, the next data log record to be written can be written at the beginning of the buffer, thereby overwriting the data log record that was previously at the beginning of the buffer. The logically circular buffer can comprise a circular buffer wherein memory segments are physically contiguous to each other.
[139] At activity 5300, a the plurality of records can be initialized. For example, the first record can be initialized by placing a code indicative of a head marker in

the record type field - thereby automatically invalidating the first record. A last record of the plurality of records can be initialized by placing a code indicative of an invalid record in the record type field- The predetermined plurality of records can be logically circular in that the last record can be logically adjacent to the first record.
[140] If pointers or used, activity 5300 can comprise defining pointers. Pointers associated with the plurality of records can comprise a beginning pointer, ending pointer, head pointer, and/or tail pointer, etc. Pointers can be used to quickly and efficiently direct an information device to a record to be written to and/or uploaded from. Upon an initial creation of the plurality of records, the beginning record pointer, the head pointer, and/or the tail pointer can be associated with a first record in a logical sequence of the plurality of records. The ending record pointer can be initially associated with a last record in the logical sequence of the plurality of records.
[141] At activity 5400, an instruction and/or directive can be executed to add plant and/or process data to the plurality of records. The instruction and/or directive can be a part of a plurality of machine readable instructions resident on a programmable logic controller. The instruction can comprise obtaining and or formatting data to fill at least one of the plurality of records. Responsive to an instruction to add data to the first record, the code indicative of the head marker can be written to the record type field of a second record logically incremented from the first record.
[142] Data can be acquired from the plant and/or process to fill at least one field of the first record. Once filled with data the first record can be considered as a most recently filled record. The first record can be the first record read in an uploading event, should such an event occur before new data is added to another of the plurality of records. If pointers are used, pointers can be incremented responsive to data added to the first record. The head pointer can be incremented to be associated with the second record. If the head pointer and the tail pointer are equal after the head pointer has been advanced to point

to the second record, then the tail pointer can be changed to point at a third record that can be the next record logically after the second record.
[143] To verify that a proper writing of data has occurred, the record types of the
first and/or second record can be read back by the programmable logic
controller. Verifying that the first record comprises a non-head marker record
type and that the second record comprises a head marker record type can
verify that a write operation adding data to the plurality of records has been
successfully completed. In certain exemplary embodiments, the
programmable logic controller can read a plurality of record type fields from
the plurality of records to assure the presence of a single head marker after the
power failure via an error checking technique. The error checking technique
can be an ones complement method, a Fletcher checksum method, a cyclic
redundancy check method, and/or extended-precision checksum method, etc.
The error checking technique, possibly coupled with knowledge of the
position of the records in question and/or the position and/or direction that
records are added to the memory device, can identify which record is the most
■ recent, and thereby which head marker is erroneous if more than one head
marker is detected.
[144] In an operative embodiment, the PLC can disable and/or eliminate the older, duplicate head marker, or possibly convert the older, duplicate head marker to a non-head marker resulting in the presence of a single head marker in the data log file, that single head marker corresponding to a record which will receive the next data from the plant and/or process. Changing the value of a binary bit can disable the older, duplicate head marker. Alternatively, the PLC can inspect and test a marker, such as a time stamp marker, on each of the data log records, to determine the most recently written record. In certain operative embodiments a time to write a record to a data log can be measured as being between two and three cache writing cycles to a serial eeprom memory device. The time to write the record can be less than 40 ms.
[145] At activity 5500, instructions can be executed to upload records from the
plurality of records. The instructions can be from a user and/or automatically

generated by the programmable logic controller. The instructions can be based upon a scheduled time, scheduled amount of data collected, and/or a specific user request, etc. The instructions can comprise a setting corresponding to an instruction to erase or to not erase the data log from the memory device after the data log is uploaded. The instruction to erase or not erase the data log file subsequent to reading the data log file can allow a user to more effectively manage data storage and retrieval on the memory device. Erasing the data log file can provide an assurance that no data log record on the memory device has been previously read. Data log records can be uploaded beginning with a record logically preceding the record pointed to by the head pointer and comprising the code indicative of the head marker data type. Uploading data can continue on a record by record basis beginning with a newest record until the oldest record is reached, which will be associated with the tail pointer if pointers are used. The tail pointer, if used, can point to an oldest record in the plurality of records once data has been provided to at least one record of the plurality of records.
[146] In certain operative embodiments, a new record addition can be requested during activity 5500. Responsive to the new record addition, a record type code of invalid can be assigned to an uploaded record that comprises data associated with the new record addition request. The new record can be added by writing a head marker code to a record type field of a second record of the plurality of records responsive to the request to add the new record. Data can be written to at least one field of the first record of the plurality of records. A valid code can be written to the record type field of the first record. The new record can be uploaded as a valid record during a subsequent execution of activity 5500.
[147] Activity 5500 can comprise, responsive to instructions to remove uploaded
records from the plurality of records, record type fields and/or pointers can be reset. In certain exemplary embodiments, the record immediately preceding the head marker code can be assigned an invalid code as a record type. The tail pointer, if used, can then be set equal to the head pointer, if used, and hence to point to a record logically incremented by one from the closest

preceding record comprising and invalid code. Thus, previously stored records from the plurality of records can be effectively erased by only changing a small number, such as one or two, record type fields in the plurality of records.
[148] FIG. 6 is a flowchart of an exemplary embodiment of a method 6000. At activity 6100, a programmable logic controller can detect a memory device. The programmable logic controller can determine that the organization of the memory device is unknown to the programmable controller. The programmable logic controller can detect the memory device after returning to operation after a power failure. In certain exemplary embodiments, the memory device can be a memory cartridge newly placed and/or replaced in the programmable logic controller by a user. A replaceable memory cartridge can be used to transfer programs and/or recipes between programmable logic controllers. Data cartridges can be changed without losing data comprised and/or stored on the memory cartridge. Data cartridges can be changed to upload data from the data log to a customer information device. Changing a data cartridge to upload data can allow a customer to transfer data from the data log without having the programmable logic controller connected to a same network as the customer information device.
[149] At activity 6200, a data log can be located on the memory device. The data log can comprise a plurality of records. Each record can comprise a record type field. A code can be placed in the record type field indicative of a head marker, invalid data, undefined data, and/or valid data, etc.
r
[150] At activity 6300, the data log can be searched for records comprising a head marker code in the record type field. If no record comprises a head marker code, a default record such as a first logical record can be assigned the head marker code. In certain exemplary embodiments if a plurality of records comprise head marker codes, all head marker codes can be changed to invalid codes except a logically first record comprising the head marker code. In certain exemplary embodiments, the logically first record comprising the head marker code can be pointed to as the next record to receive plant and/or

process data. The logically first record can be automatically invalidated. In certain exemplary embodiments, the logically first record can be adapted to receive plant and/or process data without changing record type fields of other records comprising head marker codes. In certain exemplary embodiments, a head pointer can be defined that improves access to the logically first record by the programmable logic controller. Activity 6300 can assure that plant and/or process data is stored at a proper location in the data log.
[151] At activity 6400, the data log can be searched for a record comprising an
invalid code. The search can comprise scanning the record type field of each record. A record that comprises an invalid code can be found as a result of searching the records. If more than one record comprises the invalid code, a closest record logically preceding the record comprising the head marker can be found. If any records exist between the record comprising the invalid code and the record comprising the head marker, those records can be considered to comprise valid data. If an invalid code is found and the data log comprises valid data, an oldest record can be a record logically following the closest record found in activity 6300. In certain exemplary embodiments a tail pointer, if used, can be defined to point to the oldest valid record.
[152] If no records comprise an invalid code for a record type, all records except the record comprising the head marker can be considered to comprise valid data. The oldest record can be a record immediately following the record comprising the head marker. If pointers are used, the tail pointer can be defined to point to the record immediately following the record comprising the head marker.
[153] FIG. 7 is a block diagram of an exemplary embodiment of an information device 7000, which in certain operative embodiments can comprise, for example, information device 1700 of FIG-1. Information device 7000 can comprise any of numerous well-known components, such as for example, one or more network interfaces 7100, one or more processors 7200, one or more memories 7300 containing instructions 7400, one or more input/output (I/O)

devices 7500, and/or one or more user interfaces 7600 coupled to I/O device 7500, etc.
[154] In certain exemplary embodiments, via one or more user interfaces 7600, such as a graphical user interface, a user can view a rendering of information related to defining, storing, and/or uploading data from a data log.
[155] Still other embodiments will become readily apparent to those skilled in this art from reading the above-recited detailed description and drawings of certain exemplary embodiments. It should be understood that numerous variations, modifications, and additional embodiments are possible, and accordingly, all such variations, modifications, and embodiments are to be regarded as being within the spirit and scope of this application. For example, regardless of the content of any portion (e.g., title, field, background, summary, abstract, drawing figure, etc.) of this application, unless clearly specified to the contrary, there is no requirement for the inclusion in any claim herein or of any application claiming priority hereto of any particular described or illustrated activity or element, any particular sequence of such activities, or any particular interrelationship of such elements. Moreover, any activity can be repeated, any activity can be performed by multiple entities, and/or any element can be duplicated. Further, any activity or element can be excluded, the sequence of activities can vary, and/or the interrelationship of elements can vary. Accordingly, the descriptions and drawings are to be regarded as illustrative in nature, and not as restrictive. Moreover, when any number or range is described herein, unless clearly stated otherwise, that number or range is approximate. When any range is described herein, unless clearly stated otherwise, that range includes all values therein and all subranges therein. Any information in any material (e.g., a United States patent, United States patent application, book, article, etc.) that has been incorporated by reference herein, is only incorporated by reference to the extent that no conflict exists between such information and the other statements and drawings set forth herein. In the event of such conflict, including a conflict that would render invalid any claim herein or seeking priority hereto, then any such conflicting

information in such incorporated by reference material is specifically not incorporated by reference herein.







What is claimed is:
1. A method comprising a plurality of activities comprising:
at a programmable logic controller comprising a memory device, receiving a request to create a data log comprising a predetermined plurality of records, the data log adapted to receive data from a process, each record comprising a record type field;
initializing the data log by only writing to the data log a head marker code in the record type field of a first record and an invalid code in the record type field of a last record of the predetermined plurality of records, the last record logically preceding and adjacent to the first record; and
automatically invalidating the first record.
2. The method of claim 1, further comprising:
organizing the memory device to hold the predetermined plurality of records plus an additional record.
3. The method of claim 1, further comprising:
identifying an invalid record via the record type field.
4. The method of claim 1, further comprising:
identifying a valid record via the record type field.
5. The method of claim 1, further comprising:
writing a head marker code to a record type field of a second record of the plurality of records responsive to acquiring data to fill the first record.
6. The method of claim 1, further comprising:
overwriting an oldest record of the predetermined plurality of records.
7. The method of claim 1, further comprising:
writing a head marker code to a record type field of a second record of the plurality of records responsive to acquiring data to fill the first record; and then

writing data to at least one field of the first record of the plurality of records, wherein a valid code is written to the record type field of the first record.
8. The method of claim 1, further comprising:
writing a head marker code to a record type field of a second record of the plurality of records responsive to acquiring data to fill the first record;
writing data to at least one field of the first record of the plurality of records, wherein a code of valid is written to the record type field of the first record; and
reading back the record type field from the second record to verify that a write to the second record has occurred.
9. The method of claim 1, further comprising:
uploading at least one of the plurality of records from the memory device.
10. The method of claim 1, further comprising:
uploading at least one of the plurality of records from the memory device, wherein said uploading activity comprises reading a record logically preceding a record comprising the head marker code in the record type field .
11. The method of claim 1, further comprising:
uploading at least one of the plurality of records from the memory device, wherein said uploading activity begins with a newest record and continues until an oldest record comprising a valid code in the record type field is reached.
12. The method of claim 1, further comprising:
uploading at least one of the plurality of records from the memory device; and
if a new record addition is requested during said uploading activity, assigning a record type code of invalid in an uploaded record that comprises data associated with the new record addition request.

13. The method of claim 1, further comprising:
uploading at least one of the plurality of records from the memory device; and
if a new record addition is requested during said uploading activity:
writing a head marker code to a record type field of a second record of the plurality of records responsive to the request;
writing data to at least one field of the first record of the plurality of records, wherein a valid code is written to the record type field of the first record.
14. A method comprising a plurality of activities comprising:
at a programmable logic controller comprising a memory cartridge, determining that the memory device organization is not known by the programmable logic controller;
locating a data log on the memory device, the data log comprising a predetermined plurality of records, each record comprising a record type field;
locating a head marker code in the record type field of at least one of the predetermined plurality of records;
if more than one head marker code is found in the predetermined plurality of records, finding a logically first record comprising the head marker code, wherein the logically first record is a next record to be populated with process data; and
automatically invalidating the logically first record.
15. The method of claim 13, further comprising:
searching for an invalid code in the record type field of at least one of the predetermined plurality of records.
16. The method of claim 13, further comprising:
searching the predetermined plurality of records for an invalid code in the record type field of at least one of the predetermined plurality of records; and
if an invalid code is found in the record type field of at least one of the predetermined plurality of records, determining, from among any records

comprising the invalid code, a closest record that logically precedes the record comprising the head marker code in the record type field.
17. The method of claim 13, further comprising:
searching for an invalid code in the record type field of at least one of the predetermined plurality of records; and
if no invalid code is found in the record type field of the predetermined plurality of records, determining that the data log is fully populated with valid records.
18. The method of claim 13, wherein the memory device organization is not
known due to a power interruption.
19. The method of claim 13, wherein the memory device organization is not
known due to an addition of a different memory cartridge to the programmable
logic controller.
20. A machine readable medium comprising stored instructions for:
at a programmable logic controller comprising a memory device, receiving a request to create a data log comprising a predetermined plurality of records, the data log adapted to receive data from a process, each record comprising a record type field;
initializing the data log by only writing to the data log a head marker code in the record type field of a first record of the predetermined plurality of records and an invalid code in the record type field of a last record of the predetermined plurality of records; and
automatically invalidating the first record.
21. A machine readable medium comprising stored instructions for:
at a programmable logic controller comprising a memory cartridge, determining that the memory device organization is not known by the programmable logic controller;
locating a data log on the memory device, the data log comprising a predetermined plurality of records, each record comprising a record type field;

locating a head marker code in the record type field of at least one of the predetermined plurality of records;
if more than one head marker code is found in the predetermined plurality of records, finding a logically first record comprising the head marker code, wherein the logically first record is a next record to be populated with process data; and
automatically invalidating the logically first record.
22. A machine-readable data structure encoded on a machine-readable medium, the machine-readable data structure comprising:
a process-data receiving data log of a programmable logic controller, the data log comprising a predetermined plurality of records, each record comprising a record type field, wherein the record type field for at least one record comprises an automatically record-invalidating head marker code.


Documents:

3022-CHENP-2006 FORM-6 09-08-2010.pdf

3022-CHENP-2006 AMENDED PAGES OF SPECIFICATION 09-05-2013.pdf

3022-CHENP-2006 AMENDED PAGES OF SPECIFICATION 09-10-2012.pdf

3022-CHENP-2006 AMENDED CLAIMS 09-05-2013.pdf

3022-CHENP-2006 AMENDED CLAIMS 09-10-2012.pdf

3022-chenp-2006 correspondence others 05-04-2011.pdf

3022-CHENP-2006 EXAMINATION REPORT REPLY RECEIVED 09-10-2012.pdf

3022-CHENP-2006 FORM-1 09-05-2013.pdf

3022-CHENP-2006 FORM-1 09-10-2012.pdf

3022-CHENP-2006 FORM-3 09-05-2013.pdf

3022-CHENP-2006 FORM-5 09-10-2012.pdf

3022-CHENP-2006 OTHER PATENT DOCUMENT 09-05-2013.pdf

3022-chenp-2006 power of attorney 05-04-2011.pdf

3022-CHENP-2006 POWER OF ATTORNEY 09-10-2012.pdf

3022-CHENP-2006 CORRESPONDENCE OTHERS 09-05-2013.pdf

3022-CHENP-2006 CORRESPONDENCE OTHERS 18-06-2012.pdf

3022-chenp-2006 form-13 05-04-2011.pdf

3022-CHENP-2006 FORM-3 18-06-2012.pdf

3022-CHENP-2006 POWER OF ATTORNEY 09-08-2010.pdf

3022-chenp-2006-abstract.pdf

3022-chenp-2006-claims.pdf

3022-chenp-2006-correspondnece-others.pdf

3022-chenp-2006-description(complete).pdf

3022-chenp-2006-drawings.pdf

3022-chenp-2006-form 1.pdf

3022-chenp-2006-form 26.pdf

3022-chenp-2006-form 3.pdf

3022-chenp-2006-form 5.pdf

3022-chenp-2006-pct.pdf


Patent Number 256245
Indian Patent Application Number 3022/CHENP/2006
PG Journal Number 21/2013
Publication Date 24-May-2013
Grant Date 22-May-2013
Date of Filing 18-Aug-2006
Name of Patentee SIEMENS INDUSTRY, INC.
Applicant Address 3333 Old Milton Parkway, Alpharetta, Georgia 30005-4437
Inventors:
# Inventor's Name Inventor's Address
1 FULTON, Temple Luke 1508 Stateline Road, Elizabethton, Tennessee 37643
2 BOGGS, Mark, Steven 901 Locklaine Drive, Johnson City, Tennessee 37601
3 HAUSMAN, Steven, Michael 2322 Camelot Circle, Johnson City, Tennessee 37604
4 JOHNSON, William, H. 1907 Clearwood Drive, Johnson City, Tennessee 37604
PCT International Classification Number G05B19/05,G06F11/00,12/00
PCT International Application Number PCT/US2005/005227
PCT International Filing date 2005-02-18
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 60/546,153 2004-02-20 U.S.A.
2 11/056,805 2005-02-11 U.S.A.