Inhaltsverzeichnis
IEC-104
The IEC-104 Driver allows it to transfer any data over the implemented IEC-104 protocol.
The name of this driver is: iec104
The routing address of the first driver is 900
The data point file name for the first driver is: iec1041.txt
The driver configuration file name for the first driver is: iec1041.cfg
For the IEC-104 driver as well as all other gateway drivers the data point definitions are as follows:
Type | Description |
---|---|
M | Integer value (binary data points, counters) which can/shall only be read by the gateway |
S | Integer value which can be either read or written by the gateway. (to M-BUS writing is not possible) |
X | Floating point value (with decimal place) which can/shall only be read by the gateway |
Y | Floating point value (with decimal place) which can be either read or written by the gateway. (to M-BUS writing is not possible) |
A | String, is used e.g. with BACnet Trends and ESPA4.4.4 data points |
The IEC-104 addresses are defined as follows:
<data point-type> <remote/local-unit-number>[.<object-number>.[<BACnet-instance number>.<weekday-index>.<entry-index>]]
data point-type: failure, reset, object, scact, sctime, scvalue
remote/local-unit-number: 1 - 32766
object-number: 1 - 16777215
BACnet-instance number: 0 - 4194303
weekday-index: 0 - 6 (0=sunday, 6=saturday)
entry-index: 0 - 9
data point-type: "failure"
[M failure 12]
name = Ausfall Station 12
query = pe
data point-type: "reset"
[S reset 12]
name = initiate restart of station 12
query = pe
nomval = 0
writecache = 1
data point-type: "object"
[S object 12.1]
name = offline-/online setting of RAS sensor 2.0
format = C_SC_NA_1
query = pe
Supported formats for data point-type „object“:
Messages
Name | Typ | Descrition |
---|---|---|
M_SP_NA_1 | 1 | single event |
M_DP_NA_1 | 3 | double event 4) |
M_ST_NA_1 | 5 | state switching event |
M_ME_NA_1 | 9 | measured value, normalized value 2) |
M_ME_NB_1 | 11 | measured value, scaled value 2) |
M_ME_NC_1 | 13 | measured value, floating point number with single precision 3) |
M_SP_TB_1 | 30 | single event with timestamp CP56Time2a |
M_DP_TB_1 | 31 | double event with timestamp CP56Time2a 4) |
M_ST_TB_1 | 32 | state switching event with timestamp CP56Time2a |
M_ME_TD_1 | 34 | measured value, normalized value with timestamp CP56Time2a 2) |
M_ME_TE_1 | 35 | measured value, scaled value with timestamp CP56Time2a 2) |
M_ME_TF_1 | 36 | measured value, floating point number with single precision with timestamp CP56Time2a 3) |
M_IT_NA_1 | 15 | counter values |
M_IT_TB_1 | 37 | counter values with timestamp CP56Time2a |
Commands
Name1) | Typ | Description |
---|---|---|
C_SC_NA_1 | 45 | single command |
C_DC_NA_1 | 46 | double command 5) |
C_RC_NA_1 | 47 | state switch command |
C_SE_NA_1 | 48 | setpoint command, normalized value 2) |
C_SE_NB_1 | 49 | setpoint command, scaled value 2) |
C_SE_NC_1 | 50 | setpoint command, floating point number with single precision 3) |
C_SC_TA_1 | 58 | single command with timestamp CP56Time2a |
C_DC_TA_1 | 59 | double command with timestamp CP56Time2a 5) |
C_RC_TA_1 | 60 | state switching command with timestamp CP56Time2a |
C_SE_TA_1 | 61 | setpiont command, normalized value with timestamp CP56Time2a 2) |
C_SE_TB_1 | 62 | setpiont command, scaled value with timestamp CP56Time2a 2) |
C_SE_TC_1 | 63 | setpiont command, floating point number with single precision and timestamp CP56Time2a 3) |
C_TD_NA_1 | 145 | transparent data transmission(ABB D560) |
Control/Communication/Special functions
Name1) | Typ | Description |
---|---|---|
M_EI_NA_1 | 70 | end of initialization 6) |
C_IC_NA_1 | 100 | general query6) |
C_RD_NA_1 | 102 | single query 6) |
C_CS_NA_1 | 103 | clock-synchronisation 6) |
C_RP_NA_1 | 105 | process-reset 6) |
C_TS_NA_1 | 107 | test command with timestamp CP56Time2a |
C_TD_NA_1 | 145 | transparent data command (ABB) |
M_TD_NA_1 | 146 | transparent data report(ABB) |
Notes
1) Name that is entered in the gateway as „ format = “
2) require the specification of factor (F:xxx) and given if offset (O:xxx)
3) factor and offset can be specified optionally
4) possible values: 0=Transient, 1=Off, 2=On, 3=Unkown
5) possible values: 0=Off, 1=On, 2=Transient, 3=Unknown
6) not configurable, needed/used for internal communication only
Format: | Description |
---|---|
M_SP_NA_1 | single event |
M_SP_TB_1 | single event with timestamp |
M_DP_NA_1 | double event |
M_ST_NA_1 | state switching event |
M_ME_NA_1 | measured value, normalized value |
M_ME_NB_1 | measured value, scaled value |
M_ME_NC_1 | measured value, floating point number with single precision |
M_ME_TD_1 | measured value, normalized value with timestamp |
C_SC_NA_1 | single command |
C_DC_NA_1 | double command |
C_RC_NA_1 | state switch command |
C_SE_NA_1 | setpoint command, normalized value |
C_SE_NB_1 | setpoint command, scaled value |
C_SE_NC_1 | setpoint command, floating point number with single precision |
data point-type: "scact"
[S scact 12.100.1.0.0]
name = activation schedule 1, sunday, 1. entry
query = pe
nomval = 1
writecache = 1
[S scact 12.100.1.0.1]
name = activation schedule 1, sunday, 2. entry
query = pe
nomval = 1
writecache = 1
data point-type: "sctime"
[Y sctime 12.100.1.0.0]
name = time schedule 1, sunday, 1. entry
query = pe
nomval = 1
writecache = 1
[Y sctime 12.100.1.0.1]
name = time schedule 1, sunday, 2. entry
query = pe
nomval = 1
writecache = 1
data point-type: "scvalue"
[Y scvalue 12.100.1.0.0]
name = value schedule 1, sunday, 1. entry
format = boolean # unsigned or real
query = pe
nomval = 1
writecache = 1
[Y scvalue 12.100.1.0.1]
name = value schedule 1, sunday, 2. entry
format = boolean # unsigned or real
query = pe
nomval = 1
writecache = 1
Start options for the driver in section [IEC104]:
Name: | Type | Range |
---|---|---|
SelectSupported | int | 1 enabled |
0 disabled | ||
2 optional | ||
3 optional | ||
OperationTimeout | int | 1-3600 |
AliveCheck | int | 0-60000 |
FilterUpdate | int | 0-1 |
UpdateWrite | int | 0-1 |
PendingEvents | int | 1-100000 |
SchedulePollDelay | int | 1-6000 |
ScheduleRdWrDelay | int | 1-6000 |
ExpectBACnetAPDU | int | 0-1 |
AcceptInvalid | int | 0-1 |
Options for the driver in section [LINK<no>]:
Name: | Type | Range |
---|---|---|
HostName<no> | string | a.b.c.d |
ServerRole | int | 0-1 |
T0Timeout | int | 1-255 |
T1Timeout | int | 1-255 |
T2Timeout | int | 1-255 |
T3Timeout | int | 0-172800 |
KWindow | int | 1-32767 |
WWindow | int | 1-32767 |
RemoteUnits | string | 1-32766 |
LocalUnits | string | 1-32766 |
Example iec1041.cfg-file:
[IEC104]
SelectSupported = 0
OperationTimeout = 10
AliveCheck = 60
FilterUpdate = 1
PendingEvents = 5000
SchedulePollDelay = 30
ScheduleRdWrDelay = 2
ExpectBACnetAPDU = 1
AcceptInvalid = 0
[LINK1]
HostName0 = 127.0.0.1
ServerRole = 0
T0Timeout = 30
T1Timeout = 15
T2Timeout = 10
T3Timeout = 20
KWindow = 12
WWindow = 8
RemoteUnits =
LocalUnits = 12,13,14,15