TR-Electronic encoTRive MA Series Скачать руководство пользователя страница 22

PARAM_FB (FB110)

 

 

 TR-Electronic GmbH 2008, All Rights Reserved 

Printed in the Federal Republic of Germany 

Page 22 of 23 

TR - EMO - TI - DGB - 0067 - 02 

03/20/2020 

 

3.3.3 Initialization of the FB_PARAM function block 

 
The  module  should  be  initialized  before  the  first  instruction  is  processed.  For  this 
purpose  only  an  FB  invocation  without  instruction  must  occur,  i.e.  the  FB  inputs 

Read,  Write,  Save

  and 

Factory_default

  must  have  the  value 

FALSE

.  This 

initialization step should be carried out after each instruction has been processed. 
Internal  static  variables  are  initialized  as  a  result  and  the  module  is  set  to  a  defined 
status. 
 
 
 

3.3.4 Instruction processing 

 
When processing a parameter instruction, it must be ensured that only one instruction 
is present at the FB input, as parallel processing is not possible. This input must have 
the value 

TRUE

 until the instruction processing is complete. This is indicated at the FB 

output 

Done

  with  the  value 

TRUE

.  In  order  to  process  the  next  instruction,  no 

instruction should occur at the FB input for one invocation. The FB output 

Done

is then 

reset as confirmation and the new instruction can follow immediately. 
No active communication takes place with the drive between two instructions. 
 
 
 

3.3.5 Renaming modules 

 
The modules can be renamed if necessary. For this purpose the instance data blocks 
DB111 (DB1) and DB112 (DB2) for the internally used system function blocks SFB52 
(RDREC)  and  SFB53  (WRREC)  must  be  changed  accordingly  at  the  FB  inputs 

DB_Write

 and 

DB_Read

 
 
 
 

3.4 Examples 

 

3.4.1 "Read" parameter 

 
In the following example, the parameter P100 (actual position value) must be read by 
the drive. The following steps are necessary: 

1.  First  FB  invocation:  Preconfigure  all  FB  inputs 

Write,  Read,  Save

  and 

Factory_default 

with 

FALSE

2.  Next  FB  invocation:  Query  FB  output 

Done

  to 

FALSE

, then at FB input write 

Number=100

  and 

Index=0

  and  execute  instruction  via  FB  input 

Read

  to 

value 

TRUE

3.  While  instruction  processing  is  running,  call  module  cyclically  and  query  FB 

output 

Done

 until value is 

TRUE

. The instruction is then complete. In order to 

ensure  that  the  value  is  valid,  it  must  also  be  checked  that  the  FB  output 

Error

  is  at  the  value 

FALSE

.  The  read  parameter  value  can  then  be  taken 

from the FB parameter 

Value

 

Содержание encoTRive MA Series

Страница 1: ...ktionsbaustein User Manual Function Block Seite 2 12 Page 13 23 D GB MP Series MD Series MA Series Dezentrale Stellantriebe Decentralized positioning drives S7 Funktionsbaustein zur azyklischen Parame...

Страница 2: ...den Hersteller Zuwiderhandlungen verpflichten zu Schadenersatz nderungsvorbehalt Jegliche nderungen die dem technischen Fortschritt dienen vorbehalten Dokumenteninformation Ausgabe Rev Datum 03 20 20...

Страница 3: ...ersicht 7 3 2 Ein und Ausgabeparameter des FB 8 3 2 1 Error_Codes 9 3 3 Hinweise 9 3 3 1 Multiinstanz 9 3 3 2 Geschwindigkeit der bertragung 9 3 3 3 Initialisieren des Funktionsbausteins FB_PARAM 10 3...

Страница 4: ...nderung Datum Index Erstausgabe 15 12 2008 00 G ltigkeit von MD300 PN auf alle MX XXX PN erweitert Implementierungsverweise auf SIEMENS TIA PORTAL erg nzt Allgemeine Korrekturen 02 02 2017 01 TR EMO...

Страница 5: ...lbausteins bernimmt die TR Electronic GmbH keine Haftung und keine Gew hrleistung Der Beispielbaustein dient ausschlie lich zu Demonstrationszwecken f r die azyklische Parametrierung Ein Einsatz diese...

Страница 6: ...dene Projektdateien verf gbar TR EMO SW DGB 0028 f r SIEMENS SIMATIC Manager TR EMO SW DGB 0036 f r SIEMENS TIA PORTAL TR EMO SW GB 0038 in SCL f r SIEMENS TIA PORTAL 2 3 Randbedingungen Zum eigentlic...

Страница 7: ...7 of 23 3 PARAM_FB FB110 3 1 bersicht Error BOOL Error_Code BYTE PARAM_FB DWORD HW_IO DB_Write BLOCK_DB DB_ANY DB_Read Number INT Index BYTE Read BOOL Write BOOL Save BOOL Factory_Default BOOL Value D...

Страница 8: ...rojekt ist dies DB111 DB1 Number INPUT INT Nummer des Parameters der gelesen oder geschrieben werden soll Index INPUT BYTE Index des Parameters der gelesen oder geschrieben werden soll Read INPUT BOOL...

Страница 9: ...icht nderbar 0x0009 Beschreibungsdaten nicht vorhanden 0x000B Keine Bedienhoheit 0x000C Passwort falsch 0x0011 Falscher Betriebszustand 0x0012 Sonstiger Fehler 0x0014 Ung ltiger Wert 0x0015 Antwort zu...

Страница 10: ...ckmeldung wird dann der FB Ausgang Done zur ckgesetzt und der neue Auftrag kann unmittelbar folgen Zwischen zwei Auftr gen findet keine aktive Kommunikation mit dem Antrieb statt 3 3 5 Umbenennung der...

Страница 11: ...ktuell im Antrieb wirksamen Parameterwerte remanent abgespeichert werden 1 Erster FB Aufruf Alle FB Eing nge Write Read Save und Factory_default mit FALSE vorbelegen 2 N chster FB Aufruf Abfrage FB Au...

Страница 12: ...PARAM_FB FB110 TR Electronic GmbH 2008 All Rights Reserved Printed in the Federal Republic of Germany Page 12 of 23 TR EMO TI DGB 0067 02 03 20 2020...

Страница 13: ...Printed in the Federal Republic of Germany TR Electronic GmbH 2008 All Rights Reserved 03 20 2020 TR EMO TI DGB 0067 02 Page 13 of 23 Manual PROFINET acyclic S7 FB P...

Страница 14: ...olations shall be subject to claims for damages Subject to modifications The right to make any changes in the interest of technical progress is reserved Document information Release date Rev date 03 2...

Страница 15: ...M_FB FB110 19 3 1 Overview 19 3 2 Input and output parameters of the FB 20 3 2 1 Error_Codes 21 3 3 Notes 21 3 3 1 Multi instance 21 3 3 2 Transmission speed 21 3 3 3 Initialization of the FB_PARAM fu...

Страница 16: ...vision index Revision Date Index First release 12 15 2008 00 Validity for all MX XXX PN drive types Implementation references to SIEMENS TIA PORTAL added General corrections 02 02 2017 01 TR EMO SW GB...

Страница 17: ...fault free functioning of this example module The example module is intended exclusively for demonstration purposes for acyclic parameterization The use of this example module in the customer s appli...

Страница 18: ...e TR EMO SW DGB 0028 for SIEMENS SIMATIC Manager TR EMO SW DGB 0036 for SIEMENS TIA PORTAL TR EMO SW GB 0038 in SCL for SIEMENS TIA PORTAL 2 3 Boundary conditions The following modules are also necess...

Страница 19: ...9 of 23 3 PARAM_FB FB110 3 1 Overview Error BOOL Error_Code BYTE PARAM_FB DWORD HW_IO DB_Write BLOCK_DB DB_ANY DB_Read Number INT Index BYTE Read BOOL Write BOOL Save BOOL Factory_Default BOOL Value D...

Страница 20: ...block for SFB52 RDREC This is DB111 DB1 in the example project Number INPUT INT Number of the parameter to be read or written Index INPUT BYTE Index of the parameter to be read or written Read INPUT...

Страница 21: ...tion element cannot be changed 0x0009 Description data not available 0x000B No control priority 0x000C Wrong password 0x0011 Wrong operating state 0x0012 Other fault 0x0014 Invalid value 0x0015 Reply...

Страница 22: ...FB input for one invocation The FB output Doneis then reset as confirmation and the new instruction can follow immediately No active communication takes place with the drive between two instructions...

Страница 23: ...meter values currently active in the drive are to be remanently stored 1 First FB invocation Preconfigure all FB inputs Write Read Save and Factory_default with FALSE 2 Next FB invocation Query FB out...

Отзывы: