-
Notifications
You must be signed in to change notification settings - Fork 0
Add CSV-BlackBox-Writter #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RaulSMS
wants to merge
2
commits into
main
Choose a base branch
from
CSV-BlackBOx-Writter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Git LFS file not shown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| - 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.