Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
escet
Manage
Activity
Members
Labels
Plan
Issues
130
Issue boards
Milestones
Iterations
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse ESCET (Supervisory Control Engineering Toolkit)
escet
Merge requests
!891
#831
PLCgen: Document PLC input and PLC output code generation policies.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#831
PLCgen: Document PLC input and PLC output code generation policies.
831-document-plc-input-output-policies
into
develop
Overview
4
Commits
3
Pipelines
3
Changes
2
All threads resolved!
Hide all comments
Merged
Albert Hofkamp
requested to merge
831-document-plc-input-output-policies
into
develop
8 months ago
Overview
4
Commits
3
Pipelines
3
Changes
2
All threads resolved!
Hide all comments
Expand
Closes
#831 (closed)
0
0
Merge request reports
Compare
develop
version 3
9430dc1e
8 months ago
version 2
9430dc1e
8 months ago
version 1
2be74b0b
8 months ago
develop (base)
and
latest version
latest version
cd4762b2
3 commits,
8 months ago
version 3
9430dc1e
2 commits,
8 months ago
version 2
9430dc1e
2 commits,
8 months ago
version 1
2be74b0b
1 commit,
8 months ago
2 files
+
16
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cif/org.eclipse.escet.cif.plcgen/src/org/eclipse/escet/cif/plcgen/generators/InputOutputGenerator.java
+
6
−
0
Options
@@ -338,6 +338,12 @@ public class InputOutputGenerator {
NameGenerator
nameGenerator
=
target
.
getNameGenerator
();
PlcCodeStorage
codeStorage
=
target
.
getCodeStorage
();
// All variables connected to a PLC input should be read at the same time in order to get a consistent input
// state. For variables connected to a PLC output the same applies for consistency towards the controlled
// system.
// In addition, for outputs a safety requirement exists that requires a safety output to be written only once in
// a PLC cycle. By writing all output at the same time it is easier to implement it correctly and easier to
// verify in a review of the generated PLC code.
CifDataProvider
cifDataProvider
=
codeStorage
.
getExprGenerator
().
getScopeCifDataProvider
();
for
(
IoEntry
entry:
entries
)
{
// Preliminaries (check I/O direction, construct links to the correct local data structures).
Loading