How to read or write multiple parameters using FB286

Similar documents
Display of SINAMICS Error Messages in Runtime Professional

Display of SINAMICS Fault Messages in WinCC V7.4

Function blocks to control the SINAMICS with SIMATIC S7 in TIA-Portal

Acyclic communication between S and V90PN via PROFINET. Application example 12/

G120/G120D, SIMATIC ET200S FC,



STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP

Encoder Configuration for the Positioning Axis Technology Function



Introduction to the TIA Portal V13, S7-1500, and Startdrive


CMMT-AS-PN controlled by SINAPOS functions block with Siemens S controller


SINAMICS G120 / G120C / G120D / G120P (with FW >= 4.6) SIMATIC S7-300/400. Short-Documentation 04/2014

Stopping an Axis with Position Accuracy after Product Identification

How to Use the TIA Portal to Set a Siemens PLC and the MGate 5103


Application Example 09/2015. Data Record Communication via I-Device SIMATIC S

Table of Contents. Table of Contents

Connecting a PC Station to an S using OPC

Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016

FAQ about Drive Technology

General information. Configuration control. Display. Control elements. Supply voltage

SINAMICS G120/G120D/G120C/G120P/G110M

ID Title Description of the restriction Solutions for the restriction

General information. Configuration control. Display. Control elements. Supply voltage. Input current. Power. Power loss

General information. Configuration control. Display. Control elements. Supply voltage. Input current. Power. Power loss

Service & Support. How can the Safety Functions of SINAMICS S120 be activated in an existing STEP 7 Project? Technology CPU.

TIA Portal V11 Exercises


Product type designation

SINAMICS V: Simple Speed Control of a V20 with S7-1200/1500 Using the USS Protocol

Application description 08/2014

Service & Support. How do I configure extended PROFIsafe on the CU240E-2?

General information. Display. Control elements. Supply voltage

Getting Started - Startdrive. Startdrive SINAMICS. Introduction 1. Connecting the drive unit to the PC. Creating a project 3

Configuration Control with the S and ET 200SP

SIMATIC Target 1500S: Calling Simulink Models

General information. Configuration control. Display. Control elements. Supply voltage

General information. Configuration control. Display. Control elements. Supply voltage. Input current. Power. Power loss

Diagnostics for enabled Configuration Control with S and ET200SP

Siemens S (symbolic addressing) (Ethernet)

SINAMICS G120 (CU 240E-2 DP), SIMATIC S7-300/400


BU 0950 en. TIA standard modules. Supplementary manual options for NORD - Frequency Inverters


Master-Slave Communication with Modbus RTU Protocol for S7-300 and ET 200S Systems

SINAMICS G120 / G120C / G120D / G120P



General information. Display. Control elements. Supply voltage


TIA Portal Workshop. Unrestricted. Siemens AG All rights reserved.

How to setup Travel to fixed stop with CMMT-AS-PN by using the SINA_POS / telegram 111

FAQ about Drive Technology


TIA Portal Openness: Generating a Modular Machine with S TIA Portal Openness V14 SP1. Application Example 07/2017

Service & Support. MODBUS/TCP Communication over Integrated PROFINET Interface of S7-300 and S7-400 CPU. Modbus/TCP PN CPU.

SINAMICS G: Positioning a G120 CU250S-2 with S7-300/400 (STEP 7 V5) via PROFINET/PROFIBUS using Safety Integrated (via PROFIsafe) and HMI

Service & Support. Which options exist for reading hardware limit switch signals into a technology CPU? Technology CPU.

Universal Parameter Server



Welcome Guideline D435 training case with SIMOTION 4.1 SP1

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)


Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E09. PROFINET with 2x CPU 315F-2 PN/DP

Applications & Tools. Diagnostic Block with Visualization via HMI or Web Browser for AS Interface. AS Interface, STEP 7 V5.x

YASKAWA Drive. PROFINET Function Block for Use in TIA Portal User Instructions

SITRAIN. Introduction TIA Portal. Siemens AG All rights reserved. Unrestricted

General information. Display. Control elements. Supply voltage

Applikationen & Tools. SINAMICS S: Positioning an S120 with S7-300/400 via PROFINET in Step7 with Safety Integrated via terminal

TECHNOTE IOL-CALL Function block with HarhIO PROFINET IO-Link Master

Drive System Application

Berger Automating with SIMATIC S7-1500

SIMOTION. SIMOTION SCOUT Reading and Writing Drive Data. Preface. Fundamental safety instructions 1. Description 2.

Blikani [CPU 313C] Totally Integrated Automation Portal. Blikani General Name Blikani Author Dipl. Ing. Pavel Votrubec Comment

SITOP PSU8600: Faceplates and Communication Blocks. S7-1200/S7-1500, S7-300/S7-400, TIA Portal, WinCC, STEP 7. Library Description 11/2014

09/2014 SINAMICS G/S: HMI

C3 I20 I32 T11 ControlManager FB45

Applications & Tools. SINAMICS S: Positioning an S120 with S7-300/400 via PROFIBUS/PROFINET in STEP 7 with Safety Integrated via terminal

Siemens Spares SIMATIC. Process Control System PCS 7 Communication Blocks Contents. Communication blocks 1 Index.




SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

User Login with RFID Card Reader

Engineering Note. Efficient Integration Weighing for Common PLC Systems

General information. Supply voltage. Input current

How can you display error messages and warnings of a frequency converter on a panel? WinCC flexible RT and Panels FAQ


Your Global Automation Partner. IO-Link Devices Commissioning. User Manual

Reading and Writing RFID Data with SIMATIC S and SIMATIC RF160C via PROFIBUS DP

Spring Training Atlanta, GA

SINAMICS V: Speed Control of a V20 with S (TIA Portal) via MODBUS RTU, with HMI


CPU 319F-3 PN/DP. Page 1682 Mar 2008 Siemens ITS

Applications & Tools. Communication between WinAC MP and a SIMATIC S7. Application for the PUT and GET Function Blocks of the S7 Communication

Transcription:

FAQ-04EP754 04/2015 How to read or write multiple parameters using FB286 SINAMICS G120, FB286, read or write multiple parameters, TIA Portal, PROFINET, PROFIBUS, Acyclic communication https://support.industry.siemens.com/cs/ww/en/view/109475973

1 Read or write multiple parameters using FB286 FB286 is a function block for multiple parameter access, which calls the acyclic communication blocks RDREC/SFB52 and WRREC/SFB53 internally. FB286 is integrated in the libraries of the TIA Portal software. 1.1.1 Configure hardware in TIA Portal. Before the utilization of FB286, make sure the configuration is completed in TIA Portal and the communication between the controller and the drive is established. This example includes a CPU1513-1 PN (V1.5) and a G120 with CU250S-2 PN (V4.6). Figure 01 Communication configuration 2

1.1.2 Insert FB286 in the main program (OB1) or cyclic interrupt OB (e.g. OB32). FB286 can be found as SINA_PARA in the libraries. There are different libraries for different PLCs (S7-300/S7-400, S7-1200, S7-1500). Figure 02 Drive libraries The following picture shows the FB286 with terminals assigned. Figure 03 FB286 The following table shows the definition for each terminal of the block. 3

Table 01 Terminal definition for FB286 Terminal Type Description Start BOOL Start of the job ReadWrite BOOL Type of job: 0=read, 1=write ParaNo INT Number of parameters: 1 to 16 LAddr AxisNo HW-IO/INT INT Hardware ID of the actual value telegram slot or diagnostics address of the axis or drive Axis number for multi-axis system For G120 inverters, AxisNo=1 Error BOOL Group error active: Error=1 ErrorId DWORD Error ID Busy BOOL Job being processed: Busy=1 Done DiagId BOOL WORD Job completed without error: edge change from 0 to 1 Extended communication error: error during SFB call For terminal LAddr, hardware ID of the actual value telegram slot or diagnostics address of the axis or drive can be assigned to it. Figure 04 Hardware ID selection for terminal LAddr 1.1.3 Read p1001, p1002, p1003 and p1004 (fixed speed setpoint 1, 2, 3 and 4). Use a watch table to read multiple parameters after compiling and downloading the project to the PLC. The original values of the 4 parameters are shown in the parameter view of Startdrive. Figure 05 The original values of the parameters 4

Set the following values to the tags on FB286 s terminals: ReadWrite=0, reading request ParaNo=4, 4 parameters to be read Set the following values to the variables of FB286 s instance DB: SINA_PARA_DB.sxParameter[1].siParaNo=1001, 1st parameter to be read SINA_PARA_DB.sxParameter[1].siIndex=0, index of 1st parameter SINA_PARA_DB.sxParameter[2].siParaNo=1002, 2nd parameter to be read SINA_PARA_DB.sxParameter[2].siIndex=0, index of 2nd parameter SINA_PARA_DB.sxParameter[3].siParaNo=1003, 3rd parameter to be read SINA_PARA_DB.sxParameter[3].siIndex=0, index of 3rd parameter SINA_PARA_DB.sxParameter[4].siParaNo=1004, 4th parameter to be read SINA_PARA_DB.sxParameter[4].siIndex=0, index of 4th parameter A rising edge on terminal Start starts the reading task. After the reading task is finished, the Done bit is set. And the parameter values are shown in.sxparameter[x].srvalue. Figure 06 Watch table for reading parameters 1.1.4 Modify the 4 parameter values as below. p1001=600rpm p1002=800rpm p1003=1000rpm p1004=1200rpm Use a watch table to write multiple parameters. Set the following values to the tags on FB286 s terminals: ReadWrite=1, writing request ParaNo=4, 4 parameters to be Set the following values to the variables of FB286 s instance DB: SINA_PARA_DB.sxParameter[1].siParaNo=1001, 1st parameter to be SINA_PARA_DB.sxParameter[1].siIndex=0, index of 1st parameter SINA_PARA_DB.sxParameter[1].srValue=600.0, value of 1st parameter to be SINA_PARA_DB.sxParameter[2].siParaNo=1002, 2nd parameter to be SINA_PARA_DB.sxParameter[2].siIndex=0, index of 2nd parameter 5

SINA_PARA_DB.sxParameter[2].srValue=800.0, value of 2nd parameter to be SINA_PARA_DB.sxParameter[3].siParaNo=1003, 3rd parameter to be SINA_PARA_DB.sxParameter[3].siIndex=0, index of 3rd parameter SINA_PARA_DB.sxParameter[3].srValue=1000.0, value of 3rd parameter to be SINA_PARA_DB.sxParameter[4].siParaNo=1004, 4th parameter to be SINA_PARA_DB.sxParameter[4].siIndex=0, index of 4th parameter SINA_PARA_DB.sxParameter[4].srValue=1200.0, value of 4th parameter to be Figure 07 Watch table for writing parameters A rising edge on terminal Start starts the writing task. After the writing task is finished, the Done bit is set. And the modified parameter values can be seen from the parameter view of Startdrive. Figure 08 The modified values of the parameters NOTE 1. FB286 is available for S7-300/400, S7-1200 and S7-1500 PLCs. 2. FB286 is available for both PROFINET and PROFIBUS. 3. FB286 is available for both SINAMICS S and SINAMICS G inverters. 4. The parameter value is handled in the format of floating-point number. For example, if p1000=6 (setpoint selection, integer 16), 6.0 will be the result of a reading request. For a writing request, 1.0 for the.sxparameter[x].srvalue can change p1000 to 1. 6