Date:2020/1/30File:SSP1_10C.1SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation第十章符号掌握绝对寻址和符号寻址的概念会使用“符号表编辑器”编辑符号,会在“LAD/STL/FBD编辑器”中编辑符号Date:2020/1/30File:SSP1_10C.2SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation目录绝对寻址和符号寻址.........................................................................................3符号寻址-概述…..............................................................................................4打开符号表......................................................................................................5编辑:查找和替换…….....................................................................................6查看:过滤器………….....................................................................................7查看:排序……................................................................................................8符号表:导出....................................................................................................9符号表:导入..................................................................................................10编辑符号(在LAD/STL/FBD编辑器中)…….......................................................11符号信息(在LAD/STL/FBD编辑器中).............................................................12符号选择(在LAD/STL/FBD编辑器中)..............................................................13“符号优先”..................................................................................................14程序的反编译..................................................................................................15练习10.1:为FC15建立一个符号表................................................................16Date:2020/1/30File:SSP1_10C.3SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation绝对寻址和符号寻址AI0.0=Q4.0AI0.4=Q8.5CallFC18A“PLANT_ON”=“ON_INDIC”A“M_FORW”=“MOTOR_FORW”Call“COUNT”SymbolAddressDataTypeCommentMOTOR_FORWCOUNTPLANT_ONON_INDICM_FORWQ8.5FC18I0.0Q4.0I0.4BOOLFC18BOOLBOOLBOOLMotorforwardsCountbottlesSwitchonplantIndicator:Plantis“On”M.-con.switch:Motorforwards(最多24个字符)(最多80个字符)Date:2020/1/30File:SSP1_10C.4SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation局部数据块:块的声明表程序编辑器-块参数-局部/临时数据跳转标号块的代码区程序编辑器符号寻址-概述何处使用符号?它们存放在何处?如何建立它们?全局数据:符号表符号编辑器-输入-输出-位存储器、定时器、计数器-外设I/O数据块组成DB的声明表程序编辑器块名称:符号表符号编辑器-FB-FC-DB-VAT-UDTDate:2020/1/30File:SSP1_10C.5SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation打开符号表Date:2020/1/30File:SSP1_10C.6SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation编辑:查找与替换Date:2020/1/30File:SSP1_10C.7SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation查看:过滤器Date:2020/1/30File:SSP1_10C.8SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation查看:排序Date:2020/1/30File:SSP1_10C.9SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation符号表:导出要把表存到何处?把表存成何种格式?Date:2020/1/30File:SSP1_10C.10SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation符号表:导入这里选择目录路径输入文件名选择格式Date:2020/1/30File:SSP1_10C.11SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation编辑符号(在LAD/STL/FBD编辑器中)Date:2020/1/30File:SSP1_10C.12SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation符号信息(在LAD/STL/FBD编辑器中)Date:2020/1/30File:SSP1_10C.13SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation符号选择(在LAD/STL/FBD编辑器中)Date:2020/1/30File:SSP1_10C.14SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation符号优先SymbolTableOldEntry:PlantON=Q8.0NewEntry:PlantON=Q4.0优先:绝对地址优先:符号Date:2020/1/30File:SSP1_10C.15SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation程序的反编译缺少符号表替换表示法符号表对全局数据(如I1.0)使用地址而不用符号DB的符号部分DB的单元(如DW1)使用地址,而不用符号FB的符号部分对块的局部和暂时数据使用地址而不用符号(如LB17)对参数使用替代的记号,而不用符号,如PAR1FB注释部分对跳转表使用替代的记号,而不用符号。如M001Date:2020/1/30File:SSP1_10C.16SIMATICS7SiemensAG2000.Allrightsreserved.InformationandTrainingCenterKnowledgeforAutomation练习10.1:为FC15建立符号表PlantOnManualModeAutomaticModeConveyorForwardConveyorBackwardStartStopJogForwardJogBackwardAutomatic/ManualEnterModeQ8.1Q8.2Q8.3Q20.5Q20.6I0.0I0.1I0.2I0.3I0.4I0.5Q4.1Q4.2Q4.3Q8.5Q8.6I0.0I0.1I0.2I0.3I0.4I0.5符号地址(A版)地址(B版)