PLC编程:三菱FX2N,三个电动机顺序启动、顺序停止,间隔均是两秒的梯形图和IO接线图 一条流水线由三菱fx2n的plc控制,三个电机顺序启动逆序停...
\u6025\u6c42\u4e09\u83f1plc\u7535\u673a\u987a\u5e8f\u542f\u52a8\uff0c\u987a\u5e8f\u505c\u6b62\uff0c\u5faa\u73af3\u6b21\u68af\u5f62\u56fe\u3002\u4e0d\u660e\u767d.
\u4f60\u5148\u8981\u8bf4\u6e05\u695a,\u987a\u5e8f\u542f\u505c,\u5355\u72ec\u542f\u505c\u662f\u5728\u4e0d\u540c\u6a21\u5f0f\u4e0b\u5417?
\u5426\u5219\u662f\u4e00\u5bf9\u77db\u76fe\u554a.
\u82e5\u662f\u5355\u52a8/\u81ea\u52a8\u72b6\u6001\u7684\u8bdd:
\u95f4\u9694\u4e24\u79d2\u987a\u5e8f\u542f\u505c,\u7528\u5b9a\u65f6\u5668+\u79fb\u4f4d.
\u542f\u505c\u5c31\u4e0d\u7528\u8bf4\u4e86\u5427.
ld m8002 //\u521d\u59cb\u5316
or m4 //\u4e3a\u4e86\u5faa\u73af
mov 1 k4m0
ldi t10 //\u4e24\u79d2\u95f4\u9694
out t10 20
ld t10 //\u79fb\u4f4d
mul k4m0 2
ld X1 //\u5355\u52a8...
//\u8fd9\u4e2a\u4e0d\u7528\u8bf4\u4e86\u5427...//
ld m0 //\u81ea\u52a8\u6a21\u5f0f\u4f7f\u80fd
ani x1 //\u81ea\u52a8\u6a21\u5f0f
ld m11 //\u5355\u52a8\u6a21\u5f0f\u4e0b\u4f7f\u80fd
and x1 //\u5355\u52a8\u6a21\u5f0f
old
out y0 //\u7535\u673a1
......
\u5269\u4e0b\u4e0d\u7528\u518d\u8bf4\u4e86\u5427.
\u4e0a\u6b21\u8fd9\u4e2a\u95ee\u9898\u5df2\u7ecf\u5e16\u51fa\u68af\u5f62\u56fe\u7ed9\u60a8\u4e86\uff0c\u867d\u7136\u60a8\u8bf4\u5e0c\u671b\u6709\u6307\u4ee4\u8868\uff0c\u4f46\u662f\u6211\u7684\u6307\u4ee4\u8868\u88ab\u767e\u5ea6\u5224\u4e3a\u8fdd\u53cd\u767e\u5ea6\u89c4\u8303\uff0c\u6211\u4e0d\u77e5\u9053\u4ed6\u4eec\u662f\u5982\u4f55\u5224\u5b9a\u7684\uff0c\u867d\u7136\u6211\u5df2\u7ecf\u53d1\u8d77\u7533\u8bc9\uff0c\u4f46\u662f\u4f30\u8ba1\u4ed6\u4eec\u4e0d\u4f1a\u7406\u776c\u3002
\u6240\u4ee5\uff0c\u8fd9\u91cc\u68af\u5f62\u56fe\u6211\u4e0d\u5e16\u4e86\uff0c\u6211\u53ea\u8d34\u51fa\u6307\u4ee4\u8868\u7684\u56fe\uff0c\u6211\u4f30\u8ba1\u76f4\u63a5\u8f93\u5165\u6307\u4ee4\u8868\u56de\u7b54\u4e5f\u4e0d\u4f1a\u88ab\u663e\u793a\uff0c\u5e0c\u671b\u5e16\u56fe\u7684\u65b9\u5f0f\u80fd\u663e\u793a\u51fa\u6765\u5427\u3002
如图所示,望采纳。。。。。。
绛旓細銆愮瓟妗堛戯細绛旀锛氶┍鍔ㄥ鐞嗐佽浆绉绘潯浠 瑙f瀽锛欶X2N绯诲垪PLC鐨姝ヨ繘姊舰鎸囦护鏄噰鐢ㄦ杩涙褰㈠浘缂栧埗椤哄簭鎺у埗鐘舵佽浆绉诲浘绋嬪簭鐨勬寚浠わ紝瀹冨寘鎷琒TL鍜孯ET涓ゆ潯鎸囦护銆傛瘡涓姸鎬佹彁渚涗簡涓変釜鍔熻兘:椹卞姩澶勭悊銆佽浆绉绘潯浠跺強鐩哥户鐘舵併傚鍦ㄧ姸鎬丼20,椹卞姩鎺ラ氳緭鍑篩00锛屽綋杞Щ鏉′欢X001鎺ラ氬悗锛屽伐浣滅姸鎬佷粠S20杞Щ鍒扮浉缁х姸鎬丼21,鐘舵丼20鑷姩澶...
绛旓細浣犲厛瑕佽娓呮,椤哄簭鍚仠,鍗曠嫭鍚仠鏄湪涓嶅悓妯″紡涓嬪悧?鍚﹀垯鏄竴瀵圭煕鐩惧晩.鑻ユ槸鍗曞姩/鑷姩鐘舵佺殑璇:闂撮殧涓ょ椤哄簭鍚仠,鐢ㄥ畾鏃跺櫒+绉讳綅.鍚仠灏变笉鐢ㄨ浜嗗惂.ld m8002 //鍒濆鍖 or m4 //涓轰簡寰幆 mov 1 k4m0 ldi t10 //涓ょ闂撮殧 out t10 20 ld t10 //绉讳綅 mul k4m0 2 ld X1 ...
绛旓細濡傚浘鎵绀猴紝鏈涢噰绾炽傘傘
绛旓細鏄嗕粦閫氭佷娇鐢涓夎彵 PLC FX2N 閫氫俊鍙f墿灞 485 鎺ュ彛閫氳繃涓撶敤鍗忚瀵 PLC 绔欑偣鐩稿簲瀵勫瓨鍣ㄨ繘琛岃鍐欐搷浣滐紝 浠庤屽疄鐜板绔欑偣宸ヤ綔鐘舵佺殑鎺у埗銆傝繖绉嶆儏鍐典笅涓夎彵PLC涓撶敤鏃犵嚎閫氳缁堢鈥斺擠TD435MC锛屽彲浠ヤ娇璁$畻鏈鸿繙绋嬫棤绾跨洃鎺ц繙绋嬬珯鐐广傝タ瀹夎揪娉扮數瀛,缁勬佺帇鏃犵嚎,宸ヤ笟鏃犵嚎閫氳锛屾棤绾plc,杈炬嘲鐢靛瓙,鏃犵嚎鏀跺彂妯″潡,宸ュ巶鏀归犳垚鍔熸渚,...
绛旓細X1銆乆2銆乆3鍒嗗埆涓轰紶閫佸甫1銆2銆3瀵瑰簲鐨勪紶鎰熷櫒杈撳嚭淇″彿 Y1銆乊2銆乊3鍒嗗埆涓轰紶閫佸甫1銆2銆3瀵瑰簲鐨勬帶鍒剁數鏈虹殑杈撳嚭鐐 鍥犺姹傛棤杞界墿涓嶅姩浣滐紝鏁呬笉闇瑕佷繚鎸佺數璺紝浣嗗簲鑰冭檻浼犳劅鍣ㄤ箣闂寸殑杞界墿涓嶈兘浼犻佺殑鍙兘锛屽簲鍔犲叆寤舵椂鐢佃矾銆
绛旓細1銆佽繛鎺ュ氨鏄儚骞冲父鐨PLC鎵╁睍涓鏍风敤鑷甫鐨勮繛鎺ョ嚎渚濇杩炴帴灏辫浜嗐傛垜8骞村墠鍋氳繃鐢ㄤ竴涓80鐐圭殑FX2N杩炴帴涓涓10GM鍜20GM鍙疄鐜扮畝鍗曠殑瀹氫綅鍔犲伐鍜屽浘褰㈠鐞嗗姛鑳藉綋鐒讹紝濡傛灉浣犲彧鏄帶鍒惰繖3鍙版澗涓嬩己鏈嶇殑璇濓紝浣犲彲浠ョ洿鎺ョ敤10GM鍜20GM灏卞彲浠ヤ簡锛岃繕鐪佷笅涓狿LC銆備綘鐢ㄧ殑鏄珮閫熻剦鍐茶緭鍑烘ā鍧楋紝鍔熻兘娌℃湁GM寮猴紝浣嗗悓鏍峰彲浠ュ疄鐜...
绛旓細涓夎彵FX2N涓嶧X3UPLC涔嬮棿鐨勪富瑕佸尯鍒綋鐜板湪浠ヤ笅鍑犱釜鍏抽敭鏂归潰锛氶鍏堬紝FX2N鍙互鐪嬩綔鏄疐X2鐨勫崌绾х増锛屽叾浼樺娍鍦ㄤ簬鎵╁睍浜嗚剦鍐茶緭鍑虹鍙o紝鎻愪緵浜嗘洿澶氱殑鎸囦护閫夐」锛岃繖浣垮緱缂栫▼鏇村姞渚挎嵎涓斿簲鐢ㄧǔ瀹氭у緱浠ユ彁鍗囥傝缁嗙殑鐗规у彲浠ラ氳繃闃呰鍏剁敤鎴锋墜鍐屾潵娣卞叆浜嗚В銆傚叾娆★紝FX3U鍦ㄧ偣浣嶆暟閲忎笂鏈夋墍澧炲姞锛屾渶澶氭敮鎸4杞达紙瀵逛簬涓嶅お涓撲笟鐨勭敤鎴...
绛旓細涓婃杩欎釜闂宸茬粡甯栧嚭姊舰鍥剧粰鎮ㄤ簡锛岃櫧鐒舵偍璇村笇鏈涙湁鎸囦护琛紝浣嗘槸鎴戠殑鎸囦护琛ㄨ鐧惧害鍒や负杩濆弽鐧惧害瑙勮寖锛屾垜涓嶇煡閬撲粬浠槸濡備綍鍒ゅ畾鐨勶紝铏界劧鎴戝凡缁忓彂璧风敵璇夛紝浣嗘槸浼拌浠栦滑涓嶄細鐞嗙潿銆傛墍浠ワ紝杩欓噷姊舰鍥炬垜涓嶅笘浜嗭紝鎴戝彧璐村嚭鎸囦护琛ㄧ殑鍥撅紝鎴戜及璁$洿鎺ヨ緭鍏ユ寚浠よ〃鍥炵瓟涔熶笉浼氳鏄剧ず锛屽笇鏈涘笘鍥剧殑鏂瑰紡鑳芥樉绀哄嚭鏉ュ惂銆
绛旓細杩欎釜涓涓厜鐢典紶鎰熷櫒灏卞彲浠ュ疄鐜颁簡锛岀敤璁℃暟鍣紝璁℃暟杈撳叆涓轰笂鍗囨部锛屽浣嶇敤褰撳墠璁℃暟鍣ㄥ嚭鐐瑰氨鍙互锛岄渶瑕侀傚綋鑰冭檻浼犳劅鍣ㄧ殑璇姩浣滐紝鍙互鏍规嵁鐜板満鐜鍔犲欢鏃舵垨鍏朵粬鏂规硶銆傚笇鏈涘浣犳湁甯姪銆
绛旓細涓嶇煡閬撴槸涓嶆槸鐪嬫槑鐧戒簡浣犵殑鎰忔濓紒鍦ㄨ繖閲屼綘涓嶉渶瑕佺敤杈呭姪缁х數鍣∕0锛屼綘鍙互鐢ㄤ竴涓緭鍏ョ户鐢靛櫒X锛屽叿浣撶敤鍝釜浣犲彲浠ヨ嚜璁惧畾锛屼篃鏄斁鍦ㄨ繖涓綅缃紝杩欐牱鐨勮瘽灏卞彲浠ュ湪涓婁竴涓數鏈烘病鏈夊欢鏃跺畬姣曠殑鎯呭喌涓嬫墜鍔ㄥ紑鍚笅涓涓數鏈猴紝涔熶笉褰卞搷涓嬮潰鐢垫満鐨勫欢鏃跺惎鍔紒锛