SIEMENS 源文件编程和用户程序的重新接线 “什么是 口令?” SIMATIC S7 Date nformation and Training Center SSP2 02C. Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.1 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 源文件编程和用户程序的重新接线 “什么是 口令?
SIEMENS 编程工具 口区 a File Edit Insert PLC Debug view Options window Help 回鲋叫&回酬血國画回 Address Decl Initial Value Comment 0.temp OB1 EV CLASS BYTE Bi七0-3 OB1:??2 k 1: Cyclic Program Execution MMMMMMMM // Pulse Aux. Memory Marke 0.2 // Pulse Memory Marker RLO 0-Memory Marke 0.1BOOL RLO 1-Memory Marker SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C.2 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.2 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 编程工具 PRGG_T2D
SIEMENS 利用文本编辑器生成程序 瑚LAD/STL/FBD 口区 B Eile Edit Insert PLC Debug yiew Options window Help UNCTION BLOCK FB 10 TITLE AUTHOR Birdy AME Control VERSION 0.1 VAR INPUT Actual value WORD ://Actual value Setpoint ORD //Setpoint Tracking WORD //if used as master controller Control word WORD //Seperate Input Disturbance var WORD //Input for disturbance variable BEGIN TITLE E L 并 actual value TITLE -Mode section part END FUNCTION_ BLOCK Press F1 for help Offine SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C.3 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.3 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 利用文本编辑器生成程序
SIEMENS 启动文本编辑器 回R区 File Edt Insert PLC Yew Options Window.H 口回图逦国到 Insert New Obiect 1Exend Sauce Fle Obiect Properties. All+Retun 2STL Souce Fle Ele Edt Insert PLC yiew 口图侧8回M国面阃 SieA. Last Mo. Date Cre STL Source Fie 2204192204.1997 图cFU31 STL Source Fle(2)1 白回 FC-Test a Source File 回 ANALO SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C.4 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.4 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 启动文本编辑器
SIEMENS 编辑一个源文件(1) 被编辑的源文件 插入块样板 块样板 插入块 产生 块 插入文件 文件 插入文件 文件 SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C.5 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.5 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 编辑一个源文件 (1) 被编辑的源文件 块样板 块 文件 文件 插入块样板 插入块 插入文件 插入文件 产生
SIEMENS 编辑一个源文件(2) 分配给 DTA 调用 全局DB 调用 UDT型DB 调用 分配给 FB3 FB3的背景DB 调用 FC5 OB1 SIMATIC S7 Date nformation and Training Center SSP2 02C.6 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.6 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 编辑一个源文件 (2) UDT 全局 DB UDT型 DB FB3 FB3的背景 DB FC5 OB1 分配给 调用 调用 调用 调用 分配给
SIEMENS 代码块的语法 6 Ele Edit Inset PLC Debug yiew Options window Heb 囗园副剑回测 UNCTION BLOCK FB 10 THOR ERSION 0. 1 TAR INPUT nt WORD Tracking WORD //if used as master controller //Input for disturbance variable Contro⊥vau JORD: //Control value EGIN ETUORK ITLE "Mode section part Press F1 for help IEC Insert 1: 1 Offine SIMATIC S7 Date nformation and Training Center SSP2 02C.7 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.7 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 代码块的语法
SIEMENS 数据块的语法 Eg LAD/STL/FBD-Iprog2_la\SIMATIC 300-FB/FC\CPU314\. \STL Source File(ll t Eie Edit Insert PLC Debug Yiew Options window Help 口回副 TITLE- Hier konnen sie Informationen zu Ihrem Baustein hinter legen You can store information about your block here statt DB kann auch angegeben werden: In place of DB can also be entered. Ax 8 characters FAMILY: plant1 AME max. 8 Zeichen max. 8 characters RSION: 01.0 maX.15.15 en, kann im generierten Baustein keine Anderungen oehr vorgenorcmen werden no more changes can be made once the block is generated) /UNL INKED reben, ist der generiert in nur im AG Ladespeicher vorhanden) If specified, the generated block is only available in the PLc load memory /(falls angegeben, ist der generierte Baustein im AG nicht anderbar /(If specified, the generated block cannot be changed in rogrammable controlle TRUCT YTE: BEGIN b0:=b#16#01 DATA RLOCK SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C.8 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.8 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 数据块的语法
SIEMENS 变量声明 F LAD/STL/FBD-Iprog2_la\prog2\\FB10-I □区 o Ele Edit Insert PLC Debug Yew Options Window Help x 口回副回画k AddressDeal.Name pe INitial valuecomment 0.0in Actual value ORD W16#0 WORD W16#D point cking WORD W#160 master controlle 60n WORD 1=160 SeperateInput WORD w#16#0 Input for disturbance varial control_value WORD ontrol val EiLADISTL/FBD-Iprog2 la\prog2\Mb101 a Ele Edt Insert PLC Debug yiew Options window Help 口回回倒国 AME Control RSION: 0.1 AR INPUT al value UoRd ://Actual value Setpoint WORD Tracking:矿oRD //if used as master controller Control word UoRD //Seperate Input disturbance var WORD //Input for disturbance variable AR OUTPUT Control value TORD //Control value SIMATIC S7 Date 20212/24 nformation and Training Center SSP2 02C. 9 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.9 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 变量声明
SIEMENS 保护属性 属性 代码块 数据块 UDT (OB, FB, F KNOW_HOW_PROTECT(关键技术保护 AUTHOR(作者 FAMILY〔类别 NAME(名称 VERSION(版本) 有有有有有无 有有有有有有有 无无无无 UNLINKED(未连接) READ ONLY(只读 SIMATIC S7 Date nformation and Training Center Fe: SSP2 02C. 10 Know ledge for Automation
Date: 2021/2/24 File: SSP2_02C.10 SIMATIC S7 Siemens AG 2000. All rights reserved. Information and Training Center Know ledge for Automation 保护属性 属性 代码块 (OB, FB, FC) 数据块 UDT KNOW_HOW_PROTECT(关键技术保护) 有 有 无 AUTHOR(作者) 有 有 无 FAMILY(类别) 有 有 无 NAME (名称) 有 有 无 VERSION (版本) 有 有 无 UNLINKED (未连接) 无 有 无 READ_ONLY (只读) 无 有 无