background image

Chapter 6   CP 240 - M-Bus

 

Manual VIPA System 200V 

6-2 

 

HB97E - CP - Rev. 11/30 

System overview 

 

PW

ER

TxD

RxD

CP 240M-Bus

X 2
3 4

VIPA 240-1FA20

M-Bus

M+

M-

 

 

 

Type 

Order No. 

Description 

CP 240 M-Bus 

VPA 240-1FA20 

CP with M-Bus interface 

 

 

 

CP 240 M-Bus 

Order data 

Summary of Contents for CP 240 RS232

Page 1: ...Manual VIPA System 200V CP Order No VIPA HB97E_CP Rev 11 30...

Page 2: ...L...

Page 3: ...nual were verified with respect to the hard and software However we assume no responsibility for any discrepancies or errors The information in this manual is verified on a regular basis and any requi...

Page 4: ...ller using the components of the System 200V Chapter 3 Project engineering In this chapter you will find information about the basic approach with the project engineering of the CP 240 Besides the inc...

Page 5: ...nication Handling blocks 3 12 RK512 communication Indicator word ANZW 3 17 Chapter 4 CP 240 serial 4 1 System overview 4 2 Fast introduction 4 3 Structure 4 4 ASCII STX ETX 3964 R RK512 Basics 4 10 AS...

Page 6: ...P Rev 11 30 Chapter 6 CP 240 M Bus 6 1 System overview 6 2 Basics 6 3 Fast introduction 6 4 Structure 6 5 Communication principle 6 6 Overview of M Bus telegrams 6 8 Example for M Bus deployment 6 13...

Page 7: ...ng guides are available in the manual an overall table of contents at the beginning of the manual an overview of the topics for every chapter an index at the end of the manual The manual is available...

Page 8: ...one The manual must be available to all personnel in the project design department installation department commissioning operation The following conditions must be met before using or commissioning th...

Page 9: ...ous options of configuring central and decentral systems are presented in a summary The chapter also contains the general specifications of the System 200V i e dimensions installation and environmenta...

Page 10: ...e to become inoperable or unusable Modules that have been damaged by electrostatic discharges may fail after a temperature change mechanical shock or changes in the electrical load Only the consequent...

Page 11: ...nstalled directly on a 35mm mounting rail Bus connectors inserted into the mounting rail provide the interconnecting bus The following figure illustrates the capabilities of the System 200V System 200...

Page 12: ...to 4 rows In combination with a Profibus DP master and slave the PLC CPUs or the PC CPU form the basis for a Profibus DP network in accordance with DIN 19245 3 The DP network can be configured with W...

Page 13: ...9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA...

Page 14: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E CP Rev 11 30...

Page 15: ...d installation guidelines This chapter contains the information required to assemble and wire a controller consisting of Systems 200V components Topic Page Chapter 2 Assembly and installation guidelin...

Page 16: ...You may use the following standard 35mm mounting rails to mount the System 200V modules 35 mm 27 mm 15 mm 1 5 mm 35 mm 27 mm 7 5 mm 1 mm System 200V modules communicate via a backplane bus connector...

Page 17: ...7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I...

Page 18: ...4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0 1 2 3 4 5 6 7 VIPA 221 1BF00 X 2 3 4 1 2 3 4 5 6 7 8 9 I0 DI 8xDC24V SM 221 0...

Page 19: ...odule PC CPU and bus coupler 1 2 4 3 Modules are to install adjacent to each other Gaps are not permitted between the modules since this would interrupt the backplane bus A module is only installed pr...

Page 20: ...er left location with the installation of your header module like CPU PC or bus coupler and install the peripheral modules to the right of this 1 2 4 3 Insert the module that you are installing into t...

Page 21: ...ed clip at the bottom by which the module can be removed from the rail Insert a screwdriver into the slot as shown The clip is unlocked by pressing the screwdriver in an upward direction Withdraw the...

Page 22: ...ng and power cables In contrast to screw terminal connections spring clip wiring is vibration proof The assignment of the terminals is contained in the description of the respective modules You may co...

