虎符电竞官网

关注官方微信

en

EN.

chanpinzhongxin

产品中心

设备远程控制——三菱PLC远程控制方案

发布时间:2009-09-07 作者:上海卓岚 浏览量:1040

benwenjieshaoplcyuanchengkongzhideyuanliyijishiyongzhuolanzlanxiliechuankoufuwuqishixiangezhongxinghaodeplcyuanchenglianjiedefangfa。

1. PLC远程控制原理
1.1 概述

muqianshebeiyuanchengkongzhizaiyuanchengshujucaiji、anfang、shebeijiankongdenglingyudedaoguangfanyingyong。benwenyisanlingplcdeyuanchengkongzhiweilijiangshuzhuolanlianwangchanpinzaishebeiyuanchengkongzhifangmiandeyingyong。shoucitichuleyumingxitong、natjishu、duanwanghuifujizhishishixianshebeiyuanchengkongzhidesandaguanjianjishu。

zaigaiyingyonganlizhong,yonghujuyoufenbuyushijiegedideplc,yonghuxiangtongguorenheyitainenggoulianjiedaointernetdejisuanjiduiplcdegongzuozhuangtaijinxingfangwenhexiugai。yuanchengkongzhijishu,bimianleyonghuxuyaodaoxianchangzhenduandemafan,jieshenglerenliwuli。

上海卓岚科技的联网产品包括:嵌入式设备联网模块串口服务器等。使用卓岚联网设备进行设备远程监控的示意图如下图所示。

rutusuoshijiaruyonghushebeishiyigeleisiplcdedaichuankou(db9)deshebei,zekeyitongguozhuolanchuankoufuwuqilianjiedaowangluo;ruguoyonghushebeidianlubanshikeyizhongxinshejide,zekeyixuanyongzhuolanlianwangmokuai,bingjiangqijichengdaoyonghudianluban。liangzhongfanganzaiyuanlishangshixiangtongde。

在远程计算机端,卓岚科技提供了3种方式方便用户和联网产品通信:
1.卓岚设备管理DLL+VB等程序。提供的DLL设备管理函数库,可以被用户程序所调用,用户只需使用提供的open、close、send、recv函数,即可实现通信。
2.串口程序+虚拟串口驱动。例如三菱PLC需要通过MELSOFT开发环境和PLC通信,某些Modbus设备则通过三维力控软件和设备通信,它们都是现成的串口程序。使用卓岚虚拟串口驱动,可以在网络化升级后,仍然使用这些串口程序。
3.Socket网络程序:对于高级用户,可以选择通过TCP/IP直接和联网产品通信。

1.2 域名(DNS)系统

yumingxitongdezhichishiyuanchengkongzhideguanjianjishu。muqianwangluojieruyiadsljieruwangluozhanjuedaduoshu,danshiruoyuanchengjisuanjitongguoadsllianwang,meicideipshibutong,bixujiejueshebeiruhezhidaoyuanchengjisuanjiipdewenti,jiejuedefangfashidongtaiyumingxitong。

zaizhuolanyuanchengkongzhijishuzhong,yuanchengjisuanjitongguodongtaiyumingfuwuzaimeicilianwangshidoukeyihuodequanqiuweiyideyuming,liruyourname.gicp.com。zhuolanlianwangchanpinzhichiyuming,keyiyongyumingzhidingtongxindedemudedizhi,lirujiangqishezhiweiyourname.gicp.com。

zheiyang,wulunyuanchengjisuanjizaiheshiheditongguoadsljieruwangluo,zhuolanlianwangchanpindoukeyizaidiyishijianheqijianlitcplianjie。

1.3 网络地址映射(NAT)技术

natjishushijiejuelianggeneiwangzhijianjisuanjiruhehuliandejishu。duiyuchucijiechutcp/ipdeyonghu,kenengduiyuneiwangip(liru192.168.0.200)、waiwangip(liru114.123.223.12)、waiwangjisuanjiruhefangwenneiwangjisuanjibijiaomihuo。waiwangjisuanjilianjieneiwangjisuanjishi,bunengjiandandixianggaijisuanjideneiwangipfaqilianjie。zheiliguanxidaowangluodizhiyingshenatjishu。natjishukeyizaiadslluyouqishangzuoyigenatyingshe,jiangyonghudeneiwangipyingsheweiwaiwangipheduankou。

zaizhuolandeshebeiyuanchengkongzhiyingyonganlizhong,tigongleruheshiyongwangluodizhiyingshe(nat)jishushixianwangluolianjiedecaozuobuzhou,youyupianfusuoxianzheilibuxiangshu。

1.4 创新的断网恢复机制

tcplianjiedebuzhengchangzhongduanzaishebeiyuanchengjiankongzhongbizaijuyuwangzhonggengjiachangjian,yinweizaiinternethuanjingxia,zhongjianderenheyitailuyouqichuxianwentidoukeyidaozhilianjiezhongduan。

duanwangzaiyuanchengjiankongzhongchanshengruxiawenti:jiarukehuduanhefuwuduanjianlitcplianjiehou,fuwuduanyouyudiaodiandengyuanyinzhongxinqidong,neimekehuduanjiangbuzainenggouhefuwuduanjianlilianjie。yuanyinhenjiandan,yinweikehuduanrenweilianjieyijingjianli,zheidaozhilefuwuduanwufaxiangkehuduanfasongshuju。

xintiaobaojishushimuqianchangjiandeduanwanghuifujizhi,danshigaifanganbingmeiyouxierutcp/ipguifan,yuanshishixintiaobaojishucunzaihenduozhengyidefuyingxiang,liruzengjialewangluofudandeng。

zhuolandeshebeiguanlidllkuhexunichuankouqudongneibujichenglechuangxindeduanwanghuifujizhi,caiyongyouyuxintiaobaodejishu,keyizaifuwuduan、kehuduan、zhongjianluyouqirenheyifangduanwangqingkuangxia,xunsuhuifulianjie。

yumingxitong、natjishu、duanwanghuifudengguanjianjishubaozhengleshiyongzhuolanchanpinzaishixianplcdeyuanchengjiankongfangmiandefangbianxing、wendingxing。

2. PLC远程实例
2.1 三菱FX系列

yunxinggx developer,bingdakaijiyufxxiliecpuzhizuodegongcheng。danji“zaixian/chuanshushezhi”,xuanzepeizhihaodexunichuankou。kezhichizaiinternetqingkuangxiadeduqu、xieruplcdechengxu。

2.2 三菱Q系列

qxiliedeplcbutongyufxxiliexuyaojinxingteshudepeizhi,jutiqingxunwenzhuolanjishugongchengshi。

2.3 西门子S7-200系列

zaishiyongximenzidejichengkaifahuanjingmicro-win step7duiplcjinxingyuanchengjiankongshi,qingzaipc/ppidepeizhizhongxuanzexuyaodejiankongdeplcdexunichuankouhao。zhuyi:ruguoshitongguointernetjinxingjiankong,neimeqingzixunzhuolangongchengshi,guanyuruguopeizhistep7《tigaomicro_windeppixieyichaxundengdaishijianfangfa》dejutixi。

2.4 KRYENCE系列

zheiliyijienshidekz-40rweilijieshao。keyenceruanjianzhirencom1hecom2,suoyizheilixianyongzlvircomruanjianchuangjianxunichuankoucom2。jiangkeyencederuanjianfangdaocpan,yunxinglbk.exe。ranhoudianjifile->communication setup->plc communication parameter setup…。zaidakaideduihuakuangzhongxuanzesetting->serial port。xuanzexunichuankoucom2。dianjiokhouguanbisuoyoukeyencedechengxu,zhongxindakai。zhongxindakailbk.exechengxuhou,jiazaiyigegongchengwenjian。ranhoudianji“transfer to plc”anniu,jikexiazaichengxu。

2.5 松下PLC

keyishiyongsongxiadefp-x c40tlianjiezlan2100jinxingyuanchengchengxuxiazaiheshangzai。lianjieshiyiturushangtusuoshi。

2.6 LG系列PLC

zheilijieshaolg plck200sxiliemaster-k200s。yuanchengxiazairuanjianjiemianruxia:

yixiashizhuolanzlsn2100helgdemaster-k120sxinghaoplclianjiehejinxingyuanchengkongzhideshijilianjietu

2.7 和利时系列PLC

cichujiyuhelishilm3108,jiangzhuolanchuankoufuwuqihelm3108jinxingyingjianshangdelianjie,tongguozaiyuanduanfuwuqishangxunichuankou,ranhoutongguopowerprohexunichulaidecom20jinxingtongxun,shixianplcdeyuanchengxiazaihekongzhi,ruanjianjiemianrutusuoshi。