Skip to content

Commit

Permalink
feat(plc4j/s7): add S7-200 (SMART) type support
Browse files Browse the repository at this point in the history
  • Loading branch information
hongjinlin committed Dec 26, 2022
1 parent 9e88616 commit 3f46e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ public void setConfiguration(S7Configuration configuration) {

// The Siemens LOGO device seems to only work with very limited settings,
// so we're overriding some of the defaults.
if (this.controllerType == S7ControllerType.LOGO && configuration.pduSize == 1024) {
if ((this.controllerType == S7ControllerType.S7_200 || this.controllerType == S7ControllerType.LOGO) && configuration.pduSize == 1024) {
configuration.pduSize = 480;
this.pduSize = 480;
} else {
Expand Down
Expand Up @@ -21,6 +21,7 @@
public enum S7ControllerType {

ANY,
S7_200,
S7_300,
S7_400,
S7_1200,
Expand Down

0 comments on commit 3f46e01

Please sign in to comment.