Skip to content
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

[4.1.x] Add support for fatek data registers #73

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Bridge co7io-fatek:tcp:my-connection "My PLC#1" [
Type discrete : S1 [ register="S", index=1 ]
Type discrete : T1 [ register="T", index=1 ]
Type discrete : C1 [ register="C", index=1 ]

Type data16 : R1x16 [ register="R", index=1 ]
Type data32 : R1x32 [ register="DR", index=1 ]

Type rollershutter16 : rollx16 [ register="R", index=1, startRegister="M", startIndex=1, stopRegister="M", stopIndex=2 ]
Type rollershutter32 : rollx32 [ register="DR", index=1, startRegister="M", startIndex=1, stopRegister="M", stopIndex=2 ]
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,31 @@ things:
configuration:
index: 1
register: "C"
- id: "R1x16"
type: "data16"
configuration:
index: 1
register: "R"
- id: "R1x32"
type: "data32"
configuration:
index: 1
register: "DR"
- id: "rollx16"
type: "rollershutter16"
configuration:
stopIndex: 2
startIndex: 1
stopRegister: "M"
index: 1
startRegister: "M"
register: "R"
- id: "rollx32"
type: "rollershutter32"
configuration:
stopIndex: 2
startIndex: 1
stopRegister: "M"
index: 1
startRegister: "M"
register: "DR"
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,42 @@

<<co7io-fatek:discrete>>

| co7io-fatek:data16
| Data register (16 bit)
| Data register of connected PLC encoded using 16 bit registers.

<<co7io-fatek:data16>>

| co7io-fatek:data32
| Data register (32 bit)
| Data register of connected PLC encoded using 32 bit registers.

<<co7io-fatek:data32>>

| co7io-fatek:rollershutter16
| Rollershutter (16-bit)
| Data register for position will use 16 bit registers.

<<co7io-fatek:rollershutter16>>

| co7io-fatek:rollershutter32
| Rollershutter (32-bit)
| Data register for position will use 32 bit registers.

<<co7io-fatek:rollershutter32>>

| co7io-fatek:color16
| Color (16-bit)
| Data register for position will use 16 bit registers.

<<co7io-fatek:color16>>

| co7io-fatek:color32
| Color (32-bit)
| Data register for position will use 32 bit registers.

<<co7io-fatek:color32>>

|===


Expand All @@ -25,8 +61,8 @@ Below table contain configuration parameters which can be assigned to channels o

| register
| TEXT
| Register symbol
| Symbol (kind) of register to read
| Register
| Type of discrete register to read or write.

| index
| INTEGER
Expand All @@ -41,4 +77,255 @@ Below table contain configuration parameters which can be assigned to channels o
|===


[[co7io-fatek:data16]]
== Configuration of `co7io-fatek:data16`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:data16`.

[width="100%",caption="Channel type data16 configuration",cols="1,1,1,2"]
|===
|Name | Type | Label ^|Description

| register
| TEXT
| Register
| Type of data register to read or write.

| index
| INTEGER
| Register index
| Index of register used to retrieve data.

| unsigned
| BOOLEAN
| Unsigned
| Values retrieved from and written to device assume unsigned representation.

|===


[[co7io-fatek:data32]]
== Configuration of `co7io-fatek:data32`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:data32`.

[width="100%",caption="Channel type data32 configuration",cols="1,1,1,2"]
|===
|Name | Type | Label ^|Description

| register
| TEXT
| Register
| Type of data register to read or write.

| index
| INTEGER
| Register index
| Index of register used to retrieve data.

| unsigned
| BOOLEAN
| Unsigned
| Values retrieved from and written to device assume unsigned representation. Does not apply if floating option is set.

| floating
| BOOLEAN
| floating point
| Indicate that read/write value is a floating point number. Overrides unsigned flag.

|===


[[co7io-fatek:rollershutter16]]
== Configuration of `co7io-fatek:rollershutter16`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:rollershutter16`.

[width="100%",caption="Channel type rollershutter16 configuration",cols="1,1,1,2"]
|===
|Name | Type | Label ^|Description

| register
| TEXT
| Register
| Data register used to retrieve position of roller shutter.

| index
| INTEGER
| Register index
| Index of register used to retrieve data.

| unsigned
| BOOLEAN
| Unsigned
| Values retrieved from and written to device assume unsigned representation. Does not apply if floating option is set.

| floating
| BOOLEAN
| floating point
| Indicate that read/write value is a floating point number. Overrides unsigned flag.

| startRegister
| TEXT
| Register
| Type of discrete register to write UP command.

| startIndex
| INTEGER
| Register index
| Index of register used to write data.

| startInvert
| BOOLEAN
| Invert
| Invert logical representation of related register (0->1, 1->0).

| stopRegister
| TEXT
| Register
| Type of discrete register to write DOWN command.

| stopIndex
| INTEGER
| Register index
| Index of register used to retrieve data.

| stopInvert
| BOOLEAN
| Invert
| Invert logical representation of related register (0->1, 1->0).

|===


[[co7io-fatek:rollershutter32]]
== Configuration of `co7io-fatek:rollershutter32`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:rollershutter32`.

[width="100%",caption="Channel type rollershutter32 configuration",cols="1,1,1,2"]
|===
|Name | Type | Label ^|Description

| register
| TEXT
| Register
| Data register used to retrieve position of roller shutter.

| index
| INTEGER
| Register index
| Index of register used to retrieve data.

| unsigned
| BOOLEAN
| Unsigned
| Values retrieved from and written to device assume unsigned representation. Does not apply if floating option is set.

| floating
| BOOLEAN
| floating point
| Indicate that read/write value is a floating point number. Overrides unsigned flag.

| startRegister
| TEXT
| Register
| Type of discrete register to write UP command.

| startIndex
| INTEGER
| Register index
| Index of register used to write data.

| startInvert
| BOOLEAN
| Invert
| Invert logical representation of related register (0->1, 1->0).

| stopRegister
| TEXT
| Register
| Type of discrete register to write DOWN command.

| stopIndex
| INTEGER
| Register index
| Index of register used to retrieve data.

| stopInvert
| BOOLEAN
| Invert
| Invert logical representation of related register (0->1, 1->0).

|===


[[co7io-fatek:color16]]
== Configuration of `co7io-fatek:color16`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:color16`.

[width="100%",caption="Channel type color16 configuration",cols="1,1,1,2"]
|===
|Name | Type | Label ^|Description

| color1register
| TEXT
| Color 1 register
| Data register used to retrieve or write Red or Hue part of color information.

| color1index
| INTEGER
| Register index
| Index of register used to retrieve data.

| color2register
| TEXT
| Color 2 register
| Data register used to retrieve or write Green or Saturation part of color information.

| color2index
| INTEGER
| Register index
| Index of register used to retrieve data.

| color3register
| TEXT
| Color 2 register
| Data register used to retrieve or write Blue or Brightness part of color information.

| color3index
| INTEGER
| Register index
| Index of register used to retrieve data.

| rgb
| BOOLEAN
| RGB mode
| Write and interpret read data as RGB code instead of HSB.

| switcherRegister
| TEXT
| Register
| Type of discrete register to write ON or OFF command.

| switcherIndex
| INTEGER
| Register index
| Index of register used to write data.

| switcherInvert
| BOOLEAN
| Invert
| Invert logical representation of related register (0->1, 1->0).

|===


[[co7io-fatek:color32]]
== Configuration of `co7io-fatek:color32`

Below table contain configuration parameters which can be assigned to channels of type `co7io-fatek:color32`.



Loading
Loading