What is in a Sysmac library?
A .slr file is a Sysmac Studio library: reusable functions, function blocks and data types
that a project can refer to, from Omron, from machine builders or from the community. Before
adding one to a project you may want to know what it offers: which function blocks it has, what
their inputs and outputs are called, which data types they need. Upload the library here and you
get that as a printout, a viewer and a workbook.
What you see
- The library itself: name, version, author or company and its description.
- Every function block and function with its namespace, version, comment and its variables: inputs, outputs and in-out parameters in the order of the call, with data types, initial values and comments.
- The data types of the library: structures, unions and enumerations.
- The body of each POU where the library stores it readable: ladder sections drawn rung by rung (libraries made with older Sysmac Studio versions often keep their ladder readable) or structured text.
Encrypted sources
Most library files store the sources of their POUs encrypted, also when no password was set, so that a library can be shared without its code. For those POUs the tool shows the interface (the parameters and comments), and the printout notes that the body is encrypted. It does not try to decrypt anything. The same applies to POUs that are protected with a password inside a project.
Libraries inside a project
When you upload a project (.smc2) instead, the libraries it refers to are listed with their
versions, and the interfaces of their POUs get their own table, so you can see which library
function blocks the program calls.
More about what this tool reads and writes: Omron Sysmac Studio Project Viewer (SMC2 to PDF).