Skip to content

Commit

Permalink
feat(plc4go/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 e2d59eb commit 9e88616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plc4go/internal/s7/Configuration.go
Expand Up @@ -80,6 +80,8 @@ func ParseFromOptions(options map[string][]string) (Configuration, error) {
switch controllerTypeString {
case "ANY":
configuration.controllerType = ControllerType_ANY
case "S7_200":
configuration.controllerType = ControllerType_S7_200
case "S7_300":
configuration.controllerType = ControllerType_S7_300
case "S7_400":
Expand Down
1 change: 1 addition & 0 deletions plc4go/internal/s7/ControllerType.go
Expand Up @@ -24,6 +24,7 @@ type ControllerType int
const (
ControllerType_UNKNOWN = -0x1
ControllerType_ANY = 0x0
ControllerType_S7_200 = 0x5
ControllerType_S7_300 = 0x1
ControllerType_S7_400 = 0x2
ControllerType_S7_1200 = 0x3
Expand Down

0 comments on commit 9e88616

Please sign in to comment.