西门子S7-300程序块加密与解密
(2017-03-06 15:59:38)
标签:
plc培训电气设计培训工控老鬼启程自动化培训西门子plc |
分类: 启程PLC培训 |
OB,FC,FB,DB程序的加密:
一,先要把需加密的块生成源文件
打开任意一个程序编辑页面
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811fzw2jl5doyyyj02j.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811e0hzjumxs0whk9jg.png
设置完以后系统会自动生成各个块的源文件
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811airj42n4i1dzjnu2.png
如果有的块没有自动生成源文件,我们可以使用下面的方法手动生成源文件
方法一:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811kdtejvpb6vwt6bjt.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812v664c3g3cq6ll0lq.png
方法二:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812yirrin8brhhmqr4n.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812zj21z31qb8seq1xy.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812ujax3yvarztqy9ma.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812z6agab1dttcppgxz.png
二,给需要加密块进行加密
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813k96mwg2w7y51zggg.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813yajp4rje3mmnjx3n.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813y4orr3s44s3o6r14.png
特别提示,给OB块加密的时候有些不同,见截图
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813lopn2rrnl2p8i2xb.png
加密完成,下面我们打开加密的OB1测试一下
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813wixs45xlz002xx52.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813jyvzlxv9xvzv8yvx.png
加密后我们就可以把加了密的源文件删除(自己的程序里面要保留),或者导出源文件,导出后在将程序里的源文件删除,下次需要打开加密的块时在导入源文件进行解密。
导出源文件的方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814c1iguvh7z2xz7vix.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814jz4zx6fegge0m6le.png
导入源文件的方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814so90mji2jo1h3eho.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814vtoead1jqkdtdtzz.png
三,解密方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814ij6n0pc0mp73r7m6.png
然后保存,编译.
一,先要把需加密的块生成源文件
打开任意一个程序编辑页面
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811fzw2jl5doyyyj02j.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811e0hzjumxs0whk9jg.png
设置完以后系统会自动生成各个块的源文件
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811airj42n4i1dzjnu2.png
如果有的块没有自动生成源文件,我们可以使用下面的方法手动生成源文件
方法一:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155811kdtejvpb6vwt6bjt.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812v664c3g3cq6ll0lq.png
方法二:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812yirrin8brhhmqr4n.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812zj21z31qb8seq1xy.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812ujax3yvarztqy9ma.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155812z6agab1dttcppgxz.png
二,给需要加密块进行加密
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813k96mwg2w7y51zggg.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813yajp4rje3mmnjx3n.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813y4orr3s44s3o6r14.png
特别提示,给OB块加密的时候有些不同,见截图
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813lopn2rrnl2p8i2xb.png
加密完成,下面我们打开加密的OB1测试一下
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813wixs45xlz002xx52.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155813jyvzlxv9xvzv8yvx.png
加密后我们就可以把加了密的源文件删除(自己的程序里面要保留),或者导出源文件,导出后在将程序里的源文件删除,下次需要打开加密的块时在导入源文件进行解密。
导出源文件的方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814c1iguvh7z2xz7vix.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814jz4zx6fegge0m6le.png
导入源文件的方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814so90mji2jo1h3eho.png
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814vtoead1jqkdtdtzz.png
三,解密方法:
http://bbs.qichengplc.com/data/attachment/forum/201703/06/155814ij6n0pc0mp73r7m6.png
然后保存,编译.