濡?浣??╃??ODBUS浠跨??杞?欢娴?璇?MODBUS椹卞??/h1>

涓???璺ㄥ钩?板??舵?版???缁???

1??I/O椹卞?ㄧ???

?????板缓modbus(TCP/IP)椹卞???璁惧?瀹?涔?瀵硅?妗?涓???椤硅?缃????规????瑕?杩?琛?璋??达?姝ゅ???浣跨?ㄩ?璁よ?缃???

image001.png

TCP璁剧疆瀵硅?妗?

????TCP/IP瀵硅?妗?锛?涓昏?澶?IP?板??濉???杩?琛?MODBUS浠跨??杞?欢??涓绘?虹??IP?板??锛??ヤ娇?ㄤ?缃??℃????浣?璁惧?锛???濉????稿?IP?板????

image003.png

TCP璁剧疆瀵硅?妗?

????璁惧?瀹?涔?-???涔?瀵硅?妗?锛?浣跨?ㄩ?璁よ?缃??冲????

image005.png

璁惧?瀹?涔?-???涔?瀵硅?妗?

2???版????圭???

?????板缓妯℃??? a1锛??ㄢ??杩??モ????椤瑰?′腑?瑰?烩??澧?????锛???璁惧?/?版????????╁??寤虹???MODBUS锛????烩??杩??ラ」??锛???/O杩??ラ」瀹?涔?瀵硅?妗?涓??????R淇???瀵?瀛?????版??被??????瀛?????绗﹀?锋?村舰??

image007.png

I/O杩??ラ」瀹?涔?瀵硅?妗?

????涓?杩扮???瀹?????锛?淇?瀛??冲????

浜???璁剧疆MODBUS浠跨??杞?欢

????浣跨??ODBUS浠跨??杞?欢ModSim32锛????昏?琛?modsim32.exe??

image009.png

MODBUS浠跨??杞?欢ModSim32

image011.png

ModSim32

????渚?娆$?瑰??ile-new锛??板缓ModSim浠跨??宸ョ?锛?Length杈???0??

image013.png

ModSim浠跨??宸ョ?

????渚?娆$?瑰??onnection-connect-Modbus/TCP svr锛??ㄥ脊?虹??绔??h?缃?腑杈??ョ??e?凤?涓????璁や负502锛?????淇??广??
????娉??姝ょ??e?疯?涓?璺ㄥ钩?板??舵?版???I/O椹卞?ㄧ????稿????

image015.png
image017.png

TCP绔??e?疯?缃?/p>

?????瑰?荤‘瀹???锛?ModSim32璁剧疆瀹?姣???

涓???杩?琛?娴?璇?

????杩?琛?缁???濂界??宸ョ?锛????讳换?℃???充?瑙???I/O绠$??????ョ??椹卞?ㄨ??ョ?舵????

image019.png

椹卞?ㄨ??ユ????

???????讳换?℃???充?瑙???DB绠$????????㈣?斥??tag????椤瑰?★????烩??PV??琛?锛?杈??ユ?板?笺??

image021.png
image023.png

浣跨??B绠$???ㄤ?缃??版??/p>

??????寮?ModSim32绐??o??ョ??瀵?瀛??ㄤ腑?版????

image025.png

?版???缃?????

????????odsim宸ョ?40001浣?锛??瑰?烩??Auto Simulation???????浣?odsim浜х???版????

image027.png
image029.png

?鹃??Enabled

????浠ヤ?璁剧疆琛ㄧず姣?绉?浜х??涓?涓?-32767???村???????烘??br>??????寮?DB绠$??????ョ??妯℃????1??PV?????舵????

image031.png

????姝e父

????娉ㄦ??浜?椤?/p>

????1??璺ㄥ钩?板??舵?版???涓绘?轰?ModSim32涓绘?虹?缁??藉?浜??歌?????
????2??椹卞?ㄧ??h?涓?ModSim32璁剧疆涓??淬??
????3??I/O杩??ラ」???版??被??瑕?姝g‘璁剧疆??

Baidu
sogou