Page 23: ...ction shows the wiring procedure from above Insert a screwdriver at an angel into the square opening as shown Press and hold the screwdriver in the opposite direction to open the contact spring Insert...

Page 24: ...e follow all the important dimensions of the System 200V 1tier width HxWxD in mm 76 x 25 4 x 74 2tier width HxWxD in mm 76 x 50 8 x 74 80 mm 60 mm 74 mm 88 mm ca 110 mm 84 mm 85 mm 76 62 mm 76 mm 2 77...

Page 25: ...ly and installation guidelines HB97E CP Rev 11 30 2 11 84 46 mm 88 mm 4 66 mm 27 mm 8 cm 76 mm 24 mm 11 mm 85 mm 89 mm 89 mm 27 mm 8 cm 76 mm 12 cm 125 mm 91 mm 65 mm 24 mm 5 mm 11 mm 85 mm Function m...

Page 26: ...causing illegal interference to the environment All System 200V components were developed for applications in harsh industrial environments and they comply with EMC requirements to a large degree In...

Page 27: ...lines must be screened Analog lines must be screened Where low amplitude signals are transferred it may be advisable to connect the screen on one side of the cable only Attach the screening of cables...

Page 28: ...where it is not possible to install equipotential bonding conductors analog signals in the mV or A range are transferred foil type shields static shields are used Always use metallic or metallized cov...

Page 29: ...according chapter After a fast introduction you will get information about how to include GSD files and block libraries into the Siemens SIMATIC Manager The chapter closes with a description of the s...

Page 30: ...AF03 V1 2 and create a Profibus subnet Add to the master system the slave system VIPA_CPU21x from the hardware catalog This is listed in the hardware catalog under Profibus DP Additional field devices...

Page 31: ...VIPA specific blocks may be found at www vipa de as downloadable library at the service area with Downloads VIPA LIB The library is available as packed zip file If you want to use VIPA specific block...

Page 32: ...ed into CPU serial e g Green Cable or MMC Start the hardware configurator from Siemens with a new project and insert a profile rail from the hardware catalog At the first available slot you place the...

Page 33: ...EUERB_S MB2 Control bits Send_FC STEUERB_R MB1 Control bits Receive_FC U M 3 0 as long as no start up no SEND RECEIVE processing BEB CALL FC 1 Receive data ADR 0 1st DW in SEND RECEIVE_DB _DB DB11 Rec...

Page 34: ...sively for the deployment at VIPA System components The Green Cable allows you to transfer project serially from point to point execute firmware updates of the CPUs and field bus master Important hint...

Page 35: ...ou may set the periphery address Number of the data block which contains the data to send Word variable that contains the number of the data word from where on the characters for output are stored Num...

Page 36: ...lling the CP 240 You define the periphery address via the hardware configuration Number of the data block which contains the data Word variable that contains the number of the data word from where on...

Page 37: ...data loss Periphery address with which you may call the CP 240 Via the hardware configuration you may set the periphery address This parameter presets the status of RTS res DTR which you may activate...

Page 38: ...the CP in_out STEUERB_S BYTE internal use in_out STEUERB_R BYTE internal use Periphery address with which you may call the CP 240 Via the hardware configuration you may set the periphery address Numbe...

Page 39: ...LOCK BOOL internal use in_out FEHLER_EMPF BOOL internal use out PAFE BYTE Return Code 00 OK Periphery address with which you may call the CP 240 Via the hardware configuration you may set the peripher...

Page 40: ...ived by the CP and the user data were transmitted to the PLC the flag Order ready of the indicator word is set and the communication to the CP is finished This function is cyclically be called as long...

Page 41: ...that data are overwritten after receipt by new data the deployment of the coordination flag may be useful With FFFFh the coordination flag is deactivated Indicator word Information concerning the ord...

Page 42: ...gets an error number from the CP Then the error number is transferred to the indicator word and the bit Order ready with error is set Then the communication to the CP is finished Declaration Name Type...

Page 43: ...may be accessed by the indicator word More may be found at RK512 communication Indicator word ANZW At proper function all bits of this bit memory byte are 0 At errors an error code is entered The erro...

