Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CSV-BlackBox-Writter/CSV-BlackBox-Writter.projectarchive
Git LFS file not shown
12 changes: 12 additions & 0 deletions CSV-BlackBox-Writter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CSV-BlackBox-Writer

This example contains two programs:

- CSV_Writer_Periodically : Writes data periodically into .csv files for later retrieve in case of errors.
- This is useful for example if a user does not want to log into the cloud large data or several signals, but it would like to store locally ( in the device) as some kind of log book.
- The .csv files are stored under /var/opt/codesys/PlcLogic/CSV_BALCKBOX
- Snapshot_Recorder: It uses a circular buffer, storing the last values of a signal "fast" in volatile memory and only write it to a file in an event
- It would be useful to simulate a snapshot-like recorder, with very fast data being saved in case of an accident for example.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meaning of this sentence is not clear to me. Why to simulate? Does that mean we need to test all this first.

- The .csv files are stored under /var/opt/codesys/PlcLogic/CSV_Snapshot

Since the PlcLogic folder can be accessed from CODESYS IDE, the easier way to retrieve the files is to connect ( over remote machine tunnel) using the CODESYS gateway and IDE. Then navigate to Device --> Files and use the arrows to move files between your PC and the device.
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# codesys-examples
CODESYS examples, utilities for a fast initial prototype in a new project
# CODESYS Examples

A collection of **CODESYS project examples** and utilities to help you quickly prototype and learn. Each example is packaged as a `.projectarchive` and includes a README Markdown file explaining its purpose and usage.

[What is a projectarchive file?](https://forge.codesys.com/forge/talk/Engineering/thread/f283955619/)

## Repository Structure

Each example has its own folder containing:

```text
example-folder/
├── example.projectarchive # The actual CODESYS project
└── README.md # Description and instructions
```

- **`.projectarchive`** – The CODESYS project file, ready to open.
- **`README.md`** – Explains the example, its purpose, and any setup instructions.


## How to Use

1. Clone this repository
2. Open the `.projectarchive` file in **CODESYS**.
3. Read the `README.md` inside the example folder to understand the example and any setup steps.
4. Modify or combine examples for your own projects.


## Contribution Guidelines

- The main branch is protected to ensure stability. Direct pushes are not allowed.
- Contributions must be made via Pull Requests (PRs).
- Add new examples in separate folders.
- Each folder **must** contain:
- A `.projectarchive` file
- A `README.md` file describing the example
- Use **clear and descriptive folder names** to make examples easy to find.
- PRs will be reviewed before merging to ensure quality and consistency.


## Notes

- Only `.projectarchive` files and `.md` documentation are included.
- This repository is intended to share ready-to-use CODESYS examples with all dependencies included.