FTView ME Loc Files

The LOC file is a Local Message file used by Factory Talk View. It's basically a spreadsheet.

If you want to modify the file you can open the Local Message file from the explorer window in FTV and copy and paste it into excel. This method will also work with Alarm Messages or Information Messages.

To Select all messages click the box in the upper left corner. Use Ctrl+C to copy or right click and select copy. Once you modify the file in excel use insert row to paste modifications back into file.
 
Hi,

Thanks for your response.

What I was looking for was a way of programmatically generating the LOC file using an Excel Macro.

When the LOC file is opened with Notepad, you can see messages in there but spaced out and a header that in ASCII form looks like nonsense.

If anyone know what format this was meant to be then it would be appreciated.
 
Hey. I'm also interested in this. Has there been any progress made? I was thinking the best approach may be to step through the cpu instructions with a debugger while the .loc file is being made by ftview me.
 
Hey. I'm also interested in this. Has there been any progress made? I was thinking the best approach may be to step through the cpu instructions with a debugger while the .loc file is being made by ftview me.


That is probably the most ridiculous idea I've heard in a long time.
 
The file looks like nonsense because it is a binary file. Looking at the header: D0 CF 11 E0 A1 B1 1A E1, Rockwell is leveraging Microsoft's OLE file container/structure. I think most files in FactoryTalk leverage this format, including the runtime.

I have a project that interrogates/manipulates MER files using python and the olefile module, it does not do what you are asking. I considered generating these, but realized that I was going to be stepping over a dollar to pick up a nickel as far as my time was concerned.

I'm sure using that module you could come up with something. Or you could make some template loc files and use NP++, the hex editor plugin and some search/replace.
 
Basically, a .loc file is a compound file compressed using LZ77 (or LZW77, don't remember). Inside the compound file there is a custom data structure, where the triggers and texts are listed. I suppose some kind of index is embedded to locate each text when it's needed.

For now, I think the best option is to follow the method described by by cwal61.

Edit:

Just now I don't have access to any pc with installed FTView, so I took a .MER file I have for testing. Probably .loc files stored in the FTV project folder don't use compression.

local_messages_01.png local_messages_02.png local_messages_03.png
 
Last edited:
After some trial and error testing, I have managed to sketch the format used in the .loc files. I wrote a simple C# application and was able to create a valid .loc file from a csv.

I describe the format using an example in the attached pdf.
 

Similar Topics

I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
165
I want to set user security level based on the value of a tag in my PLC called "ActiveUser". That tag will contain the A-P code which we use for...
Replies
6
Views
207
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
87
Hi, I have an issue accessing tags in 3 of my plcs'. When I go to select a tag there is no folder drop down as can be seen in the photo. Any...
Replies
0
Views
86
Hello, I have converted RSView 32 to FTView SE 14 (I have tested FTView 12 before as well and there were some difficulties so I moved on to...
Replies
4
Views
243
Back
Top Bottom