Page 44: ...in_out FEHLER BOOL internal use Periphery address with which you may call the CP 240 Via the hardware configuration you may set the periphery address Indicator word Information concerning the order c...

Page 45: ...it 1 order is running 0 SEND FETCH released 1 SEND FETCH blocked Bit 2 Order ready without errors Bit 3 Order ready with errors Bit 7 Bit 4 not used In this byte error messages of the CP are entered T...

Page 46: ...ering a new order is convenient Bit 2 Order ready without errors Set Per plug in when the according order has been commissioned without errors Delete Per plug in when the according order is triggered...

Page 47: ...cessor CP 240 with different communication protocols that are explained in the following Topic Page Chapter 4 CP 240 serial 4 1 System overview 4 2 Fast introduction 4 3 Structure 4 4 ASCII STX ETX 39...

Page 48: ...back plane bus Power supply by back plane bus PW ER TxD RxD CP 240 RS232C X 2 3 4 VIPA 240 1BA20 R S 2 3 2 C PW ER TxD RxD CP 240 RS485 X 2 3 4 VIPA 240 1BA20 R S 4 8 5 PW ER TxD RxD CP 240 X 2 3 4 VI...

Page 49: ...roject engineering For the parameterization you may send 16Byte parameter data to the CP that are differently assigned depending on the chosen protocol The parameterization happens via the hardware co...

Page 50: ...1 2 R S 4 8 5 PW ER TxD RxD CP 240 X 4 5 6 VIPA 240 1CA21 1 2 R S 4 2 2 4 8 5 Front view CP 240 RS232 240 1BA20 CP 240 RS485 240 1CA20 CP 240 RS422 485 240 1CA21 1 LED status indicator 2 9pin serial D...

Page 51: ...s transmission of diagnostic bytes TxD green Transmit data RxD green Receive data 9pin D type plug Pin Designation Signal description 1 DCD Data Carrier Detect Data can be received 2 RxD Receive Data...

Page 52: ...RxD 3 2 GND 5 RTS CTS 7 8 shield CP240 Periphery DSR 6 DCD 1 DTR 4 RI 9 TxD RxD 3 2 GND 5 RTS CTS 7 8 shield CP240 Periphery DTR 4 DCD 1 DSR 6 RI 9 TxD RxD 3 2 GND 5 RTS CTS 7 8 shield DTR 6 DCD 1 DSR...

Page 53: ...9 n c Logical conditions as voltage difference between 2 twisted lines Serial bus connection Full duplex Four wire operation RS422 Half duplex Two wire operation RS485 Line length 250m at 115 2kbit s...

Page 54: ...s carries the isolated 5V supply with the respective ground on pin 5 M5V You may use this isolated voltage to provide defined static voltage levels on the signaling lines by means of resistors and ens...

Page 55: ...s carries the isolated 5V supply with the respective ground on pin 5 M5V You may use this isolated voltage to provide defined static voltage levels on the signaling lines by means of resistors and ens...

Page 56: ...Receive block FC11 ASCII_FRAGMENT to handle on big telegrams to the CPU in blocks as soon as they have been received For this the block length is 12Byte With ASCII fragmented the CP doesn t wait unti...

Page 57: ...3964R NAK Negative Acknowledge Note When a DLE is transferred as part of the information it is repeated to distinguish between data characters and DLE control characters that are used to establish and...

Page 58: ...haracter follows an STX When the QVZ expires after a message following the BCC byte or when a character other than DLE is received the attempt to establish the connection and the message are repeated...

Page 59: ...02h STX 03h ETX 10h DLE 15h NAK When ZVZ expires during the reception the driver will send a NAK and wait for another connection request The driver also sends a NAK when it receives an STX while it is...

Page 60: ...27 When the data exceeds 128Byte additional messages will be sent Structure of additional messages Byte xx Error code 3 FF 00 Flag for next reaction message 0 1 2 00 Byte FF 00 Flag for next message 0...

Page 61: ...xy Next message Next reaction message with N 4 127 The coordination flag is set in the partner PLC in active mode when a message is being received This occurs for input as well as for output commands...

