background image

Manual | EN

TX1200

TwinCAT 2 | PLC Library: TcMPBus

2022-06-02 | Version: 1.1

Summary of Contents for TwinCAT 2 TX1200

Page 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...

Page 2: ......

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 74: ...r BOOL bReverseAirflowDetected BOOL bAirflowNotReached BOOL bFlowInClosedPosition BOOL bInternalActivity BOOL bGearDisengaged BOOL bBusWatchdogTriggered BOOL bActuatorDoseNotFitToApplication BOOL bPre...

Page 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...

Page 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...

Page 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...

Page 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...

Page 79: ......

Page 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...

Reviews: