苏州实操派科技有限公司官网-实操派教育科技,汇川技术PLC培训,实操派PLC培训,苏州PLC培训机构

lansen
疯i子

文档

5

关注

0

好评

1
PDF

宁德时代编程规范

阅读 317 下载 167 大小 5.11M 总页数 22 页 2022-11-03 分享
价格: 8 π币
下载文档
/ 22
全屏查看
宁德时代编程规范
还有 22 页未读 ,您可以 继续阅读 或 下载文档
1、本文档共计 22 页,下载后文档不带水印,支持完整阅读内容或进行编辑。
2、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。 免责声明: 版权:我们作为资源的整理方,所有资源均来自互联网的优秀作者们,版权归原作者或企业所有。
申明:任何使用本站收集的资源产生的不测后果,本站不对此负任何责任。
序组会有不同数量的功能块需要编写,所以在T①ype_PLC程序组中需要再次细分组别,实操派文库一最全的工业自分组结构依据与主程序树相同。c)Organization_Blocks主启动程序Start the program,write the Organization Blocks for the unified call of each fuction modulesubroutine,only call function,and strive to be simple and efficient,without logical judgment不进行逻辑判断及额外功能编程(仅西门子PLC)。d)Safety安全功能When using a PLC with safety functions,safety-related logic programs should be programmedin the Safety program group.If the PLC does not integrate the safety function,the system safetyinterlock,emergency stop and other related functions should also be written in the Safety group.当使用带安全功能的PLC时,应在Safety程序组中编写安全相关逻辑程序。若PLC未集成安全功能,则也应将系统安全联锁、急停等相关功能编写在Saf®y组内。e)nitialization初始化Call the initialization program function block,restore the program and related parameters to theinitial state,.and check if the alarm information is normal.Allow the next step.调用初始化程序功能块,恢复程序和相关参数至初始状态,检查报警信息是否正常。允许进行下一步操作。f)Program tree directory程序树目录The ments for each subroutine in the program tree directory must clearly explain thefunction and content of thecorresponding subroutine.Follow the arrangement of actualphysical process,automatic station program is preferred,no interspersed functional programs.实操派文库一最全的工业白Facilitate maintenance personnel to locate the program more quickly and handle equipmentexceptions.(Subroutine ments must be in Chinese,Overseas base project is bilingual inChinese and English)程序树目录中每个子程序的注释必须要清楚的解释对应子程序的功能及内容。遵循实际物理工序排布,工位自动程序优先,中间不能穿插功能程序,方便维护人员快速定位到程序中,处理设备异常。(子程序的注释必须要用中文,海外基地项目中英文双语)化手册下载册下载:到实操派”,学PLC就是快Page 4 of 22实操派文库一最全的工业自动化手白的出实操派文库一最全的工业自动化手册下载工位位Fig.2Program tree directory diagram程序树目录示意图g)HMI_OpMode_Config人机界面管理The human-machine interface management program group is used to implement operation modemanagement,call of screen fuctions,and switching operation modeg on the fixed displayscreen and the mobile operation panel..人机界面管理程序组用于在固定显示屏与移动操实操派文库作面板上实现操作模式管理,画面功能的调用,以及切换操作模式等。h)OpMode运行模式管理The Run Mode program group is used to write call mands for the operation mode and to最全的工业initiate sequence control mands in different modes.The sequence-related function blocksand functions should be stored in the subroutine group corresponding to the operation modename according to different operation modes.运行模式程序组用于编写操作模式的调用指令,并且启动不同模式下的顺序控制指令。顺控相关功能块与函数应该根据不同操作模式,分别存放于操作模式名称相对应的子程序组中。Production Data生产信息The production information program group is used to call production-related data functionblocks and data blocks.The data is matched with the HMI setting,and the productioninformation is displayed on the human-machine interface side without any errors.生产信息程序组用于调用生产相关数据功能块和数据块。数据配合HM1设置,将生产信息完整无误得显示于人机界面端。是快j)Diagnostic诊断信息The diagnostic information program group is used to call the system diagnostic related functionfunction to pile the data blocks required for diagnosis into groups.For production lines thatrequire more diagnostic sub-devices,the diagnostic data blocks need to be grouped,such asPage 5 of 22subdivision:诊断信息程序组用于调用系统诊断相关功能函数,将诊断所需的数据块编实操派文库一最全的工业白制在组内。对于需要诊断子设备较多的产线,需要对诊断数据块进行分组,如细分:I)Sub-device diagnostic data block;子设备诊断数据块;2)PLC diagnostic data block;PLC诊断数据块;3)Profi diagnostic data block;Profii诊断数据块;最全的工业4)Ether/EtherCat diagnostic,:Ether/EtherCa诊断;k)ProDiag状态诊断工具If you use the ProDiag diagnostic tool,you can perform diagnostics monitoring of the programand PLC status without any programming,and push it to the operation screen for quicktroubleshooting and positioning(Only for Siemence PLC),若使用ProDiag诊断工具,无需编程,简单设置即可对程序及PLC状态进行诊断监控,并推送至操作画面,用于快速排查和定位问题(仅西门子PLC)。When programming in each program group needs to involve different function groups,it isalso necessary to group,and the group directory is divided according to the reference mainprogram tree.For example,if a key function block of a different function is written in theType_PLC program group,the directory of the fine molecular program tree in the group isconsistent with the home directory..在各程序组内编程时需要涉及到不同功能组别时时,同样需要进行分组,分组目录依据参照主程序树进行划分。如Type_PLC程序组中编写不同功能的关键功能块,则组内细分子程序树目录与主目录保持一致。6.1.3 Main Programming程序编写a)Programming language编程语言1)The main program can only use LAD(ladder diagrams)or SFC(Statement List)as the实操派文库一最全的工业自动化programming language,STL(Statement List)ST(Structured Text)SCL(StructuredControlLanguage)and other high-level programming are prohibited;becausethe programming language LAD or SFC can provide maintenance personnel with easierdiagnosis and faster modification.主程序只能使用梯形图LAD或者SFC作为编程语言,禁止使用STL、ST及SCL等高级编程语言;因为LAD或SFC编程语言可为维护人员提供更轻松的诊断和更快速的修改。2)Arithmetic blocks and special function blocks can be used in a high-level programminglanguage(Subroutines that are limited to function blocks or duplicate functions to avoidrepeateds,Function blocks canot be encrypted).运算和特殊功能块(和映射相关)可以用高级编程语言(仅限于功能块内或重复功能的子程序,避免重读调用,功能块不得加密)3)The same requirement between the subroutine program and the main program子程序的编写和主程序编写要求一致。Page 6 of 22实操派文库一最全的工业自动化上操派文库上册下载:到OK6上实操派文库一最全的工OK下载到学PLC就是快Page 7of22实操派文库IF NOT ST05P放保护盖完成ForST03最全的工业自动化手/AND STO3P.台具回流使能OR Mode.SingleAuto)AND(STOGV.保护片上料平移直其电机Out.PosDone[0]'HMI_RecipeData.HMI_286.AccDec'"HMI_RecipeData.HMI_286JJerk)=(HMI_RecipeData.HMI_306.AutoVelocity"HMI_RecipeData.HMI_306.Overrid'HMI_RecipeData.HMI_306.AccDec'HMI_RecipeData.HMI_306Jerk)))THEN最全的工业自动化手册下载:至ELSIFNGOR NOT ST03P进4部状态制1)THENSTO5V.ProgramStepEND IF:ST05V.保产盖上料平移直电机In.ToPos1】:TRUEiFST05V.保护盖上料平移直线电机Out.PosDone网1】THEN:FALSEFig4 Programming language schematic图4编程语言示意图b)Programming rules编程规则4)The input and output signals (1/Osignals)in the program need to be transferred by aninternal auxiliary relay (PLC variate in Siemence PLC,global variate in Omron PLC);In实操派文库一最全的工业自动化手册下载:到"实操派”order to facilitate the PLC input and output contact replacement,more convenientmodification program (Because 1/O signal is used more in the program ,it only needs tomodify the contact address in I0 mapping through signal transfer).程序中的输入输出信号(1O信号),需要用内部辅助继电器(西门子PLC中使用PLC变量,欧姆龙PLC中使用全局变量)中转;以便在PLC输入输出触点变化时,可以快速修改程序(因为O信号在程序中运用的比较多,通过信号中转,只需要在1/O映射中修改触点地址即可)。学PLC就是快IPage 8 of22实操派文库一最全的工业R620006200最全的工业自动输入映射F6201学PLC就是自动)输出映射实R63000实操派文库一最全的工业自动派文库最全的工业云5)The automatic program can be reset in a single position,and the step number can be addedin the memory for jump step.自动模式切换到手动状态可单工位复位,跳转步用储人存器加步号。6)Only one logical action is allowed in each line of program.每步程序,单个执行元件只允许控制一个状态变化。7)The motor cylinder and other actuators shall be operable when they are automaticallyswitched to manual (meeting safety conditions),and can run normally after they areswitched to automatic.电机气缸等执行机构需在自动切换手动时可操作(满足安全条件),切换成自动以后,可正常运行。8)Alarm category should be subdivided into:general alarm,serious alarm,prompt警,提示信息,并输出为数值。Page 9 of 22a)General alarm definition:it does not affect product quality/safety,equipmentefficiency /DT time,does not require personnel operation,and the operation实操派文库一最全的工业自动化手册indicator light is green or yellow.一般报警定义:不影响产品质量/安全、不影响设备效率/DT时间、不需要人员操作、运行指示灯为绿色或黄色的。Definition of serious alarm:the quality/safety of the product,the efficiency /DTtime of the equipment,the operation confirmation of personnel in HMI or upperputer,the operation indicator is red and there is an alarm buzzer.严重报警定义:对产品的质量/安全、对设备的效率DT时间、需要人员在HM公或上位机操作确认、运行指示灯为红色及有报警蜂鸣器的。人9)Reduce use of SET (SET)or reset (RSE)in a program unless necessary.In case of anyspecial circumstances,.please confirm with the equipment department..程序红如无必要,尽量减少SET与RSE指令的使用。如有特殊情况,需向设备部门沟通确认。10)The alarm needs to be self-locked,and the alarm can be cleared through the alarm clearbutton when alarm status is clear..报警需要自锁,报警状态清除后可通过报警清除按钮进行报警清除。11)In the program,the driving signal of actuator (servo,cylinder,linear motor,etc.)shallhave safety restriction conditions.Manual operate the actuator will pop up a windowprompt indicating security conditions when safety conditions are not met.程序中执行机构(何服、气缸、直线电机等包括但不限于)的驱动信号要有安全限制条件,无论手/自动/其它模式下,必须满足安全保护条件,动作才可以触发。(安全条件不满足时如果手动操作执行机构会弹出界面提示并说明安全条件)R1000实操派文库一最全的工业操派文库R20000安全条件最全的工业自动g1000学p6.l.4 Program functional requirements程序功能要求The function block of equipment action step sequence process is established in the program,and the number of steps executed by the current equipment is displayed in HMI.The currentstatus of each step action (normal operation,execution pletion,action delay)needs to bePage 10 of 22clearly reflected in HMI,so that the on-site maintenance personnel can quickly locate the fault实操派文库一最全的工山oint and remove the fault.在程序中建立设备动作步序流程功能块,并且要在HMI中显示当前设备执行的步数,各步序动作当前状态(正常运行、执行完毕、动作延误)需要在HMI中清晰的体现出来,方便现场维护人员能快速定位故障点,并且排除故障。返回手册下到一d)Debug空循环调试功能子程序The program should have the debugging function,which is convenient to detect the stability ofthe device during FAT phase and cutting and changing of the device,and facilitate thecentralized improvement for the exposed problem points of the device.程序中应该具备Dbug调试功能,方便在设备的FAT阶段及切拉换型时检测设备的稳定性,便于针对设备暴露的问题点进行集中改善。实操派文库一最全的工业自Communication status monitoring通讯状态监控The program should be equipped with munication status monitoring (munication IPaddress/device heartbeat/upper puter/laser /MES/CCD)and displayed in HMI to facilitatemaintenance personnel to quickly judge and deal with faults.程序中应该具备通讯状态监控,(通讯IP地址/设备心跳/上位机/激光器MES/CCD)并且显示在HMI中,方便维护人员快速判断及处理故障。化手Machine clear material整机清料功能子程序下When the production of the equipment is finished or the product is finished,the materialcleaning function is started to clear the materials left or buffered in the fixture,so as to reducethe material loss caused by the end of production.Specific control requirements:control panelcleaning button (red)or touch screen total cleaning button is turned on to meet the mediumconditions of switch in automatic gear and total automatic,and enter the general cleaningpreparation state;after the total cleaning preparation delay is 3 seconds,click the touch screenconfirm button to enter the total cleaning.(Execute the material cleaning procedure after thepletion of the normal production process)当设备结束生产或产品收尾换型时,启动清料功能,清除设备夹具内遗留或者缓存的物料,减少因为结束生产带来的物料损耗。具体控制要求:控制面板清料按钮(红色)或触摸屏总清料按钮接通,满足切换开关位于Page 11 of 22实操派文库自动挡、总自动中等条件,进入总清料准备状态;总清料准备延时3秒后,点击触摸屏确认按钮,设备进入总清料中。(按照正常生产工艺流程完成以后,再执行清料程序)The function subroutine is run independently in the manual state at the key station关键工位最全的工业手动状态下独立循环运行功能子程序The program should have a single station operation,which is convenient for maintenancepersonnel to install and debug a certain station of the equipment,so as to avoid the waste ofmaterials and reduce the installation and debugging time.程序中应该具备单工位运行,方便维护人员针对设备的某一个工位进行安装调试,从而避免造成物料的浪费和降低安装调试时间。h)Strip restoration带料复位功能子程序The program should have the reset function of the whole equipment with material to reduce thematerial loss caused by the equipment reset.程序中应该具备设备整机带料复位功能,减少因为设备复位产生的物料损耗,在安全条件下,可运行待料复位。Fixture shield夹具屏蔽功能子程序The program should have a fixture shielding function to reduce downtiome due to mechanicalhardware damage,程序中应该具备夹具的屏蔽功能,减少因为机械硬件的损坏而带来的设备故障时间。Simplex reset单工位复位功能子程序The program should be equipped with simplex rest function to avoid the plete machineinitialization due to the failure of reset of a certain station,so as to ensure production efficiencyand material saving.程序中应该具备单工位复位功能,避免因为某一个工位的故障不能复位而导致整机初始化,保证生产效率和物料节约。实操派文库Torque Monitoring Function轴扭矩监控功能实l2)Real time torque display value::motor torque real-time value feedback display..实时转矩显示值:电机转矩实时值反馈显示。13)Real time maximum torque:the average value of the maximum absolute torque value ofthe shaft moving back and forth for ten cycles in normal operation mainly providesreference for torque warning and shutdown alarm setting value..实时转矩最大值:正常运行中轴来回运动十个周期的转矩绝对值的最大值的平均值主要为转矩预警及停机报警设定值提供参考。14)Torque pre warning setting value:it is obtained according to the maximum value of real-time torque *25%,and the set value can be manually input (login with high authority)innormal operation,when the real-time torque exceeds the set value of early warning,theequipment will give an alarm without stopping the machine and count.转矩预警设定值:根据实时转矩最大值25%得出,可手动输入设定值(需登陆高权限)正常运行中实时转矩超过预警设定值设备报警,不停机,计数。15)Set value of torque shutdown:according to the maximum value of real-time torque60%,the set value can be manually input (login high authority is required).In normaloperation,the real-time torque exceeds the set value of early warning,and the equipmentalarms,.stops and counts.转矩停机设定值:根据实时转矩最大值60%得出,可手动Page 12 of 22
文档评分
    请如实的对该文档进行评分
  • 0
发表评论

"π³ 实操派",培养中高端PLC工程师,PLC培训-Codesys培训

项目实战 手把手教学 微信&电话 15850116008
超2000节系统化课程,汇川优秀自动化讲师亲授!学一门Codesys,玩800家PLC仅剩少量名额
点击免费试听

到实操派,学PLC就是快!

扫码领取工控文库VIP

钻石VIP先到先得

服务电话 & 微信:9:00-22:00

15850116008

苏州实操派科技有限公司

公司地址:江苏省苏州市吴中区越溪街道天鹅荡路5号31B13

Copyright © 苏州实操派科技有限公司 2022 到实操派,学PLC就是快!工业自动化业务培训适用人群:成人 ( 苏ICP备2022021576号-3 )

公司地址:江苏省苏州市吴中区越溪街道天鹅荡路5号31B13

返回顶部