Page 62: ...terface When the communication processor receives data via the interface the data is stored in a ring buffer 1024Byte The CPU via the data channel may read the received data The exchange of received t...

Page 63: ...he back plane bus is asynchronous a software handshake is used between the CP 240 and the CPU The register for the data transfer from the CP 240 has a width of 16Byte The bytes 0 to 3 word 0 and 2 are...

Page 64: ...est length 6 in Byte 2 3 to the CP 240 The user data is stored in the send buffer and the value 6 is send back to the CPU via Byte 2 3 The CPU receives the 6 and sends back a 0 via Byte 2 3 The CP 240...

Page 65: ...00Baud 01h 150Baud 02h 300Baud 03h 600Baud 04h 1200Baud 05h 1800Baud 06h 2400Baud 07h 4800Baud 08h 7200Baud 09h 9600Baud 0Ah 14400Baud 0Bh 19200Baud 0Ch 38400Baud 0Dh 57600Baud 0Fh 76800Baud 0Eh 11520...

Page 66: ...TX 02h STX ETX 2 Bit 1 0 Data bits 00b 5 Data bits 01b 6 Data bits 10b 7 Data bits 11b 8 Data bits 11b 8 Data bits Bit 3 2 Parity 00b none 01b odd 10b even 11b even 00b none Bit 5 4 Stop bits 01b 1 10...

Page 67: ...3964 04h 3964R 05h 3964 RK512 06h 3964R RK512 03h 3964 2 Bit 1 0 Data bits 00b 5 Data bits 01b 6 Data bits 10b 7 Data bits 11b 8 Data bits 11b 8 Data bits Bit 3 2 Parity 00b none 01b odd 10b even 11b...

Page 68: ...800Baud 06h 2400Baud 07h 4800Baud 08h 7200Baud 09h 9600Baud 0Ah 14400Baud 0Bh 19200Baud 0Ch 38400Baud 0Dh 57600Baud 0Fh 76800Baud 0Eh 115200Baud Default 0 9600Baud The protocol to be used This setting...

Page 69: ...the information bits are expanded by the parity bit The value of the parity bit 0 or 1 completes the value of all the bits to obtain a pre arranged state If the parity was not specified the parity bit...

Page 70: ...When you select 1 as number of start flags the contents of the 2 nd start flag byte 8 is ignored Range 0 2 Default 1 The ASCII value of the start character that precedes a message to signify the star...

Page 71: ...you can set the maximum number of repetitions for the request telegram by means of the parameter DBL If these attempts are unsuccessful the transmission is interrupted Range 0 255 Default 6 A communi...

Page 72: ...and the respond telegrams of a slave has the same structure Start ID Slave address Function code Data Flow control End ID A request may be addressed to a certain slave or send as broadcast message to...

Page 73: ...ed During one block cycle of the RECEIVE block up to 16 coherent 8Byte block may be handled on at the back plane bus If the 8Byte blocks are not coherent every changes 8Byte block requires one block c...

Page 74: ...0b 7 Data bits 11b 8 Data bits 11b 8 Data bits Bit 3 2 Parity 00b none 01b odd 11b even 00b none Bit 5 4 Stop bits 01b 1 10b 1 5 11b 2 01b 1 Stop bit Bit 7 6 reserved 00b none 3 reserved 0 0 4 Address...

Page 75: ...II 0Dh Modbus slave short with RTU 1Ch Modbus slave long with ASCII 1Dh Modbus slave long with RTU For every character frame there are 3 data formats available The data formats are different in the nu...

Page 76: ...top bits are appended to each character and signify the end of the character Default 13h Data bits 8 Parity none Stop bit 1 Set here in slave mode the Modbus slave address Range 1 255 Default 1 This m...

Page 77: ...has the following approach Start the Siemens SIMATIC Manager Install the GSD file VIPA_21x gsd in the hardware catalog Create a virtual Profibus system in the hardware configurator with the CPU 315 2D...

Page 78: ...h and connect both systems via the serial interface Configure the master section The parameterization of the CP 240 as Modbus master happens via the hardware configuration Additionally you need a PLC...

