PLC步进指令完成三台电动机顺序启动,逆序停止的程序设计 利用PLC不仅指令完成三台电动机顺序启动逆序停止的状态流程图
\u4e09\u53f0\u7535\u52a8\u673a\u987a\u5e8f\u542f\u52a8,\u9006\u5e8f\u505c\u6b62.\u5faa\u73af10\u6b21\u7ed3\u675f.\u542f\u52a8\u65f6\u95f4\u95f4\u96945\u79d2,\u505c\u6b62\u65f6\u95f4\u95f4\u96943\u79d2.\u5982\u4f55\u5229\u7528plc\u6b65\u8fdb\u7f16\u7a0b\u4f60\u81ea\u5df1\u5199\u5427 \u6211\u53ef\u4ee5\u7ed9\u4f60\u4e2a\u6d41\u7a0b \u7528\u6b65\u5e8f\u6307\u4ee4\u5c31\u884c
set m0 + C1=0\u8fdb\u5165\u6b65\u5e8f
1.\u542f\u52a8\u7b2c\u4e00\u53f0\u2026\u2026\u5ef6\u65f65S\u8fdb\u5165\u4e0b\u4e00\u6b65
2.\u542f\u52a8\u7b2c\u4e8c\u53f0\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026
3.\u7b2c\u4e09\u53f0\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026
4.\u505c\u6b62\u7b2c\u4e09\u53f0\u2026\u2026\u2026\u2026\u20263S\u8fdb\u5165\u4e0b\u4e00\u6b65
5.\u505c\u6b62\u7b2c\u4e8c\u53f0\u2026\u2026\u2026\u2026\u3002
6.\u505c\u6b62\u7b2c\u4e00\u53f0\u2026\u2026\u2026\u2026\u3002
7.\u5f80\u6570\u636e\u5bc4\u5b58\u5668\u91cc+1.\u3002\u6bd4\u5982 ld m1 ++c1
8.\u5224\u65adC1\u91cc\u7684\u6570\u636e\u662f\u5426\u4e3a10.\u3002 C1\uff1d10\u8f6c9 C1\uff01\uff1d10\u8f6c1
9.RSET M0 MOV k0 C1 //\u5173\u95ed\u6b65\u5e8f\u542f\u52a8\u6761\u4ef6
10.END
\u6211\u7ed9\u4f60\u505a\u4e00\u4e0b\u5427,\u6bcf5\u79d2\u542f\u52a8\u4e00\u4e0b,\u505c\u673a\u4e5f\u662f\u6bcf5\u79d2\u505c\u4e00\u4e0b,
LD X0
OR Y0
ANI T5
OUT Y0
OUT T0 K50
LD T0
OR Y1
ANI T4
OUT Y1
OUT T1 K50
LD T1
OR Y2
ANI M0
OUT Y2
LD X1
OR M0
ANI X0
OUT M0
OUT T4 K50
LD T4
OUT T5 K50
Y0\u7b2c\u4e00\u53f0,Y2\u7b2c\u4e8c\u53f0,Y3\u7b2c\u4e09\u53f0,X0\u542f\u52a8,X1\u505c\u6b62
指令表:
LD x1;
OR y1;
ANI T3;
OUT Y1;
OUT T0 K30;
OUT T1 K60;
LD T0;
ANI T2;
OUT Y2;
LD T1;
ANI M0;
OUT Y3;
LD X2;
ANI T3;
OUT M0;
OUT T2 K30;
OUT T3 K60;
END;
绛旓細鍑虹幇姝诲惊鐜plc姝ヨ繘椤烘帶鎸囦护鍥犱负鍑虹幇姝诲惊鐜鑷翠笉寰幆锛涗慨鏀圭▼搴忎娇寰幆缁堟鏉′欢寰楀埌婊¤冻锛岀‘淇濆惊鐜甯哥粨鏉熴PLC鐨勬杩椤烘帶鎸囦护鏈変袱鏉★細姝ヨ繘鎺ョ偣鎸囦护STL鍜屾杩涜繑鍥炴寚浠ET锛屽姩浣滄槸鎸囨煇姝ュ浜庢椿鍔ㄦ鏃讹紝PLC鍚戣鎺х郴缁熷彂鍑哄懡浠わ紝鎴栫郴缁熻鎵ц鐨勫姩浣溿
绛旓細1. 瑙傚療鍒PLC姝ヨ繘椤烘帶鎸囦护瀛樺湪姝诲惊鐜棶棰橈紝瀵艰嚧鏃犳硶姝e父杩涜銆2. 瀵圭▼搴忚繘琛屼慨鏀癸紝纭繚寰幆缁堟鏉′欢寰楀埌婊¤冻锛屼互瑙e喅姝诲惊鐜棶棰橈紝浣垮惊鐜兘澶熸甯哥粨鏉熴3. PLC鐨勬杩椤烘帶鎸囦护涓昏鍖呮嫭涓ゆ潯锛氭杩涙帴鐐规寚浠TL鍜屾鏁拌呮垨杩涜繑鍥炴寚浠ET銆4. 鍔ㄤ綔鎸囦护鏄寚褰撴煇姝ュ浜庢椿鍔ㄧ姸鎬佹椂锛孭LC鍚戣鎺х郴缁熷彂鍑哄懡浠わ紝鎴栬呯郴缁...
绛旓細鐪嬩笉澶竻锛岄殣绾︾湅鍒伴嗗簭鍋滄锛屽鏋滄槸杩欐牱閭e氨鍏堝惎鍔ㄥ啀鍋滄銆傘傘
绛旓細FX绯诲垪PLC鐨勬杩涙寚浠 1锛庢杩涙寚浠わ紙STL/RET锛夋杩涙寚浠ゆ槸涓撲负椤哄簭鎺у埗鑰岃璁$殑鎸囦护銆傚湪宸ヤ笟鎺у埗棰嗗煙璁稿鐨勬帶鍒惰繃绋嬮兘鍙敤椤哄簭鎺у埗鐨勬柟寮忔潵瀹炵幇锛屼娇鐢ㄦ杩涙寚浠ゅ疄鐜伴『搴忔帶鍒舵棦鏂逛究瀹炵幇鍙堜究浜庨槄璇讳慨鏀广侳X2N涓湁涓ゆ潯姝ヨ繘鎸囦护锛歋TL锛堟杩涜Е鐐规寚浠わ級鍜孯ET锛堟杩涜繑鍥炴寚浠わ級銆係TL鍜孯ET鎸囦护鍙湁涓庣姸鎬佸櫒S閰嶅悎鎵嶈兘鍏锋湁...
绛旓細FOR I = 1 TO 200 LD I MOV #100, CNT OUT 0.0, M MOV #-100, CNT OUT 0.1, M NEXT I 鍦ㄨ繖涓▼搴忎腑锛孎OR 寰幆鎸囦护浼氫娇寰楃▼搴忓惊鐜墽琛 200 娆° 鍦ㄦ瘡涓娆″惊鐜腑锛PLC 浼氭墽琛 LD銆丮OV 鍜 OUT 鎸囦护锛屼互鎺у埗姝ヨ繘鐢垫満鏃嬭浆 1.8 搴︺ 鍦ㄧ▼搴忔墽琛屽畬鎵鏈夌殑 200 娆″惊鐜悗锛屾杩涚數鏈哄氨浼...
绛旓細鑰屼娇鐢≒LC瀹炵幇椤哄簭鎺у埗锛屽垯涓嶅瓨鍦ㄤ笂杩拌繖涓や釜闂銆傚洜涓PLC鐨瑙︾偣鏄姸鎬佷俊鎭紝鍏朵娇 鐢ㄦ鏁板彈I闄愬埗銆傚畠鐨勬帶鍒剁敤杩愯绋嬪簭瀹炵幇锛岃岃繍琛岀▼搴忔槸鎵ц涓鏉℃潯鎸囦护鐨勮繃绋嬶紝鏄湁搴忕殑锛 鎵浠ワ紝涔熶笉瀛樺湪鈥滃啋闄╃珵浜夆濓紝鍏舵寚浠ゆ墽琛岀殑缁撴灉鎬绘槸纭畾鐨勩傞『搴忔帶鍒舵湁锛氶殢鏈烘帶鍒讹紝鏍规嵁闅忔満鍑虹幇鐨勬潯浠跺疄鏂芥帶鍒;鍔ㄤ綔鎺у埗锛屾牴鎹...
绛旓細1銆1.8搴︾殑5缁嗗垎灏辨槸0.36搴,1000涓剦鍐茶浆涓鍛ㄣ2銆姝ヨ繘鐢垫満鐨甫杞洿寰5cm 锛屽懆闀垮氨鏄15.7cm銆3銆1.8搴︾殑5缁嗗垎姣忎竴涓剦鍐茶蛋澶氬皯15.7/1000=0.0157cm銆4銆佽蛋15cm闇瑕佸灏戣剦鍐 15/0.0157=955.414銆5銆丗x2n绯诲垪PLC鏈変竴鏉¤剦鍐茶緭鍑鎸囦护PLSY锛屾寚浠ょ殑鏍煎紡鏄疨LSY K10000 K955 Y001 锛屾剰鎬...
绛旓細1. 涓轰簡瀹炵幇涓夎彵PLC鑷姩鎺у埗閮ㄥ垎鐨勫仠姝㈠姛鑳斤紝鍙互閫氳繃缂栫▼璁剧疆涓涓壒瀹氱殑杈撳叆鐐癸紝濡俋6锛屼綔涓哄仠姝㈡寜閽殑淇″彿杈撳叆銆2. 褰撳仠姝㈡寜閽鎸変笅鏃讹紝璇ヨ緭鍏ョ偣浼氳婵娲伙紝杩涜岃Е鍙慞LC绋嬪簭涓殑鐩稿簲閫昏緫銆3. 婵娲荤殑杈撳叆鐐瑰皢瀵艰嚧PLC鎵ц涓涓垵濮嬬姸鎬佸浣嶆搷浣滐紝杩欐槸閫氳繃缂栫▼棰勮鐨勫仠姝㈡祦绋嬬殑涓閮ㄥ垎銆4. 鍦ㄧ▼搴忎腑璁惧畾涓...
绛旓細涓庝笁鑿辩殑鏄悓涓鎸囦护绯荤粺锛屽彴杈剧殑濂藉嚑涓郴鍒楃殑涓绘満閮藉叿澶囧洓閫氶亾杈撳嚭鐨勶紝鍏稿瀷鐨勬槸DVP28SV11T,鍙嫭绔嬫帶鍒跺洓鍙帮紝浣犲彲浠ュ幓浠栫綉绔欎笂鐪嬩笅浜у搧鍨嬪綍銆倃ww.DELTA.COM.TW
绛旓細绋嬪簭妯℃嫙鎵ц鐨勭粨鏋滐細STL锛屼笁鑿PLC鍛戒护 鐢ㄦ潵浣滈『搴忓姛鑳藉浘(SFC锛孲equential Function Chart)璇硶鐨鎸囦护銆傛绉嶅懡浠ゅ彲浠ヨ鎴戜滑绋嬪紡璁捐浜哄憳鍦ㄧ▼寮忚鍒掓椂锛岃兘澶熷儚骞虫椂鍐欐祦绋嬪浘涓鏍凤紝瀵逛簬绋嬪紡鐨勬搴忔洿涓烘竻妤氾紝鏇村叿鏈夊彲璇绘с係TL鍜孯ET鎸囦护鍙湁涓庣姸鎬佸櫒S閰嶅悎鎵嶈兘鍏锋湁姝ヨ繘鍔熻兘銆備緥濡:STL S200琛ㄧず鐘舵佸父寮瑙︾偣锛岀О涓...