DAIKIN_EKMBDXB7V1_IDU_FC16_2000_2143
DAIKIN_EKMBDXB7V1_IDU_FC16_2000_2143 (FB)
DAIKIN_EKMBDXB7V1_IDU_FC16_2000_2143 (FB)FUNCTION_BLOCK DAIKIN_EKMBDXB7V1_IDU_FC16_2000_2143
Short description
Change of setpoints - 1 of a maximum of 48 Daikin - indoor units Typical application: Central control of Daikin - indoor units via the Daikin Modbus - interface EKMBDXB7V1\
Guidelines - Software creation
The following function codes (FC) are supported: 3, 4, 6 and 16 The following baud rates are supported: 9600 and 19200 bit/s For addressing use the address values, not the register addresses (address = register - 1) Modbus addresses 1 - 15 can be set directly on the DIP switches in the interface. In FC03 a maximum of 32 registers may be requested in one request telegram (deviating from the Modbus standard) In FC04 a maximum of 32 registers may be requested in one request telegram (deviating from the Modbus standard) In FC16 a maximum of 30 registers may be written in one request telegram (deviating from the Modbus standard) The following transmission parameters were tested: 19200 baud, 8-N-1 The interface supports the following exception codes: 0x81, 0x82 and 0x83 The number of control commands per indoor unit is limited to 7000 / year !!! Considering the tested transmission parameters, the time interval between the end of the response and the next request telegram must be at least 22.5 ms All registers read with FC04 are always available up to date All registers read with FC03 are available up to date only once during each gateway restart &#xNAN;************** &#xNAN;* Functions * &#xNAN;************** This FB collects and transmits the relevant setpoints of all up to 48 indoor units (FC16: addresses 2000 - 2143) The setpoints are provided in the array ‘arstIndoorUnits_Setpoints_1_IN’ separately for each indoor unit as a structure element. The setpoints of an indoor unit are only updated if the corresponding write/read permission is present (input ‘arxIndoorUnits_ReadWriteState’). Procedure to change a setpoint (FC06 or FC16) (see DAIKIN documentation!!!) \
Detection of changes to the current setpoints (compare the array with the index ‘_IN’ with the array with the index ‘_OLD’ )\
When setpoint changes occur, the following additional steps are required: 2) Read current actual values (FC04: addresses 2000 - 2287) (stored in the array with the index ‘_CURRENT’) 3) Write current actual values as setpoints (FC16: addresses 2000 - 2143) (copy array with the index ‘_CURRENT’ into the array with the index ‘_OUT’) 4) Write current setpoints (FC16: addresses 2000 - 2143) (copy array with the index ‘_IN’ into the array with the index ‘_OUT’), (copy array with the index ‘_IN’ into the array with the index ‘_OUT’) \
InOut:
Input
xEn
BOOL
TRUE
Enable / disable communication ( TRUE = enabled )
Input
byUnitId
BYTE
0
Address of the device (interface) (1 .. 15)
Input
xUpdateSetp
BOOL
FALSE
Update of setpoint values (on every rising edge )
Input
xCheckChanges
BOOL
FALSE
Detection of changes in the array ‘arstIndoorUnits_Setpoint_Values_1_IN’ (on each rising edge)
Input
xResError
BOOL
FALSE
Reinitialization of the output 'eErrorCodeCom' (on each rising edge)
Input
arxIndoorUnits_ReadWriteState
ARRAY [1..4, 0..15] OF BOOL
Array with the read/write permissions of the indoor units of all groups (1-00 … 4-15) 1st dimension: group, 2nd dimension: indoor unit number Array element = FALSE: no read/write permission Array element = TRUE: read/write permission
Input
arstIndoorUnits_Setpoint_Values_1_IN
ARRAY [1..3, 0..15] OF EKMBDXB7V1_SETPOINT_VALUES_1
Array with the relevant setpoints of the indoor units of all groups (1-00 … 3-15) 1st dimension: group, 2nd dimension: indoor unit number Array element = structure with the setpoints
Input
xResFilterSign
BOOL
FALSE
Input to reset the filter maintenance indicator on all indoor units (TRUE = reset)
Inout
ModbusClient
ModbusClientBase
Client of the device
Output
xAlarm
BOOL
FALSE
General fault ( TRUE = fault )
Output
xAlarmCom
BOOL
FALSE
General fault - communication ( TRUE = fault )
Output
eErrorCodeCom
ModbusErrorCode
Error code - communication ( 0 = no error )
Output
xBusy
BOOL
Communication indicator ( TRUE = communication )
Input Const
xEnFanControl
BOOL
TRUE
General enable/disable of fan control for all 48 indoor units (TRUE = enable)
Input Const
tTimeCheckChanges
TIME
TIME#1s0ms
Update interval for the operations affected by the input ‘xCheckChanges’
Input Const
tTimeUpdateSetp
TIME
TIME#45s0ms
Update interval for operations influenced by the input 'xUpdateSetp'
Last updated