Page 79: ...ppens via the hardware configuration Additionally you need a PLC user application for the communication build up with the following structure OB 1 Call of FC0 SEND with error For this an area starting...

Page 80: ...are executed in sequence 1 slave Send command telegram to slave address 1 slave Receive respond telegram from slave address 1 slave Interpret respond telegram 2 slave Send command telegram to slave ad...

Page 81: ...ens by means of the ranges 0x 1x 3x and 4x 0x and 1x gives you access to digital Bit areas and 3x and 4x to analog word areas For the CP 240 from VIPA is not differentiating digital and analog data th...

Page 82: ...s place from the point of view of the master Here data which were sent from master to slave up to their target are designated as output data OUT and contrary slave data received by the master were des...

Page 83: ...mand telegram Slave address Function code Address 1 Bit Number of Words Check sum CRC LRC 1 Byte 1 Byte 1 Word 1 Word 1 Word Respond telegram Slave address Function code Number of read Bytes Data 1 wo...

Page 84: ...dress 1 Bit Number of Bits Number of Bytes Data 1 Byte Data 2 Byte Check sum CRC LRC 1 Byte 1 Byte 1 Word 1 Word 1 Byte 1 Byte 1 Byte 1 Byte 1 Word max 250 Byte Respond telegram Slave address Function...

Page 85: ...fer is full or an error occurred in the receive section ERROR03 F OVERF Error frame overflow The telegram end wasn t recognized or maximum telegram length exceeded ERROR04 F INCOM Error frame incomple...

Page 86: ...configuration tool Adjust the transfer parameters accordingly Select Modbus Master RTU at Protocol Edit the OB1 and coordinate the module addresses with the addresses of the parameterization Transfer...

Page 87: ...which address on the 16Byte for in and output are stored in the CPU Please regard that you have to change the addresses that you are changing here also in the SEND and RECEIVE blocks Dialog for Modbu...

Page 88: ...ck the received telegram is stored ABD W 16 0 Starting with this Byte Offset the tel starts in _DB ANZ MW22 Telegram length received length in Byte EMFR M1 1 Reception status 1 Telegram fully received...

Page 89: ...ct the module 240 1CA20 Via double click you reach the parameterization Dialog for address entry Here you may set from which address on the 16Byte for in and output are stored in the CPU Dialog for Mo...

Page 90: ...ABAC Data byte 10 13 DB10 DBD 20 DW 16 ADAEAF00 with ADAEAF 00 Data byte 14 16 1 byte not used Data byte 14 16 not used by the module DB11 DBD 0 DW 16 05100000 with 05 10 0000 Response telegram Slave...

Page 91: ...E R R O DB11 DBD 4 DW 16 52000120 with 52 0001 20 Respond telegram R 0001h 1 as Word DB11 DBD 8 DW 16 4E4F2044 with 4E 4F 20 44 Respond telegram N O D DB11 DBD 12 DW 16 41544100 with 41 54 41 00 Respo...

Page 92: ...data Input data 16Byte Output data 16Byte Parameter data 16Byte Dimensions and Weight Dimensions WxHxD in mm 25 4x76x78 Weight 80g Electrical Data VIPA 240 1CA20 Number of channels 1 Voltage supply 5V...

Page 93: ...SCII fragmented STX ETX 3964 R 3964 R with RK512 Modbus Master Slave Plugs Interfaces 9pin D type plug for RS422 485 RS485 signals RxD TxD N A RxD TxD P B RS422 signals TxD N A RxD N A TxD P B RxD P B...

Page 94: ...2 characters parameterizable 3964 3964R Telegram length max 1024Byte Baud rate 150 300 600 1200 1800 2400 4800 7200 9600 14400 19200 38400 57600 76800 115200 Block proof sign only 3964R Priority low h...

Page 95: ...clusion of the communication processor CP 240 with EnOcean transceiver module Topic Page Chapter 5 CP 240 EnOcean 5 1 System overview 5 2 Basics 5 3 Fast introduction 5 4 Structure 5 5 Communication p...

Page 96: ...X 2 3 4 VIPA 240 1EA20 ANT Type Order number Description CP 240 EnOcean VIPA 240 1EA20 CP with EnOcean radio transceiver module TCM 120 Portable antenna VIPA 240 0EA00 Portable antenna with SMA plug M...

Page 97: ...ocedure EnOcean uses the incoherent amplitude modulation ASK The error likeliness is nearly the same compared with the frequency modulation at identical interference signal level The digital amplitude...

Page 98: ...te 1 as protocol for EnOcean The other parameters are reserved and not evaluated With the help of VIPA FCs you control the communication between CPU and CP 240 For this send and receive data have each...

Page 99: ...ommunication processor gets its voltage supply via the back plane bus The communication processor is provided with 4 LEDs to monitor the operating status The meaning and the according colors are shown...

Page 100: ...d a pin The SMA jack at the CP is with its male thread and the calyx the complement for assembly The portable antenna is a short rod antenna that is mounted without cable directly at the module via th...

Page 101: ...nsferred to the CPU via back plane bus The first two sync bytes and the Checksum are not handled over A telegram that is to send has to be transferred to the CP 240 This supplements the telegram with...

Page 102: ...ed to 14Byte with 2 sync bytes at the beginning and the Checksum at the end and stored in the send buffer After this the CP responds with a 0 at Byte 2 3 After the CPU received this 0 it may send a ne...

Page 103: ...Ocean 1 switch with EnOcean transmitter Project engineering tool SIMATIC Manager from Siemens with transmitting cable Build up the System 200V Load the example project if necessary adjust the peripher...

Page 104: ...ID Byte 0 and 1 10 0 Status BYTE Status 12 0 END_STRUCT 12 0 Reserve BYTE 13 0 SENDEN_LAEUFT BOOL Still transmitting 13 1 LETZTER_BLOCK BOOL Last block has been sent 13 2 FEHL_KOM BOOL Error during tr...

Page 105: ...RD ID byte 0 and 1 10 0 Status BYTE Status 12 0 END_STRUCT 12 0 Reserve BYTE 13 0 EMP_LAEUFT BOOL Still receiving 13 1 LETZTER_BLOCK BOOL Last block has been received 13 2 FEHL_EMPF BOOL Error during...

Page 106: ...AFE EMPFANG_en_ocean Pafe error byte GEEM EMPFANG_en_ocean GEEM received amount internal ANZ_INT EMPFANG_en_ocean ANZ_INT reception length internal EMPF_LAEUFT EMPFANG_en_ocean EMP_LAEUFT receiving da...

Page 107: ...en_ocean Empfangsfach IDbyte2_3 L W 16 3267 Only the last 7Bit T SEND_en_ocean Empfangsfach IDbyte0_1 are relevant for addr L 6 and are ORed in the T SEND_en_ocean Empfangsfach Status CP 240 with the...

Page 108: ...sensor res to an actuator ID of the transceiver module With SET_IDBASE you may alter the ID up to 10 times Status information of the according sensor Checksum Is automatically created at transmission...

Page 109: ...TM module received original or repeated message HRC 0x0A 6byte Modem Telegram original or repeated 6DT 0x0B Modem Acknowledge Telegram MDA Bit 7 Bit 0 DataBytes2 DataBytes1 DataBytes0 0x00 for RPS 1BS...

Page 110: ...epeated telegram RP_COUNTER 0 is received it has to be verified if the same telegram with a lower RP_COUNTER state has already been received in the previous 100 ms In this case the repeated message ha...

Page 111: ...n 2 buttons pressed simultaneously SA 0 No second action If ORG 0x05 and NU 0 U message from a PTM switch module DATA_BYTE2 0 always 0 DATA_BYTE3 as follows 7 0 BUTTONS PR Reserved BUTTONS 3 bit Numbe...

Page 112: ...always 0 DATA_BYTE3 as follows 7 0 RID UD PR SR Reserved RID 2 bit Rocker ID from left A to right D 0 1 2 and 3 UD 1 bit UD 1 O button UD 0 I button PR 1 bit PR 1 Button pushed PR 0 Button released SR...

Page 113: ...t 0 In total there are 15 telegrams 0xA5 0x5A 0x8B 0x89 0xA5 0x5A 0x8B 0x89 EnOcean 0xA5 0x5A 0x8B 0x89 TCM120 0xA5 0x5A 0x8B 0x89 Version 0xA5 0x5A 0x8B 0x89 Version number in ASCII 0xA5 0x5A 0x8B 0x...

Page 114: ...message response if after a TCT command the operation could not be carried out successfully by the TCM Bit 7 Bit 0 When this command is sent to the TCM the base ID range number is retrieved though an...

Page 115: ...ly ID range reprogramming the TCM answers with an OK telegram If reprogramming was not successful the TCM answers sending an ERR telegram if the maximum number of 10 times is exceeded or an ERR_IDRANG...

Page 116: ...Bit 7 Bit 0 Sensitivity 0x00 Low sensitivity Sensitivity 0x01 High sensitivity This command is sent to the TCM to retrieve the current radio sensitivity mode HIGH or LOW This information is sent via a...

Page 117: ...interface Bit 7 Bit 0 If the TCM receives the WAKE command it wakes up from sleep mode In contrast to all other telegrams this telegram is only one byte long Bit 7 Bit 0 Performs a reset of the TCM mi...

Page 118: ...e ID previously stored in EEPROM Bit 7 Bit 0 Deactivates TCM modem functionality When this command has been sent an OK command should be received confirming that the modem status is OFF The modem ID i...

Page 119: ...N Modem state 0x00 modem OFF Modem ID MSB most significant modem ID byte Modem ID LSB least significant modem ID byte Bit 7 Bit 0 This command requests the TCM to send its current software version num...

Page 120: ...it 7 Bit 0 When a 6DT modem telegram has been sent the TCM waits for a modem acknowledge MDA telegram This error message is generated if no acknowledge was received before the timeout 100ms Bit 7 Bit...

Page 121: ...ended On the other hand it may also indicate that there is another installation building in the vicinity where the same modem ID is in use Bit 7 Bit 0 This telegram is sent automatically through the s...

Page 122: ...sage is generated The radio telegram is not delivered Bit 7 Bit 0 This message is generated when the user tries to change the ID range base using the SET_IDBASE command to a value outside the allowed...

Page 123: ...s are taken over as ID base The remaining 7 bits you may specify via your user application during runtime and herewith address multiple actuators With RD_IDBASE the current ID base of your module may...

Page 124: ...te 1 new ID base IDBaseByte0 Byte 0 new ID base Bit 6 0 irrelevant X irrelevant X irrelevant 0x8B 0x58 OK ID base was set To take over the ID base during runtime you have to execute a reset via FC 9 O...

Page 125: ...0 Frequency modulation type transmitter power 868 3MHz ASK max 10mW Transmission range 300m free area Aerial external 50 aerial mountable Type portable or with 150cm cable and magnetic socket Connecti...

Page 126: ...Chapter 5 CP 240 EnOcean Manual VIPA System 200V 5 32 HB97E CP Rev 11 30...

Page 127: ...e assembly and the inclusion of the CP 240 M Bus for communication with energy and excise counters Topic Page Chapter 6 CP 240 M Bus 6 1 System overview 6 2 Basics 6 3 Fast introduction 6 4 Structure...

Page 128: ...Manual VIPA System 200V 6 2 HB97E CP Rev 11 30 System overview PW ER TxD RxD CP 240M Bus X 2 3 4 VIPA 240 1FA20 M Bus M M Type Order No Description CP 240 M Bus VPA 240 1FA20 CP with M Bus interface C...

Page 129: ...ty inversion secure standardized bus system acc DIN EN 1434 3 Short circuit resistant M Bus interface Current gas water and heat counter can be integrated Data is read electronically Connection of up...

Page 130: ...ed and not evaluated With the help of VIPA FCs you control the communication between CPU and CP 240 M Bus For this send and receive data have each a reserved 2048Byte buffer Together with a CPU 21x th...

Page 131: ...the CP gets its voltage supply via the back plane bus and thus supplies the connected M Bus modules up to 6 slaves may be connected The slaves must be connected in parallel M M The communication proce...

Page 132: ...to the CP 240 This recognizes the telegram type due to the length definition supplements it with the according telegram bytes and handles the telegram on to the send buffer The CP 240 compiles these...

Page 133: ...and the according rest length 6 in Byte 2 3 to the CP 240 The user data is stored in the send buffer and the value 6 is send back to the CPU via Byte 2 3 The CPU receives the 6 and sends back a 0 via...

Page 134: ...data area to read from Please regard that every M Bus telegram has to be prefixed by one byte that specifies the baud rate to use At error free reception the Byte 0 of the receive DB contains 00h A va...

Page 135: ...00 0000 40 short frame This causes an initialization of the slaves terminal equipment and correlates a deletion of the FCB bits and an acknowledgment by the single character E5h SND_UD 01F1 0011 53 73...

Page 136: ...o 250 are available Not configured new slaves have the primary address 0 The addresses 254 and 255 are to be used as broadcast address Using 255 the master sends information to all participants but do...

Page 137: ...e 2400 User group July 93 BCh Set baud rate 4800 User group July 93 BDh Set baud rate 9600 User group July 93 BEh Set baud rate 19200 BFh Set baud rate 38400 B1h Output RAM content Techem suggestion B...

Page 138: ...baud rate to use Telegram via M Bus storage in DB 68h 68h Start 00h Response 00h L field 08h C field RSP_UD 03 L field 02h A field address 02h 68h 68h Start 72h CI field response variable length 08h C...

Page 139: ...isition device with M Bus interface Project engineering tool SIMATIC Manager from Siemens with transfer cable Build up the System 200V Load the example project adjust the periphery address if necessar...

Page 140: ...nde BOOL Telegram transmitted completely 260 1 LB BOOL Last block has been sent 260 2 SL BOOL Still transmitting 260 3 Fehl BOOL Error during transmission 260 4 Senden_Start BOOL Start bit 261 0 PAFE...

Page 141: ...fer value CI field Data MB104 Transfer telegram length RET_VAL MW106 Return value Senden_Start M99 0 Start order U M 99 0 Order running BEB L MW 106 Return of send function L W 16 2000 Ready without e...

Page 142: ...ta PAFE DB10 DBB261 Error byte FRG DB10 DBX260 4 Send release GESE DB10 DBW256 Internal variable ANZ_INT DB10 DBW258 Internal variable ENDE_KOM DB10 DBX260 0 Internal variable LETZTER_BLOCK DB10 DBX26...

Page 143: ...e Bus voltage pause level 30V Max bus negative bias 9mA Rigid bit threshold 11mA Short circuit firmness permanent Shutdown level at overcurrent 50mA Minimum shutdown time 50ms Thevenin resistance 100...

Page 144: ...Chapter 6 CP 240 M Bus Manual VIPA System 200V 6 18 HB97E CP Rev 11 30...

Page 145: ...5 6 Basics 5 3 Communication principle 5 7 Components 5 5 Examples 5 9 exchange module 5 29 Fast introduction 5 4 Handling blocks 5 4 LEDs 5 5 Parameter 5 4 set ID Base 5 29 Software handshake 5 8 Str...

Page 146: ...0 EnOcean 5 4 CP 240 M Bus 6 4 CP 240 Modbus 4 3 CP 240 serial 4 3 FCs 3 3 ASCII_FRAGMENT FC 11 3 11 FETCH_RK512 FC 2 3 12 RECEIVE FC 1 3 8 S R_ALL_RK512 FC 4 3 16 SEND FC 0 3 7 SEND_RK512 FC 3 3 14 S...

Page 147: ...Bus connector 2 2 Centralized system 1 4 Components 1 4 Decentralized system 1 4 Disturbances 2 12 EMC 2 12 Basic rules 2 13 Environmental conditions 1 5 Installation guidelines 2 12 Overview 1 3 1 5...

Page 148: ...Index Manual VIPA System 200V A 4 HB97E CP Rev 11 30 M Stich...

Reviews: