This document provides instructions for using a COMSAB II driver to communicate between a Siemens S7-300 PLC and COMSAB II controllers. It describes the hardware connection, functions of reading and writing data points to multiple compressors, and how to set up the compressor-specific data blocks to define I/O mapping. Key aspects covered are dividing the data blocks for each compressor, specifying read and write points through hexadecimal codes, and transferring values between registers.
This document provides instructions for using a COMSAB II driver to communicate between a Siemens S7-300 PLC and COMSAB II controllers. It describes the hardware connection, functions of reading and writing data points to multiple compressors, and how to set up the compressor-specific data blocks to define I/O mapping. Key aspects covered are dividing the data blocks for each compressor, specifying read and write points through hexadecimal codes, and transferring values between registers.
This document provides instructions for using a COMSAB II driver to communicate between a Siemens S7-300 PLC and COMSAB II controllers. It describes the hardware connection, functions of reading and writing data points to multiple compressors, and how to set up the compressor-specific data blocks to define I/O mapping. Key aspects covered are dividing the data blocks for each compressor, specifying read and write points through hexadecimal codes, and transferring values between registers.
This document provides instructions for using a COMSAB II driver to communicate between a Siemens S7-300 PLC and COMSAB II controllers. It describes the hardware connection, functions of reading and writing data points to multiple compressors, and how to set up the compressor-specific data blocks to define I/O mapping. Key aspects covered are dividing the data blocks for each compressor, specifying read and write points through hexadecimal codes, and transferring values between registers.
COMSAB DRIVER FOR SIMATIC PLC TYPE S7-300 COMSAB II Driver for Simatic PLC type S7-300 Page 2 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc Project No. : Project title : ComSab II Document : Title : F:\Sabroe Controls Group\Plant Control\ComSabII\Simatic S7\COMSAB DRIVER S7-300.doc COMSAB II Driver for Simatic PLC type S7-300 No. of pages : 9 Print date: 030512 Document Revision Record Rev. Date Author Pages affected Brief description of change 1.0 ?? ?? All Original issue of document 1.01 010927 PBE All Rewritten DISTRIBUTION: Documentation archive (1) APPROVED BY: YORK Refrigeration, Technology & Products Sabroe Controls Group Anders Amdi Soerensen COMSAB II Driver for Simatic PLC type S7-300 Page 3 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc Tabel of Contents: Page 3 1 Hardware Page 4 1.1 Cable Page 4 2 Function Page 4 3 Setup of number of compressor and reading/writing points. Page 5 4 Division of compressor specific DBs Page 6 5 Reserved memory areas Page 10 COMSAB II Driver for Simatic PLC type S7-300 Page 4 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc 1. HARDWARE SIEMENS PLC model S7-300, CPU type 314, 315 and 316 SIEMENS communication processor model CP340 RS232C Ascii protocol (In- and Output address must be 256-271 both.) SABROE COMSAB II communication processor 1.1 Cable COMSAB II SIEMENS CP340 Port 2 (plug J4) 9-pole SUB-D (male) No connection ------------screen----------------- Plug-house Pin no. 1 (Gnd) ------------------------------------ Pin no. 5 (GnD) Pin no. 2 (TxD) ------------------------------------- Pin no. 2 (RxD) Pin no. 8 (RxD) ------------------------------------- Pin no. 3 (TxD) 2. FUNCTION Key the number of points you wish to read/write in the connected compressors into DB100. The compressors must be keyed in succession 1-2- 3-4-5 etc. and there must not be any gaps. Each compressor has its own DB (DB70 DB83), where the points of the values you wish to read/write are keyed in (in HEX format, see INSTRUCTION MANUAL COMSAB II). Furthermore the values you wish to transfer to the compressors must be keyed in. The following restrictions must be noticed: Maximum 14 compressors Maximum 29 reading points per compressor Maximum 10 writing points per compressor COMSAB II Driver for Simatic PLC type S7-300 Page 5 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc 3. SET-UP OF NUMBER OF COMPRESSORS AND NUMBER OF READING/WRITING POINTS KEYING IN IN DB100 DB100.DBW2 Number of point to read in compressor 1 DB100.DBW4 Number of point to read in compressor 2 DB100.DBW6 Number of point to read in compressor 3 - - DB100.DBW28 Number of point to read in compressor 14 DB100.DBW62 Number of point to write in compressor 1 DB100.DBW64 Number of point to write in compressor 2 DB100.DBW66 Number of point to write in compressor 3 - - DB100.DBW88 Number of point to write in compressor 14 If a compressor has not been connected to the system you only need to key in 0 (zero) in the DBW belonging to this one. Example for compressor 2 Number of values to be read must be keyed in in DB100.DBW4 and number of values to be written must be keyed in in DB100.DBW64. - Read 5 values and write 2 values in compressor 2: Key Decimal 5 into DB100.DBW4 Key Decimal 2 into DB100.DBW64 Example for compressor 4 Number of values to be read must be keyed in in DB100.DBW8 and number of values to be written must be keyed in in DB100.DBW68. - Read 4 values in compressor 4: Key Decimal 4 into DB100.DBW8 Key Decimal 0 into DB100.DBW68 COMSAB II Driver for Simatic PLC type S7-300 Page 6 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc 4. DIVISION OF COMPRESSOR SPECIFIC DBs DB70 belongs to compressor 1 DB71 belongs to compressor 2 DB72 belongs to compressor 3 - - DB83 belongs to compressor 14 Reading in UNISAB: DBW2 1. Point no. to read DBW4 2. Point no. to read. DBW6 3. Point no. to read. - - DBW58 29. Point no. to read. (Point no. is a HEX-figures combined from compressor no. and the point which can be looked up from the table POINTS TO READ IN THE COMSAB manual). DBW100 - Reply from COMSAB for 1. Point to read. DBW102 - Reply from COMSAB for 2. Point to read. DBW104 - Reply from COMSAB for 3. Point to read. - - DBW156 Reply from COMSAB for 29. Point to read. (Decimal figures, according to table in the COMSAB manual most of the values are in 1/10). In a few words this means that all replies to DBW2 are returned as replies from COMSAB in DBW100. Questions in DBW4 are returned as replies from COMSAB in DBW102 etc. COMSAB II Driver for Simatic PLC type S7-300 Page 7 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc Writing in UNISAB DBW200 1. Point no. to write. DBW202 2. Point no. to write. DBW204 3. Point no. to write. - - DBW218 10. Point no. to write. (Point no. is a HEX-figures combined from compressor no. and the point which can be looked up from the table POINTS TO READ IN THE COMSAB manual). DBW300 1. Setpoint value. DBW302 2. Setpoint value. DBW304 3. Setpoint value. - - DBW318 10. Setpoint value. (Decimal figures, according to table in the COMSAB manual most of the values are in 1/10). In a few words this means that the point number you wish to write to must be keyed in in DBW200 and the setpoint (desired/wanted value) is keyed in in DBW300. DBW202 belongs to DBW302 etc. Example of Set-Up of the compressor specific DBs (DB70 to DB83) The compressor number in Hex figure is a part of read or write messages. Use the following figures in your requests. Compressor no.1 Hex 20 Compressor no.2 Hex 21 Compressor no.3 Hex 22 - - Compressor no.14 Hex 33 COMSAB II Driver for Simatic PLC type S7-300 Page 8 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc Example for compressor no. 7 Wants to read: 1. Oil temperature (hex 22, equivalent to point no. 34 from the table of reading points). 2. Suction temperature (hex 20, equivalent to point no. 32 from the table of reading points). For COMSAB: 1. Key Hex 2622 in into DB76.DBW2 26 indicates that it is compressor 7 and 22 indicates oil temperature. 2. Key Hex 2620 in into DB76.DBW4 26 indicates that it is compressor 7 and 20 indicates suction temperature. From COMSAB: 1 . In DB76.DBW100 the value of the oil temperature can be read (In 1/10C). 3. In DB76.DBW102 the value of the suction temperature can be read (In 1/10C). COMSAB II Driver for Simatic PLC type S7-300 Page 9 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc Example for compressor 3 Wants to write: 1. Suction pressure set point no. 1 (Hex 2F, equivalent to point no. 47 from the table of writing points). 2. Suction pressure set point no. 2 (Hex 30, equivalent to point no. 48 from the table of writing points). For COMSAB 1. Key hex 222F into DB72.DBW200 indicates that it is compressor 3 and 2F indicates set point no. 1. 2. Key hex 2230 into DB72.DBW202 22 indicates that it is compressor 3 and 30 indicates set point no. 2. 1. Key the wanted value for suction pressure set point no. 1 (in 1/10C) into DB72.DBW300 2. Key the wanted value for suction pressure set point no. 2 (in 1/10C) into DB72.DBW302 For instance decimal figure 234 is keyed in for the value 23.4C. The values from DB72.DBW300 and DB72.DBW302 are transferred to compressor 3 through the COMSAB. COMSAB II Driver for Simatic PLC type S7-300 Page 10 of 9 YORK Refrigeration, Technology & Products Sabroe Controls Group Last printed 03/05/12 08:32 F:\Sabroe Controls Group\ivh\comsab II PLC driver dokumentation\COMSAB DRIVER S7-300_UK_NEW.doc 4. Reserved memory areas. Memory area: M150.0 to M249.7 Timer area: T100 to T105