Comparison list for programming languages
based on international mnemonics (89 pages)
Summary of Contents for Siemens S7-1200
Page 1
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender Starter Pack Documentation Revision History Version Revision Description Date 1.00 First Release 14/11/2014 Berkshire Systemic Solutions Ltd Unit B8, Grovelands Avenue Workshops, Grovelands Avenue, Winnersh, Wokingham.
Maguire 12-12 Weigh Scale Blender (WSB). The example only shows one WSB connected to a HMS Anybus Profibus Slave via an RS232C serial connection which in turn is connected over Profibus to an S7-1200 PLC. Figure 1: System Architecture...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Description Type Part Number S7-1200 PLC: Work memory 75 KB; 24VDC CPU 1214C DC/DC/DC 6ES7 214-1AG31-0XB0 power supply with DI14 x 24VDC SINK/SOURCE, V3.0 DQ10 x 24VDC and AI2 on board; 6 high-speed counters and 4 pulse outputs on board;...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Hardware Configuration Anybus module settings Anybus Slave: The address setting is achieved with the two rotary switches on the Anybus Slave module. However in some applications the application interface is used to set the addresses with software. The address is set to 11 in this example.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Figure 3: Node Settings in Step 7 Changed to Node 1 Serial Cable HMS - WSB Figure 4: Serial Cable Profibus Cable HMS – S7-1200 Profibus Master...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 (3) Contact cover for insulation-piercing connecting device - insert the green and red cores into the open contact cover right up to the end - close the contact cover (press it down as tight as possible)
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Wire the S7-1200 Module as shown in figure 6 connect the TP700 Comfort to the 24VDC PSU and patch cable as shown in figure7. Figure 7: Profinet Connection and 24VDC for TP700 Connect the Profinet cable (green) to the “X1 P1"...
Figure 10: Anybus Module Connections Note: In the wiring shown the colour red denotes 24VDC + and the colour black denotes 0VDC. Siemens usually use "L+" on terminal to denote 24VDC + and "M" to denote 0VDC. Ref: S7-1200-12-12-WSB Berkshire Systemic Solutions Ltd Page 10 of 44 www.bss-ltd.biz...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 The only connections remaining is the serial cable between the Anybus Module and the Maguire WSB Control this is connected to the 9 way D connectors on the Anybus module(see figure 11) and the Maguire WSB Control (see Figure 12).
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 PLC - HMS Anybus - WSB Data Exchange Figure 13: Data Exchange Principle The gateway holds the Maguire MLAN commands, there are a number of commands embedded in the gateway.
PLC configuration The PLC system hardware configuration is done solely with the Siemens TIA Portal. The starter package contains a project named S7-1200 WSB V1_00_V13. Open the project and open the devices and networks section. Figure 14: Devices and Networks Double click on the WSB 1 Graphic at the bottom of the display as shown in figure 14.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 listed they come to 214 input bytes and 88 output bytes. These values need to match the input and output areas that are being used by the gateway see figure 16.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 In network 7 of FC300 we move a value of 1 into DB301.DBB0 this is the target address of the WSB which we set earlier using *66 in the WSB Controller you may wish to change this value for clarity in a multiple blender application just makes sure whatever you set the value to using *66 then move the same value into DB301.DBB0.
Page 18
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Get Settings Description: Returns the mix percentages, component types, work order #, and operator #. Command Format Field # Name Size Range Description Address 0 to 255...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Figure 20: MLAN Command Get Setting Query In Gateway As you can see the command is broken up in to the same sections as detailed in the MLAN Protocol Manual, address, command and checksum.
Page 20
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Address: Data length 0x0001, Data Location 0x200 If you look back at figure 16 you will see that the output area for the gateway for the gateway begins at address 0200 and this in turn is mapped to DB301.DBB0 which as described earlier (see figure 18)
Page 21
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Field # Name Size Range Description Setting Hopper 8 0 to 999 Implied decimal point ##.# Type Hopper 9 0 to 3 Always zeros (implied 1=regrind)
Page 22
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Ref: S7-1200-12-12-WSB Berkshire Systemic Solutions Ltd Page 22 of 44 www.bss-ltd.biz...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Figure 21: MLAN Command Get Setting Response In Gateway The first screen capture shows the address, and the data address it will be sent to in this case 0x0000 and its length this matches the protocol and can be viewed in DB300.DBB0.
Page 28
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 98 Get Settings - Setting Hopper 5 - Implied decimal point r/a ##.# or n ### DB300 Byte 99 Get Settings - Type Hopper 6 1=regrind, 2=natural, 3=additive/colour, 0=none...
Page 29
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 123 Get Settings - Operator Number DB300 Byte 124 Get Settings - Works Order No DB300 Byte 125 Get Settings - Works Order No...
Page 30
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 139 Grams (or tenths of grams) per hour DB300 Byte 140 Grams (or tenths of grams) per hour DB300 Byte 141...
Page 31
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 162 Get Totals - 12 Software - Total Component 4 DB300 Byte 163 Get Totals - 12 Software - Total Component 4...
Page 32
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 187 Get Totals - 12 Software - Total Component 10 DB300 Byte 188 Get Totals - 12 Software - Total Component 10...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB300 Byte 212 Set Steady State Rate DB300 Byte 213 Set Yield DB300 Byte 214 Not used, dummy "free" command in Anybus Gateway...
Page 34
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB301 Byte 20 Send Settings - Type Hopper 6 1=regrind, 2=natural, 3=additive/colour, 0=none DB301 Byte 21 Send Settings - Setting Hopper 6 - Implied decimal point r/a ##.# or n ###...
Page 35
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB301 Byte 45 Send Settings - Works Order No DB301 Byte 46 Send Settings - Operator No DB301 Byte 47 Send Settings - Operator No...
Page 36
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Byte # Description DB301 Byte 70 Silence Alarm - Trigger Address DB301 Byte 71 Set Parameter - Trigger Address DB301 Byte 72 Set Parameter - Ascii data, three letter acronym that designates the parameter...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 HMI Software Default or Initial Screen Figure 22: Default or Initial HMI Screen The screen shown above will be displayed when the HMI boots up, this can take several minutes.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Along the bottom of the screen there are six navigation and control buttons these are from left to right: 1. Home: Changes the screen to the one shown in figure 22.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Settings Screen Figure 24: Settings Screen The screen shown in figure 24 allows the user to alter the settings in the WSB controller, as the page is loaded the last known settings are copied into the settings on this screen so the user can change the very latest settings even if the settings have been changed at the controller.
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 Totals Screen Figure 25: Totals Screen The screen shown in figure 25 is displayed when the totals button is pressed this screen simply shows the totals accumulated for each hopper. Pressing the reset totals button displays a "are you sure"...
Siemens S7-1200 interfacing via HMS Anybus Gateway to Maguire 12-12 Weigh Scale Blender V1.00 System Screens Figure 26: System Screens The system screens page allows the user to access a few screens that may be useful. They have no bearing on functionality and they are not explained further in this manual as they are self explanatory.