Title: Some suggestions about tutorial EN/ENO part · Issue #26 · PLCnext/CSharpExamples · GitHub
Open Graph Title: Some suggestions about tutorial EN/ENO part · Issue #26 · PLCnext/CSharpExamples
X Title: Some suggestions about tutorial EN/ENO part · Issue #26 · PLCnext/CSharpExamples
Description: Hi PLCnext Team, the README for EN/ENO is not so clearly, It only mentions three points. EN has to be the first defined input and be in capital letters ENO has to be the first defined output and be in capital letters On error return (ENO...
Open Graph Description: Hi PLCnext Team, the README for EN/ENO is not so clearly, It only mentions three points. EN has to be the first defined input and be in capital letters ENO has to be the first defined output and be...
X Description: Hi PLCnext Team, the README for EN/ENO is not so clearly, It only mentions three points. EN has to be the first defined input and be in capital letters ENO has to be the first defined output and be...
Opengraph URL: https://github.com/PLCnext/CSharpExamples/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some suggestions about tutorial EN/ENO part","articleBody":"\u003c!-- Please search existing issues to avoid creating duplicates. --\u003e\n\u003c!-- Describe the feature you'd like. --\u003e\nHi PLCnext Team, the README for EN/ENO is not so clearly, It only mentions three points. \n\n- EN has to be the first defined input and be in capital letters\n- ENO has to be the first defined output and be in capital letters\n- On error return (ENO == false) , the outputs must be well defined\n\nFor the reader we just know these for sure.\n1. EN needs to be defined and to be the first in the input. \n2. ENO needs to be defined to be the first in the output. \n3. Need to handle the case when ENO == false.\n\n\nThis might lead readers to think that PLCnext has some kind of '**magic**' that can automatically handle error situations and jump to **(ENO==false)**. But in reality, that's not the case; users need to explicitly handle error logic themselves. So I think this part should also be included in the README, so that readers can understand it more clearly.\n\n---\n\nBesides above, i also have a question about the Demo Code\n\n```\npublic void __Process()\n {\n // EN/ENO handling must be implemented by the developer\n ENO = EN;\n if (ENO == false)\n {\n SetOutputValuesToDefault();\n return;\n }\n\n if (xDOWN)\n {\n iOUT--;\n }\n else\n {\n iOUT++;\n }\n // going into error state can be defined by the developer by setting ENO to false\n if (iOUT \u003c 0 || iOUT \u003e 1000)\n {\n ENO = false;\n }\n }\n\n // Outputs must be well defined on error return\n private void SetOutputValuesToDefault()\n {\n iOUT = 0;\n }\n }\n```\nIn fact, the code will never trigger **SetOutputValuesToDefault()** if **EN** is always **TRUE**\n\nif **EN** alwayss **TRUE** and **iOUT** exceed the range (\u003c0 or \u003e 1000) lead to **ENO = false**, at the beginning the **ENO=EN** **will override ENO=false** so the **iOUT** will increase (or decrease) indefinitely and will never be reset to zero.\n\n**Describe the solution you'd like**\n\nA clearer README document, and whether to improve the code in the demo?\n\n","author":{"url":"https://github.com/Leeable","@type":"Person","name":"Leeable"},"datePublished":"2026-01-14T00:16:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/CSharpExamples/issues/26"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9a061ae9-af51-8b92-479d-5820f7934758 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8596:7802B:1167215:1617701:69902A3D |
| html-safe-nonce | 0da8c03adc032fe14e2571bda2f628ea5a872f09ad9671967e9998f66a5d10c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTk2Ojc4MDJCOjExNjcyMTU6MTYxNzcwMTo2OTkwMkEzRCIsInZpc2l0b3JfaWQiOiI1MTMwMzMzMjQ0MjI3NTk0ODE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c438fefb2029df26927b16b418a6d1293b43d8157e9556a46499cf3415208b32 |
| hovercard-subject-tag | issue:3811032284 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PLCnext/CSharpExamples/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d3893bf839a4f5cd769175ca0f5fd6d8511f31b252316cc152cc7019262383c/PLCnext/CSharpExamples/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d3893bf839a4f5cd769175ca0f5fd6d8511f31b252316cc152cc7019262383c/PLCnext/CSharpExamples/issues/26 |
| og:image:alt | Hi PLCnext Team, the README for EN/ENO is not so clearly, It only mentions three points. EN has to be the first defined input and be in capital letters ENO has to be the first defined output and be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Leeable |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/PLCnext/CSharpExamples git https://github.com/PLCnext/CSharpExamples.git |
| octolytics-dimension-user_id | 44154551 |
| octolytics-dimension-user_login | PLCnext |
| octolytics-dimension-repository_id | 161781703 |
| octolytics-dimension-repository_nwo | PLCnext/CSharpExamples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161781703 |
| octolytics-dimension-repository_network_root_nwo | PLCnext/CSharpExamples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width