Codesys浣跨敤-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 1038|鍥炲: 0

Codesys浣跨敤

[澶嶅埗閾炬帴]

璇ョ敤鎴蜂粠鏈鍒

鍙戣〃浜 2023-4-12 23:14:41 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
Codesys浣跨敤

1.Codesys宸ョ▼鍒涘缓

File--->New Project
閫夋嫨鈥淪tandard project鈥濓紝濉叆宸ョ▼鍚嶏紝閫夋嫨宸ョ▼瀛樻斁璺緞锛岀‘瀹氬嵆鍙
Codesys浣跨敤-1.jpg


2.榛樿Deviec,PLC_PRG in杩欓噷閫夋嫨寮鍙戣瑷锛屾垜杩欓噷閫夋嫨ST璇█锛屽鍥撅紝鐒跺悗OK锛
Codesys浣跨敤-2.jpg


瀹屾垚鍚庡鍥撅細
Codesys浣跨敤-3.jpg


3.鍦ㄥ伐绋嬪垱寤哄畬鎴愬悗锛岄渶瑕佹坊鍔燚evicede lib鏂囦欢銆
鑿滃崟鏍--->Tools--->Library Repository--->Install锛
閫変腑瑕佸姞杞界殑lib鏂囦欢锛屽姞杞藉嵆鍙紱
4.鍔犺浇璁惧鐨剎ml鏂囦欢锛堣澶囨弿杩版枃浠讹級鍜宔ds鏂囦欢锛圕ANopen鍦板潃鏄犲皠锛夛紱
鑿滃崟鏍--->Tools--->Device Repository--->Install锛
閫変腑瑕佸姞杞界殑xml鏂囦欢鍜宔ds鏂囦欢锛屽姞杞藉嵆鍙紱
5.娣诲姞浠g爜娈
鍦ˋpplication鍙抽敭锛孉dd object--->Add POU;
閫夋嫨寮鍙戣瑷锛屽湪杩欓噷閫夋嫨ST璇█锛屾洿鏀规枃浠跺悕绉帮紝濡傚浘
Codesys浣跨敤-4.jpg


6.MainTask閰嶇疆
MaainTask鍙互鐢ㄦ潵绠$悊浠g爜锛屽喅瀹氭墽琛屽摢涓娈典唬鐮侊紝璁剧疆浠g爜寰幆鍛ㄦ湡锛
7.娣诲姞澶栭儴椹卞姩璁惧
鍦―evice鍙抽敭锛孉dd Device锛岄変腑闇瑕佹坊鍔犵殑椹卞姩妯″潡鍗冲彲锛屽CANbus銆
浠ュお缃戙佷覆鍙g瓑锛屽墠鎻愭槸蹇呴』瑕佸鍏ヨ繖浜涜澶囩殑xml鏂囦欢锛屼笉鐒舵棤娉曟甯稿伐浣溿
Codesys浣跨敤-5.jpg


8.鍦ㄩ┍鍔ㄨ澶囦笅锛屾坊鍔犻氳鍗忚
鍦ㄧ浉搴旇澶囦笂鍙抽敭锛孉dd Device锛屽鍦–ANbus涓婂彸閿紝閫変腑Add Device锛屽彲浠ユ坊鍔燙ANopenManager锛屽鍥撅細
Codesys浣跨敤-6.jpg


娣诲姞鎴愬姛鍚庯紝灏卞彲浠ユ敮鎸丆ANopen鐨勮澶囦簡銆
9.鍦–ANopenManager鍙抽敭锛屽彲娣诲姞CANopen璁惧銆
Add Device锛岄変腑闇瑕佹坊鍔犵殑璁惧鏂囦欢锛屽鍥
Codesys浣跨敤-7.jpg


杩欐牱灏卞彲浠ュ璇ヨ澶囪繘琛屽弬鏁版槧灏勩
10.CANopen鍙傛暟鏄犲皠
鍙傛暟鏄犲皠鍖呭惈SDO鍜孭DO涓ょ锛孲DO閫氬父鐢ㄦ潵鍙戦侀厤缃寘锛孭DO姝e父鏁版嵁浼犺緭銆
11.寮濮嬭繛鎺ヨ澶
鍙屽嚮椤圭洰锛岀劧鍚庣偣鍑籗can Network锛屽彲浠ユ壂鎻忚澶囷紝鎵弿鍒颁箣鍚庯紝閫変腑璁惧锛屽彲浠ュ紑濮嬭繛鎺ャ
Codesys浣跨敤-8.jpg




12.閾炬帴濂借澶囧悗锛岀▼搴忕紪璇戯紝鏃犳姤閿欙紝鍒欏彲浠ョ儳褰曠▼搴忓埌PLC銆
Codesys浣跨敤-10.jpg


13.鐑у綍瀹屾垚鍚庯紝杩愯锛堥娆$儳褰曟柊浠g爜锛屼竴瀹氳鎵嬪姩杩愯涓嬶紝鍚﹀垯涓嶄細涓诲姩杩愯锛夛紝濡傛灉璁惧杩愯姝e父锛屽垯浼氭湁缁胯壊鐨勮繍琛屽浘鏍囷紱鑻ヨ繍琛屽け璐ワ紝鍒欎細鏈夐粍鑹茬殑鍙瑰彿鍥炬爣锛堟鏃跺氨闇瑕佹帓鏌ヨ澶囨槸鍚﹁繛鎺ユ甯革紝鏄惁姝e父宸ヤ綔锛夈
14.鑻ヤ粠鍒汉鎷疯礉杩囨潵鐨勫伐绋嬫枃浠讹紝鎵撳紑鍚庯紝璁惧杈逛笂鐩存帴涓虹孩鑹插徆鍙凤紝鍒欒鏄庤澶囨弿杩版枃浠秞ml鏈畨瑁呮垨鏈洿鏂帮紝闇瑕佹洿鏂颁笅銆
鏈汉涔熸槸瀛︿範涓嶄箙锛屽悗缁細缁х画娣诲姞瀹屽杽銆
+10
涓嶈禐涓涓紵
鎵撹祻榧撳姳涓涓嬶紒
鍥炲

浣跨敤閬撳叿 涓炬姤

鎮ㄩ渶瑕佺櫥褰曞悗鎵嶅彲浠ュ洖甯 鐧诲綍 | 绔嬪嵆娉ㄥ唽 鏂版氮寰崥鐧婚檰

鏈増绉垎瑙勫垯

椤堕儴qrcode搴曢儴
鍏虫敞閰峰痉缃戣闃呭彿锛岃幏鍙栨洿澶氳祫璁紒

QQ|灏忛粦灞|鎵嬫満鐗|Archiver|閰峰痉璁哄潧 ( 鑻廔CP澶16065247鍙-1 )|缃戠珯鍦板浘

GMT+8, 2024-11-23 20:01 , Processed in 0.150720 second(s), 60 queries .

閰峰痉缃

© 2001-2013 Hicodesys. 鎶鏈敮鎸 by 閰峰痉缃

蹇熷洖澶 杩斿洖椤堕儴 杩斿洖鍒楄〃