background image

Programming

TX1200

29

Version: 1.1

strDataKL6771:

 the data structure with which the 

KL6771 [

}

 25]

 function block must be linked (see

DataKL6771 [

}

 72]

).

TMpolling:

 the time for which the function block should address the actuator. Default 10 s, minimum time

1 s.

VAR_OUTPUT

bBusy              : BOOL;
bError             : BOOL;
iErrorId           : MP_Error;
ActValue           : WORD;
bMP_Sensor_Digi    : BOOL;
iMP_Sensor_Analog  : INT;
AirVolume_m3h      : WORD;
iVnom_m3h          : INT;
act_MaxVol         : INT;
act_MinVol         : INT;
bErr_ActHunt       : BOOL;
bErr_MecTrv        : BOOL;
bErr_MecOvld       : BOOL;
rTemperature       : LREAL;

bBusy:

 this bit is set for as long as the function block is active.

bError:

 the output becomes TRUE as soon as an error occurs. This error is described via the 

iErrorId

variable.

iErrorId:

 this output outputs an error code in the event of an error (see 

MP_Error [

}

 70]

). 

bError

 goes TRUE

at the same time.

ActValue:

 contains the current position of the actuator (0...100 %).

bMP_Sensor_Digi:

 if an analog sensor is connected, its value is indicated through this variable. 

iSensorTyp

must be "1".

iMP_Sensor_Analog:

 if an analog sensor is connected, its value is indicated through this variable.

iSensorTyp

 must be in the range "2...6".

AirVolume_m3h:

 output of the volume flow rate in m³/h.

iVnom_m3h:

 nominal air volume flow in m³/h. This output is available from version 1.12.0. VAV is read and

must be > 0. If 0, then the calculation of 

AirVolume_m3h

 is not correct.

act_MaxVol:

 maximum set volume flow rate in %.

act_MinVol:

 minimum set volume flow rate in %.

bErr_ActHunt:

 actuator error, "Regulating oscillation"; the actuator is swinging backwards and forwards.

bErr_MecTrv:

 actuator error, "Positioning angle exceeded"; the actuator has passed more than 10° beyond

the adaptation position.

bErr_MecOvld:

 actuator error, "Overload"; the set position could not be reached.

rTemperature:

 temperature in the channel in °C.

Содержание TwinCAT 2 TX1200

Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...

Страница 2: ......

Страница 3: ...tion blocks 24 6 2 1 KL6771 25 6 2 2 MP_Addressing 26 6 2 3 MP_CMV 28 6 2 4 MP_DamperLinearActuator 30 6 2 5 MP_EnergyValveV4_Configuration 31 6 2 6 MP_EnergyValveV4_Process 34 6 2 7 MP_EPIV 36 6 2 8...

Страница 4: ...contents TX1200 4 Version 1 1 6 3 3 NTC_TO_INT INT 64 6 3 4 PT1000_TO_INT INT 64 6 4 Data types 65 6 4 1 Enums 65 6 4 2 Structures 72 6 5 Error codes 75 7 Appendix 77 7 1 Examples 77 7 2 Support and S...

Страница 5: ...ve already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT TwinCAT BSD TC BSD EtherCAT EtherCAT G EtherCAT G10 EtherCAT P...

Страница 6: ...familiar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions mus...

Страница 7: ...The latter should be connected to the corporate network or the Internet only if appropriate protective measures have been set up In addition the recommendations from Beckhoff regarding appropriate pr...

Страница 8: ...uction The MP Bus library is a TwinCAT PLC library for data exchange with MP Bus devices All function blocks from the library must be called in the same task This library is to be used only in conjunc...

Страница 9: ...nal system Technology of MP Bus devices Relevant safety regulations for building technical equipment This software library is intended for building automation system partners of Beckhoff Automation Gm...

Страница 10: ...e Belimo actuators The MP Bus was developed by Belimo for connecting valves throttle valves air valves fire dampers and for window ventilation systems 4 1 Topology There are no restrictions whatsoever...

Страница 11: ...trol function for special applications NF24G MP L 10 Nm MP_DamperLinearActu ator SF24G MP L 20 Nm GK24G MP 40 Nm Water solutions Actuators for characterized control valves open close ball valves CQ24A...

Страница 12: ...s for fire dampers BKN230 24MP for connection of BF G 24TL T ST 11 18 Nm MP_Smoker Standard actuator for fire dampers BKN230 24 C MP for connection of BF 24 ST 4 9 11 18 Nm MP_Smoker Room and system s...

Страница 13: ...EM Sensors Room sensors in the comfort zone 22RT 19 1 temp MP_RoomSensor MP_RoomSensor_Pa rameter 22RTH 19 1 temp rh 22RTM 19 1 temp CO rh MS24A R02 MPX Temp CO MP_MPX MS24A R08 MPX Temp VOC CO rH The...

Страница 14: ...m Manager 1 Select All Types and Continuous 2 Click the mouse on the first variable in the KL6771 Parameter Status Then press the SHIFT key and hold it down Take the mouse pointer to the last variable...

Страница 15: ...1 3 Then press the OK button 4 You can now check the link To do this go to the KL6771 and open it All the terminal s data should now be marked by a small arrow see Figure If that is the case then proc...

Страница 16: ...ion This example assumes that the address of the flap drive is known Software Creation of the PLC program Create a new PLC project for PC based systems ARM and add the TcMPBus lib library Next generat...

Страница 17: ...ration and give the task a lower interval time More detailed information can be found in the KL6771 25 function block description Load the project to the CX as the boot project and save it Configurati...

Страница 18: ...it with a button Unpacking the example files https infosys beckhoff com content 1033 tcplclibmpbus Resources zip 12063687051 zip Hardware Setting up the components The following hardware is required 1...

Страница 19: ...ble for the MP Bus terminal arrKL6771_OUT output variable for the MP Bus terminal stDataKL6771 required for communication with MP Bus see DataKL6771 72 All function blocks with MP Bus must be executed...

Страница 20: ...boot project to the BC and save it Configuration in the System Manager Create a new TwinCAT System Manager project select the BC as the target system and search for the associated hardware Add the PLC...

Страница 21: ...Integration into TwinCAT TX1200 21 Version 1 1 Your BC is now ready for use After pressing the button the flap drive can be moved The current position is stored in variable wActValue...

Страница 22: ...d to control a control ball valve of series P6 W EV BAC MP_EV_Parameter 43 This function block is used to parameterize actuators MP_MPX 44 For BELIMO room sensor MS24A R MPX MP_PTH 45 This function bl...

Страница 23: ..._Window 65 Type of ventilation E_MP_EP_R_R6_UnitSel 66 Scaling selection E_MP_VRU_Application 67 Visualization of the application selected by the damper manufacturer E_MP_VRU_Command 68 Commands for s...

Страница 24: ...PCs CXxxxx Standard lib TcBase lib TcSystem lib For Bus Terminal Controller of BCxx00 series Standard lb6 PlcHelperBC lb6 For Bus Terminal Controller of BCxx50 BCxx20 and BC9191 series Standard lbx Tc...

Страница 25: ...n block is used to configure the Thermal Energy Meter type 22PE and 22PEM MP_TEM_Process 52 This function block is suitable for the Thermal Energy Meter Type 22PE and 22PEM MP_UST_3 53 This function b...

Страница 26: ...e slave is to receive when addressed or of the bus device whose serial number is to be read is passed in MP_Address The serial number is read out on a rising edge of bReadAddr It is output through MP_...

Страница 27: ...ive edge starts the function block The function block reads the serial number of the MP Bus slave whose address is MP_Address bAddrManual a positive edge starts the function block The function block a...

Страница 28: ...1 TMpolling TIME t 10S MP_Address MP Bus address of the slave bStart a positive edge starts the function block If this remains continuously TRUE the function block will be activated cyclically with a...

Страница 29: ...he same time ActValue contains the current position of the actuator 0 100 bMP_Sensor_Digi if an analog sensor is connected its value is indicated through this variable iSensorTyp must be 1 iMP_Sensor_...

Страница 30: ...ator its type is to be indicated in iSensorTyp If no sensor is connected the value 0 should be entered or the variable left open A digital sensor should be parameterized with 1 The state of the sensor...

Страница 31: ...e is indicated through this variable iSensorTyp must be in the range 2 6 iErrorID this output outputs an error code in the event of an error see MP_Error 70 bError goes TRUE at the same time bError th...

Страница 32: ...structure with which the KL6771 25 function block must be linked see DataKL6771 72 rVmax_Write max setpoint in 25 100 Standard 100 Refers to Vnom and is taken into account when control mode flow cont...

Страница 33: ...rved for future extensions nCommunicationWatchdog communication watchdog in sec 0 3600 Not functional reserved for future extensions bSetpointSource TRUE bus FALSE analog nSensor1Type sensor 1 type se...

Страница 34: ...Id VAR_INPUT MP_Address USINT 1 bStart BOOL strDataKL6771 DataKL6771 TMpolling TIME t 10s rSetpoint LREAL nOverrideControl E_MP_EV_V4_OverrideControl nCommand E_MP_EV_V4_Command nDataRead WORD 16 FFFF...

Страница 35: ...function block is active bError the output becomes TRUE as soon as an error occurs This error is described via the iErrorId variable iErrorId this output outputs an error code in the event of an error...

Страница 36: ...m 0 214748 36 A value of 1 means that the data is disabled see VAR_INPUT nDataRead 13 TRUE nCoolingEnergy cooling energy in kWh 0 21474836 A value of 1 means that the data is disabled see VAR_INPUT nD...

Страница 37: ...771 the data structure with which the KL6771 25 function block must be linked see DataKL6771 72 TMpolling the time for which the function block should address the actuator Default 10 s minimum time 1...

Страница 38: ...e device is addressed cyclically with a period specified by the time in TMPolling The time should be set longer than 1 s bError is used to indicate an error in communication with the actuator The type...

Страница 39: ...ent override control mode see E_MPBus_Override_6wayMPIV 70 rSetPoint_Read setpoint in 0 100 rRelativePos_Read relative position in 0 100 rAbsolutePos_Read absolute position in rRelativeFlow_Read relat...

Страница 40: ...100 VAR_OUTPUT bBusy BOOL bError BOOL iErrorId MP_Error strMP_Serial_Number MP_Serial_Number nUnitSelection_Read E_MP_EP_R_R6_UnitSel bControlMode_Read BOOL rVmaxSeq1_Read LREAL rVmaxSeq2_Read LREAL r...

Страница 41: ...t BOOL strDataKL6771 DataKL6771 TMpolling TIME t 10s nOverrideControl E_MPBus_Override MPBus_Override_Auto nRelSetpoint INT MP_Address MP Bus address of the slave bStart a positive edge starts the fun...

Страница 42: ...RROR 70 Simultaneously bError is TRUE nAbsPos Absolute position in rT1_SI Temperature 1 remote in C rT2_SI Temperature 2 embedded in C rDELTA_T Delta temperature in C rP_SI Power in kW nE_COOLING_SI C...

Страница 43: ...Limitation_Disable rSetPoint REAL 0 0 rSpFlow_DeltaT_Si REAL 0 0 MP_Address MP Bus address of the slave bStart a positive edge starts the function block strDataKL6771 the data structure with which the...

Страница 44: ...aKL6771 TMpolling TIME t 10s bTemp_C_F BOOL MP_Address MP Bus address of the slave bStart a positive edge starts the function block If this remains continuously TRUE the function block will be activat...

Страница 45: ...e function block is to communicate bStart activates communication with the MP Bus device bBusy indicates that the function block is active If bStart remains TRUE the device is addressed cyclically wit...

Страница 46: ...ng as the function block is active bError the output becomes TRUE as soon as an error occurs This error is described via the iErrorId variable iErrorId this output outputs an error code in the event o...

Страница 47: ...of the slave bStart a positive edge starts the function block If this remains continuously TRUE the function block will be activated cyclically with a period specified by the time in TMPolling bReadDI...

Страница 48: ...s bWrite writes them to the room sensor bBusy indicates that the block is active bError is used to indicate an error in communication with the drive The type of the error can be read with iErrorId VAR...

Страница 49: ...r MP_Address is used to specify the MP Bus device with which the function block is to communicate bStart activates communication with the MP Bus device bBusy indicates that the function block is activ...

Страница 50: ...10 s minimum time 1 s VAR_OUTPUT bBusy BOOL bError BOOL iErrorId MP_Error bOpen BOOL bClosed BOOL bErr_MecTrv BOOL bErr_MecOvld BOOL bErr_EmFlt BOOL bErr_DmpTrv BOOL bErr_DctAlm BOOL bErr_SmAlm BOOL b...

Страница 51: ...hen READ and WRITE strDataKL6771 the data structure with which the KL6771 25 function block must be linked see DataKL6771 72 nSensor1Type_Write sensor 1 type see E_MP_VRU_Sensor1Type 69 bSelectMeterRe...

Страница 52: ...error can be read with iErrorId VAR_INPUT MP_Address USINT 1 bStart BOOL strDataKL6771 DataKL6771 TMpolling TIME t 10s MP_Address MP Bus address of the slave bStart a positive edge starts the function...

Страница 53: ...n C 20 12 rTemperature2_Integrated temperature2 integrated in C 20 12 rDeltaTemperature temperature delta in K 0 14 rAbsoluteCoolingPower absolute cooling power in kW 0 21 5 rAbsoluteHeatingPower abso...

Страница 54: ...on iU1 is the analog input on PIN 3 One digit corresponds to one mV or if the scaling in the data structure SETTINGS has been changed 250 V The same applies to the analog inputs iU2_YSensor PIN 4 and...

Страница 55: ...bRelay_R3 relay PIN 17 iUa analog output PIN 5 1 mV 1 digit SETTINGS data structure for setting the scaling and the resistance measurement see UST3_SET 75 VAR_OUTPUT bBusy BOOL bError BOOL iErrorId MP...

Страница 56: ...e is to be indicated in iSensorTyp If no sensor is connected the value 0 should be entered or the variable left open A digital sensor should be parameterized with 1 The state of the sensor can be quer...

Страница 57: ...Err_ActHunt BOOL bErr_MecTrv BOOL bErr_MecOvld BOOL bBusy this bit is set for as long as the function block is active bError the output becomes TRUE as soon as an error occurs This error is described...

Страница 58: ...rd DWORD strDataKL6771 DataKL6771 rMax LREAL 100 rMin LREAL bSetpointSource BOOL bOperationMode BOOL TRUE nSensor1Type E_MP_VRU_Sensor1Type MPBus_VRU_Sensor_Active MP_Address MP Bus address of the sla...

Страница 59: ...volume flow in m h 0 60 000 rNominalDeltaPressure nominal differential pressure in Pa 0 10 000 rMinRead min in 0 rMax rMin must be smaller than rMax rMaxRead max in 20 100 bSetpointSourcesRead TRUE bu...

Страница 60: ...s minimum time 1 s rSetpoint value in 0 100 nOverrideControl override the setpoint 68 nCommand command 68 for service and test functions of the actuator nDataRead 0xFF read all data bit 0 read relativ...

Страница 61: ..._INPUT nDataRead 6 2 23 MP_Window This function block is used to control and monitor a window ventilation system FLS MP_Address is used to specify the MP Bus device with which the function block is to...

Страница 62: ...perLinearActuator This function block is used to control and monitor an actuator of a damper and of a globe valve MP_Address is used to specify the MP Bus device with which the function block is to co...

Страница 63: ...temperature from the value of an NI1000 L S resistor NI1000_TO_INT 64 This function calculates a temperature from the value of an NI1000 resistor NTC_TO_INT 64 This function calculates a temperature f...

Страница 64: ...ue of an NTC resistor Connect this function to iMP_Sensor_Analog As output you receive an INT variable that represents the temperature with a resolution of 0 01 C 20 5 C for example is represented as...

Страница 65: ...Window_100 16 0F Auto_Close 1 Auto_5_15min 2 Auto_8_30min 3 Auto_10_50min 4 Auto_open 5 Auto 0 END_TYPE Window_Close closes the window Window_Unlock if you use Unlock use the switch in the window to...

