21
© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 1 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc SITRANS FC410 CORIOLIS FLOWMETER SIMATIC TIA PORTAL V12 getting started software S7-1200 PLC

SITRANS FC410 CORIOLIS FLOWMETER SIMATIC TIA PORTAL V12 getting started software S7 ... ·  · 2015-01-24S7-1200 PLC © Siemens A/S, Flow Instruments, ... The communication to the

Embed Size (px)

Citation preview

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 1 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

SITRANS FC410 CORIOLIS FLOWMETER

SIMATIC TIA PORTAL V12 getting started software

S7-1200 PLC

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 2 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

Table of Contents

1.1 Preface ................................................................................................................. 3 1.2 Further support ..................................................................................................... 3 1.3 Software and hardware requirements ................................................................... 4 1.4 System overview .................................................................................................. 5 1.5 SIMATIC TIA PORTAL blocks .............................................................................. 6

1.5.1 Block call OB1 ........................................................................................... 7 1.5.2 Block call FB95 .......................................................................................... 8 1.5.3 Read commands ........................................................................................ 9 1.5.4 Write commands ...................................................................................... 10 1.5.5 Reading totalizer - example ..................................................................... 11

1.6 Factory communications parameters .................................................................. 13 1.7 HMI screens ....................................................................................................... 14

1.7.1 Screen: 000_main .................................................................................... 14 1.7.2 Screen: 100_Setup .................................................................................. 14 1.7.3 Screen: 101_Access_level ....................................................................... 15 1.7.4 Screen: 110_Flow_setup ......................................................................... 15 1.7.5 Screen: 120_Zero_Point_Adjust .............................................................. 16 1.7.6 Screen: 131_Aerated_FLOW ................................................................... 16 1.7.7 Screen: 132_Aerated_FLOW ................................................................... 17 1.7.8 Screen: 140_Totalizer .............................................................................. 17 1.7.9 Screen: 200_Identification ....................................................................... 18 1.7.10 Screen: 300_Operating ............................................................................ 18 1.7.11 Screen: 310_Process_Variables .............................................................. 19 1.7.12 Screen: 311_Mass_Flow_trend ............................................................... 19 1.7.13 Screen: 400_Diagnose ............................................................................ 20 1.7.14 Screen: 410_Device_Diagnostic .............................................................. 20 1.7.15 Screen: 420_Alarms ................................................................................ 21

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 3 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.1 Preface This software is made to show the Integration between SITRANS FC410 Coriolis flowmeter with SIMATIC TIA portal V12. This getting started project use a SIMATIC S7-1200 PLC and a SIMATIC HMI KTP600 touch panel. The communication to the SITRANS FC410 is Modbus RTU RS485 The getting started software gives some examples – how to read / write between the S7-1200 PLC and the SITRANS FC410 flowmeter - using Modbus RTU registers. Not all Modbus registers that are available in the SITRANS FC410 flowmeter are programmed in this software. Further information regarding Modbus registers – see the operating instructions for SITRANS FC410. The software may be modified, copied or expanded Any claims resulting from the use of the software are excluded. Release date : 18 November 2013 Update ver. 1.1 : 27 august 2014 HMI language support : English

Software version : 1.1

1.2 Further support Do you have more questions concerning the use of SITRANS FC410, then please contact your Siemens representative in the office or business location that is responsible for your area or technical support Updated information on SITRANS FC410 can be found on the respective Internet Site. http://WWW.SIEMENS.COM/FC410

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 4 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.3 Software and hardware requirements Software: SIMATIC TIA PORTAL >= ver. 12.0 Hardware: Component Ordering no SIMATIC S7-1200, CPU 1212C 6ES7212-1AE31-0XB0 SIMATIC S7, MEMORY CARD FOR S7-1X00 CPU/SINAMICS, 3,3 V FLASH, 4 MBY

6ES7954-8LC01-0AA0

SIMATIC S7-1200, COMMUNICATION COMMUNICATION BOARD CB 1241, RS485

6ES7241-1CH30-1XB0

SIMATIC HMI KTP600 BASIC COLOR PN, BASIC PANEL, KEY AND TOUCH OPERATION, 6" TFT DISPLAY, 256 COLORS, PROFINET INTERFACE

6AV6647-0AD11-3AX0

SITRANS FC410 Coriolis flowmeter 7ME4611 XXXXXXXX

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 5 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.4 System overview - hardware

Ethernet

SIMATIC KTP 600 Touchpanel

SIMATIC S71212C PLC

With Serial cardCB 1241 RS485

Modbus RTU RS485

SITRANS FC410CORIOLIS FLOWMETER

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 6 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5 SIMATIC TIA PORTAL software The following blocks are used in the demo project PROGRAM BLOCKS OB1 Call FC94:INIT_MODBUS

Call FC95:FC410_DATA FC94 INIT_MODBUS FC95 FC410_DATA, where FB95 is called – Modbus parameter examples FB95 FC410_MODBUS

Read / Write commands execution

DB17 Parameter DB, for access all parameter between SITRANS FC410 and FB95 DB95 DB Instance data block for FB95

SYSTEM BLOCKS FB1080 MB_COMM_LOAD FB1081 MB_MASTER DB1080 MB_COMM_LOAD_DB DB1081 MB_MASTER_DB

PLC DATA TYPES FLOW_PARA_DB User datatype for DB17

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 7 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5.1 Block call OB1 OB1 call FC94 to initialize the Modbus communication port CB 1241 OB1 call FC95 where examples of Modbus Read / write commands are shown. In FC95 the FB95 is called. This block execute commands to the SITRANS FC410 flowmeter

OB1Main

FC95FC410_DATA

(CALL FC410_MODBUS, FC410_MODBUS_DB)(FB95, DB95)

FC94FC410_INIT_MODBUS

Init modbus module CB 1241 RS485 serial card

(CALL MB_COMM_LOAD, MB_COMM_LOAD_DB)(FB1080, DB1080)

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 8 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5.2 Block call FB95

FB95 is executing reading and writing commands to the SITRANS FC410 flowmeter using MB_master (system block) . All data from/to the SITRANS FC410 flowmeter are stored in the DB_FLOW_PARA (DB17)

FB95

MB_MASTER(FB1081)

DB_FLOW_PARA(DB17)

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 9 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5.3 Read commands The following commands are programmed in FB95 Command No Description Read commands 0 Invalid command code 200 Process values

- Massflow - Volumeflow - Density - Temperature - Frame Temperature Value

210 Identification data – Sensor serial number

220 Totalizer – Totalizer value

230 Device diagnostic - Driver current - Pick-up Amplitude 1 - Pick-up Amplitude 2 - Sensor Frequency

240 Zero point adjustment - Zero Point Duration - Standard deviation - Zero Point Offset value - Zero Point adjust Progress - Zero Point Adjust Status - Start Zero point Adjustment

250 Setup - Flow direction - Process Noise Damping - Low Massflow Cutoff - Low Volumeflow Cutoff

260 Aerated Flow - Aerated Flow Alarm Limit - Aerated Flow Warning Limit - Measurement Sample time - Aerated Flow Filter - Filter time constant - Filter Start Hysteresis - Minimum Filtering Time

280 Read alarm status 290 Access level

Access level to enable writing commands

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 10 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5.4 Write commands The following commands are programmed in FB95 Command No Description Write commands 0 Invalid command code 420 Totalizer

– Reset totalizer 440 Zero point adjustment

- Zero Point Duration - Start Zero point Adjustment

450 Setup - Flow direction - Process Noise Damping - Low Massflow Cutoff - Low Volumeflow Cutoff

460 Areated Flow - Aerated Flow Alarm Limit - Aerated Flow Warning Limit - Measurement Sample time - Aerated Flow Filter - Filter time constant - Filter Start Hysteresis - Minimum Filtering Time

490 Access level Access level to enable writing commands

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 11 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.5.5 Reading totalizer - example FC95: To read the totalizer DB17.DBX128.2 must be set to 1 The command 220 (Read Totalizer) will be transferred to the command input (DB17.DBW132) for FB95

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 12 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

FB95: MODE = 0 : Read DATA_ADDR : The Modbus register is 4:02611 for Modbus address 2610, therefore the transferred value must be 42611 DATA_LEN : 2 bytes (1 register) DATA_PTR : Data area where the data from the FC410 flowmeter should be stored

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 13 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.6 Factory communications parameters

Modbus Address 1

Baudrate 19200

Modbus Parity Framing 0 = even parity, 1 stopbit

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 14 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7 HMI screens

1.7.1 Screen: 000_main

1.7.2 Screen: 100_Setup

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 15 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.3 Screen: 101_Access_level

1.7.4 Screen: 110_Flow_setup

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 16 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.5 Screen: 120_Zero_Point_Adjust

1.7.6 Screen: 131_Aerated_FLOW

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 17 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.7 Screen: 132_Aerated_FLOW

1.7.8 Screen: 140_Totalizer

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 18 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.9 Screen: 200_Identification

1.7.10 Screen: 300_Operating

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 19 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.11 Screen: 310_Process_Variables

1.7.12 Screen: 311_Mass_Flow_trend

Picture identical for: 312_Volume_Flow_Trend 313_Density_Trend 314_Temperature_Trend 315_Frame_Temperature_Trend

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 20 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.13 Screen: 400_Diagnose

1.7.14 Screen: 410_Device_Diagnostic

© Siemens A/S, Flow Instruments, I IA SC PI 3 PRM Page 21 of 21 File: SITRANS FC410 Demo software user notes for SIMATIC TIA PORTAL V1.1.doc

1.7.15 Screen: 420_Alarms