瀹岀編鐨勪氦閫氱伅绋嬪簭鏄粈涔堟牱鐨勶紵浣撻獙鐢ㄤ笉鍚孭LC璇█缂栧啓锛...: TrafficLight.project_瀹岀編鐨勪氦閫氱伅绋嬪簭鏄粈涔堟牱鐨勶紵浣撻獙鐢ㄤ笉鍚孭LC璇█缂栧啓锛... - 閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛

閰峰痉缃

HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鎼滅储闄勪欢  
閰峰痉缃 闄勪欢涓績 CODESYS璧勬簮涓嬭浇鍖 CODESYS鏁欑▼鏂囨。 瀹岀編鐨勪氦閫氱伅绋嬪簭鏄粈涔堟牱鐨勶紵浣撻獙鐢ㄤ笉鍚孭LC璇█缂栧啓锛...: TrafficLight.project

瀹岀編鐨勪氦閫氱伅绋嬪簭鏄粈涔堟牱鐨勶紵浣撻獙鐢ㄤ笉鍚孭LC璇█缂栧啓锛...: TrafficLight.project

 

瀹岀編鐨勪氦閫氱伅绋嬪簭鏄粈涔堟牱鐨勶紵浣撻獙鐢ㄤ笉鍚孭LC璇█缂栧啓锛...:
PLC缂栫▼璇█骞舵病鏈夐珮浣庡ソ鍧忎箣鍒嗭紝鍏抽敭鍦ㄤ簬鍏舵槸鍚﹁兘澶熸湁鏁堜笖楂樻晥鍦版弧瓒崇壒瀹氬簲鐢ㄩ渶姹傘傚湪澶氭牱鍖栫殑搴旂敤鍦烘櫙涓紝姣忕缂栫▼璇█閮芥湁鍏剁嫭鐗圭殑浼樺娍锛屼娇寰楁煇浜涜瑷鍦ㄧ壒瀹氭儏澧冧笅鏇村鏄撹揪鎴愭棦瀹氱洰鏍囥傚洜姝わ紝骞挎硾鎺屾彙澶氱缂栫▼璇█鍙婂叾浣跨敤鏂规硶锛屼笉浠呮嫇瀹戒簡鎴戜滑鐨勬妧鑳借竟鐣岋紝杩樹娇鎴戜滑鑳藉鏇村姞鐏垫椿鍦板簲瀵瑰悇绉嶆寫鎴橈紝浠庤屽湪鍚勪釜棰嗗煙鍜岄」鐩腑鍙戞尌鏇村ぇ鐨勬綔鍔涗笌鍒涢犲姏锛屼互涓嬩互涓涓畝鍗曠殑浜ら氱伅绋嬪簭涓轰緥锛屼綋楠屼笉鍚岀紪绋嬭瑷鐨勯瓍鍔

浜ら氱伅鎺у埗瑕佹眰锛
  • 淇″彿鐏郴缁熺敱涓涓惎鍔ㄥ紑鍏虫帶鍒讹紝褰撳惎鍔ㄥ紑鍏虫帴閫氭椂锛岃淇″彿鐏郴 缁熷紑濮嬪伐浣滐紝褰撳惎鍔ㄥ紑鍏冲叧鏂椂锛屾墍鏈変俊鍙风伅閮界唲鐏
  • 涓滆タ銆佸崡鍖楁柟鍚戝垎鍒繘琛岃仈鍔ㄦ帶鍒讹細棣栧厛锛岀豢鐏寒璧峰苟鎸佺画7绉掞紝鍏佽杞﹁締閫氳锛涢殢鍚庯紝榛勭伅浜捣浣滀负杩囨浮锛屾寔缁3绉掞紝鎻愮ず椹鹃┒鍛樺噺閫熷噯澶囧仠杞︼紱绱ф帴鐫锛岀孩鐏寒璧峰苟鎸佺画7绉掞紝绂佹杞﹁締閫氳锛涙渶鍚庯紝鍦ㄧ孩鐏繚鎸佷寒璧风殑鍚屾椂锛岄粍鐏紑濮嬮棯鐑侊紝鎸佺画3绉掞紝杩涗竴姝ヨ绀洪┚椹跺憳娉ㄦ剰浜ら氱姸鍐点














HMI鐢婚潰
  • ST璇█瀹炵幇
  • 浼樺娍锛氭敮鎸佸鏉傜殑鏁板杩愮畻鍜屾帶鍒堕昏緫锛屼负缂栫▼浜哄憳鎻愪緵浜嗛珮搴︾殑鐏垫椿鎬у拰琛ㄨ揪鑳藉姏銆傛湰绋嬪簭涓妸ST璇█鍏宠仈鍒癏MI锛岃繘琛屾紨绀烘帶鍒舵晥鏋滐紝绋嬪簭婧愮爜鑾峰彇鏂瑰紡瑙佹枃绔犳渶鍚庛
  • 鍔e娍锛氬缂栫▼鎶鑳借姹傜浉瀵硅緝楂橈紝鐩磋鎬у拰鏄撴搷浣滄х浉瀵硅緝寮便

[AppleScript] 绾枃鏈煡鐪 澶嶅埗浠g爜
R_trig_0(CLK:=bSwitch);
F_trig_0(CLK:=bSwitch);

IF R_trig_0.Q  THEN
  IF  bLight_EW THEN
     iState:= 30;
  ELSE
    iState := 10;
  END_IF
END_IF

IF F_trig_0.Q THEN
  iState:=0;
END_IF

ton1(IN:=(iState=10),PT:=T#7S);
ton2(IN:=(iState=20),PT:=T#3S);
ton3(IN:=(iState=30),PT:=T#7S);
ton4(IN:=(iState=40),pt:=T#3S);

CASE iState OF
0:
  g_light:=FALSE;
  Y_light:=FALSE;
  r_light:=FALSE;
10:
  g_light:=TRUE;
  Y_light:=FALSE;
  r_light:=FALSE;
  IF ton1.Q THEN
    iState:=20;
  END_IF
20:
  g_light:=FALSE;
  Y_light:=TRUE;
  r_light:=FALSE;
  IF ton2.Q THEN
    iState:=30;
  END_IF
30:
  g_light:=FALSE;
  Y_light:=FALSE;
  r_light:=TRUE;

  IF ton3.Q THEN
    iState:=40;
  END_IF
40:
  blink_0(ENABLE:= TRUE, TIMELOW:= T#500MS, TIMEHIGH:= T#500MS, OUT=>Y_light );
  g_light:=FALSE;
  r_light:=TRUE;

  IF ton4.Q THEN
    blink_0(ENABLE:= FALSE);
    iState:=10;
  END_IF
END_CASE

  • LD璇█瀹炵幇
  • 浼樺娍锛氱洿瑙傛у己锛屼笌鐢垫皵鎿嶄綔鍘熺悊鍥鹃珮搴﹀搴旓紝渚夸簬鐢垫皵鎶鏈汉鍛樺揩閫熶笂鎵嬪拰鐞嗚В銆傚湪鍥藉唴宸ヤ笟鑷姩鍖栭鍩熷崰鎹富瀵煎湴浣嶃
  • 鍔e娍锛氶潰瀵瑰鏉傛帶鍒剁郴缁熸椂锛岀▼搴忔弿杩板彲鑳戒笉澶熻灏斤紝褰卞搷娣卞害鍒嗘瀽鍜屼紭鍖栥





  • SFC璇█瀹炵幇
  • 浼樺娍锛氫互鍔熻兘瀹炵幇涓轰富绾匡紝绋嬪簭缁撴瀯娓呮櫚锛屼究浜庣悊瑙e拰鍒嗗伐璁捐銆傚澶у瀷绋嬪簭鐗瑰埆鏈夋晥锛岃兘鏄捐憲鑺傜渷璁捐鍜岃皟璇曟椂闂达紝骞堕氳繃娲诲姩姝ユ壂鎻忔満鍒朵紭鍖栨墽琛屾晥鐜囥
  • 鍔e娍锛堣嫢瑙嗕负鍔e娍锛夛細瀵逛簬涓嶇啛鎮夋鏂规硶鐨勭敤鎴锋潵璇存湁涓瀹氬涔犳洸绾裤



FBD璇█瀹炵幇

浼樺娍锛浠ュ姛鑳藉潡涓哄崟浣嶈璁★紝澧炲己浜嗘帶鍒堕昏緫鐨勭洿瑙傛у拰鍙悊瑙fэ紝渚夸簬澶嶆潅绯荤粺鐨勫浘褰㈠寲娓呮櫚鎻忚堪銆傛搷浣滄у己锛岄傚悎妯″潡鍖栫紪绋嬨
鍔e娍锛姣忎釜鍔熻兘鍧楃殑浣跨敤浼氬鍔犵▼搴忓瓨鍌ㄧ┖闂村崰鐢紝骞跺彲鑳藉奖鍝嶇▼搴忕殑鏁翠綋鎵ц鏁堢巼銆
[color=rgba(0, 0, 0, 0.9)]
  • IL璇█瀹炵幇锛
    • 浼樺娍锛氳蹇嗗拰鎺屾彙绠渚匡紝涓庢褰㈠浘鏈夎壇濂藉搴斿叧绯伙紝渚夸簬杞崲鍜屾鏌ャ傜紪绋嬩笌璋冭瘯鐏垫椿锛屼笉鍙楃晫闈㈤檺鍒躲
    • 鍔e娍锛氫笌姊舰鍥剧被浼硷紝瀵逛簬楂樺害澶嶆潅鐨勭郴缁燂紝绋嬪簭鎻忚堪鍙兘鏄惧緱涓嶅鐩磋鍜岃缁嗐

[color=rgba(0, 0, 0, 0.9)]

灏界涓嶅悓缂栫▼璇█鍦ㄧ壒瀹氶鍩熸湁鐫鍚勮嚜鐨勪紭鍔匡紝浣嗗湪瀹為檯缂栫▼杩囩▼涓紝鐢ㄦ埛瀹屽叏鍙互鏍规嵁鑷繁鐨勪娇鐢ㄤ範鎯拰鎶鏈亸濂芥潵閫夋嫨銆傚敖绠″疄鐜版柟寮忓悇寮傦紝浣嗘渶缁堢洰鏍囩殑涓鑷存х‘淇濅簡鏃犺閲囩敤浣曠璇█锛岄兘鑳借揪鍒伴鏈熺殑缂栫▼鏁堟灉銆傝繖绉嶇伒娲绘ф鏄疨LC缂栫▼棰嗗煙鐨勯瓍鍔涙墍鍦ㄣ
  • 瀵逛簬澶嶆潅鐨勭畻娉曞疄鐜帮紝缁撴瀯鍖栨枃鏈紙ST锛夎瑷浠ュ叾绠娲侀珮鏁堢殑鐗圭偣鎴愪负棣栭夛紝鑳藉娓呮櫚琛ㄨ揪澶嶆潅鐨勮繍绠楅昏緫銆

  • 褰撻」鐩晶閲嶄簬娴佺▼鎺у埗鏃讹紝椤哄簭娴佺▼鍔熻兘鍥撅紙SFC锛夎瑷浠ュ叾鏉$悊娓呮櫚銆侀昏緫鍒嗘槑鐨勪紭鍔胯劚棰栬屽嚭锛岀‘淇濈▼搴忔墽琛岃繃绋嬩腑鐨勬瘡涓姝ラ兘浜曠劧鏈夊簭銆

  • 娑夊強閫昏緫鎺у埗锛岀壒鍒槸鑱旈攣銆佷簰閿佺瓑澶嶆潅閫昏緫璁捐鏃讹紝姊舰鍥撅紙LD锛夎瑷鍑熷叾鐩磋鏄撴噦鐨勭壒鐐癸紝浣垮緱閫昏緫鍏崇郴鐨勮〃杈惧彉寰楃畝鍗曟槑浜嗐

  • 鑻ラ」鐩互鍔熻兘鍧椾负鏍稿績鏋勫缓锛岃繛缁姛鑳藉浘锛圕FC锛夋垨鍔熻兘鍧楀浘锛團BD锛夊垯鏄悊鎯抽夋嫨锛屽畠浠皢绋嬪簭缁勭粐鎴愮綉缁滄竻鏅扮殑缃戠姸鐢佃矾鍥撅紝鏋佸ぇ鍦版彁楂樹簡绋嬪簭鐨勫彲璇绘у拰鍙淮鎶ゆс



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

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

GMT+8, 2024-10-7 19:43 , Processed in 0.127936 second(s), 21 queries .

閰峰痉缃

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

杩斿洖椤堕儴