Страница 66: ...1 3 E_MP_EV_V4_Command Command for service and test functions of the actuator TYPE E_MP_EV_V4_Command MPBus_EV_Command_None 0 MPBus_EV_Command_Sync 2 END_TYPE MPBus_EV_Command_None none MPBus_EV_Comma...

Страница 67: ...ideControl MPBus_EV_Override_None 0 MPBus_EV_Override_Open 1 MPBus_EV_Override_Close 2 MPBus_EV_Override_MinFlow 3 MPBus_EV_Override_MaxFlow 5 MPBus_EV_Override_NomFlow 6 MPBus_EV_Override_Motor_Stop...

Страница 68: ...ommand_Sync Sync 6 4 1 10 E_MP_VRU_OverrideControl Override the setpoint TYPE E_MP_VRU_OverrideControl MPBus_VRU_Override_None 0 MPBus_VRU_Override_Open 1 MPBus_VRU_Override_Close 2 MPBus_VRU_Override...

Страница 69: ...Switch 6 4 1 13 E_MPBus_ControlMode Control mode TYPE E_MPBus_ControlMode MPBus_ControlMode_PosCtrl 0 MPBus_ControlMode_FlowCtrl 1 MPBus_ControlMode_PowerCtrl 2 MPBus_ControlMode_Disable 16 FF END_TY...

Страница 70: ..._ANSWER_FROM_KL6771 2 NO_LINK_TO_STRUCTURE_strDataKL6771 3 WRONG_MP_ADDRESS_IS_0 10 WRONG_MP_ADDRESS 11 WRONG_SET_POINT 21 MP_BUS_TIMEOUT_NO_ANSWER_FROM_SLAVE 25 KL6771_TIME_OUT 31 MP_ADDRESS_IS_IN_US...

Страница 71: ...N_USE MP Bus address is in use MP_DISABLED MP Bus disabled MP_BUS_ERROR MP Bus error MP_NO_ANSWER_ON_EVENT MP Bus no answer on event MP_NO_ANSWER MP Bus no answer MP_COM_BREAK MP Bus abort communicati...

Страница 72: ...scaling 0 262 kOhm 6 4 2 Structures 6 4 2 1 DataKL6771 Links the send and receive function blocks with the function block KL6771 25 TYPE DataKL6771 STRUCT OrderNumber BYTE ReciveData BOOL SendData BO...

Страница 73: ...ndNumber WORD DeviceFamily BYTE TestStation BYTE FamilySuffix BYTE END_STRUCT END_TYPE YearAndWeek Year and week DayAndNumber Day and number DeviceFamily Device family TestStation Test station FamilyS...

Страница 74: ...r BOOL bReverseAirflowDetected BOOL bAirflowNotReached BOOL bFlowInClosedPosition BOOL bInternalActivity BOOL bGearDisengaged BOOL bBusWatchdogTriggered BOOL bActuatorDoseNotFitToApplication BOOL bPre...

Страница 75: ...ve Manual adjustment on site possible In other MP drives this information can be read with MP_Get_State 6 4 2 7 UST3_SET Data structure for setting and adjusting the scaling of the resistor measuremen...

Страница 76: ..._TIMEOUT_ERROR MP Bus GAP Timeout 0x0067 103 MP_NO_ANSWER_SLAVE MP Bus no response from slave 0x006E 110 MP_ANSWER_ERROR_FLAG MP Bus error bit in answer telegram is set 0x006F 111 MP_ANSWER_WRONG_LEN...

Страница 77: ...Support and Service Beckhoff and their partners around the world offer comprehensive support and service making available fast and competent assistance with all questions related to Beckhoff products...

Страница 78: ...ice on site service repair service spare parts service hotline service Hotline 49 5246 963 460 Fax 49 5246 963 479 e mail service beckhoff com Beckhoff Headquarters Beckhoff Automation GmbH Co KG Huel...

Страница 79: ......

Страница 80: ...Beckhoff Automation GmbH Co KG H lshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com More Information www beckhoff com tx1200...

Отзывы: