ST璇█鐨勫熀鏈粙缁-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 108|鍥炲: 0

ST璇█鐨勫熀鏈粙缁

[澶嶅埗閾炬帴]
  • TA鐨勬瘡鏃ュ績鎯
    寮蹇
    2017-11-20 22:07
  • 绛惧埌澶╂暟: 2 澶

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2024-8-9 23:00:46 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
    鈥係T璇█鏄竴绉嶉珮绾ц瑷锛屽叾璇硶绫讳技浜嶤璇█銆傚ぇ瀹跺鑻辫鐨勬椂鍊欒偗瀹氬杩囪嫳璇殑璇硶锛屽瀹岃娉曚箣鍚庡氨鑳界煡閬撹鎬庝箞鐢ㄨ嫳璇〃杈捐嚜宸辩殑鎯虫硶浜嗐傚叾瀹炲涔犵紪绋嬩篃鏄竴鏍风殑锛屾垜浠厛鐔熸倝缂栫▼璇█鐨勮娉曪紝鐒跺悗鐢ㄦ帉鎻$殑缂栫▼璇█璇硶鍙婅瘝缁勶紝杩涜鈥滈犲彞鈥濓紝鐒跺悗浼氶犲彞涔嬪悗锛屾垜浠氨鍙互灏濊瘯鍐欎竴浜涘姛鑳芥钀斤紝鍔熻兘娈佃惤鎺屾彙涔嬪悗锛屾垜浠氨鍙互灏濊瘯浣跨敤鈥淪T鈥濆啓鈥濇枃绔犫滀簡銆


    鈥傗傗傗備笂闈㈣鍒癝T璇硶鍜孋璇█鐨勮娉曞緢鍍忓緢鍍忥紝浣嗘槸鍏跺張姣擟璇█楂樼骇涓鐐广侰璇█鏄潰鍚戣繃绋嬬殑缂栫▼璇█锛岃孲T鏂囨湰鏄潰鍚戝璞$殑缂栫▼璇█銆備笅闈负澶у绠鍗曚粙缁嶄竴涓嬮潰鍚戝璞$殑缂栫▼鎬濇兂銆


    鈥傗傗傗備粈涔堟槸闈㈠悜瀵硅薄鍛紵涓句竴涓垜涓汉鐞嗚В鐨勪緥瀛愶細瀵逛簬浜鸿繖绉嶅璞℃潵璇达紝浜哄叿鏈夌溂鐫涳紝鑰虫湹锛岄蓟瀛愶紝鎵嬶紝鑴氱瓑鍩虹灞炴с傝繖浜涘睘鎬ф槸姝e父浜洪兘鍏峰鐨勶紝鎵浠ユ垜浠氨鍙互灏嗚繖浜涘熀纭灞炴у皝瑁呮垚涓涓姛鑳藉潡銆


    鈥傗傗傗傜劧鍚庢垜浠湪鐢ㄧ▼搴忚〃绀哄紶涓夋潕鍥涚帇浜岄夯瀛愮殑鏃跺欙紝閮藉彲浠ヨ皟鐢ㄨ繖涓姛鑳藉潡锛屽洜涓哄紶涓夋潕鍥涚帇浜岄夯瀛愰兘鏈夎繖浜涗汉绫荤殑鍩烘湰鐗瑰緛锛岃屽浜庝粬浠釜浜烘潵璇村敮涓涓嶅悓鐨勫氨鏄繖浜涘熀纭灞炴х殑鐗瑰緛鍊硷紝姣斿鐪肩潧澶氬ぇ锛岃虫湹澶氬ぇ锛岀溂鐫涙槸鍦嗙殑杩樻槸鎵佺殑锛屾槸鍗曠溂鐨繕鏄弻鐪肩毊绛夌瓑銆傛垜浠彧闇瑕佸悜杩欎釜鍩烘湰灞炴у姛鑳藉潡涓紶鍏ョ浉搴旂殑鐗瑰緛鍊煎弬鏁板氨琛屼簡銆


    鈥傗傗傗傚ぇ瀹剁悊瑙d簡涔堬紵杩欏氨鏄潰鍚戝璞$殑鎬濇兂锛屾垜浠鍏堟湁涓涓洰鏍囧璞★紝鑰岃繖涓洰鏍囧璞★紝鍙兘鏈変竴浜涢氱敤鐨勫睘鎬ф垜浠彲浠ユ嬁鍑烘潵锛屽仛鎴愪竴涓熀纭鍔熻兘鍧楋紝渚夸簬缁欏叾浠栫被浼肩殑瀵硅薄浣跨敤杩欎釜鍔熻兘鍧楅噷鐨勭▼搴忥紝杩欐牱鑳藉ぇ澶ф彁楂樼▼搴忕殑閲嶅浣跨敤鐜囷紝鍑忓皯鎴戜滑缂栧啓閲嶅鎬х殑浠g爜锛岃繖鏍风紪绋嬫晥鐜囧氨鎻愬崌浜嗐


    鈥傗傗傗傛垜浠紪绋嬬殑鏃跺欙紝灏卞彲浠ユ牴鎹垜浠殑鐩爣瀵硅薄鐗规湁鐨勭壒寰佸睘鎬э紝鎶借薄鍑鸿繖绫烩滃璞♀濈殑鍩虹灞炴х壒寰侊紝鍦ㄦ垜浠叾浠栧湴鏂硅浣跨敤杩欑鈥滃璞♀濈殑鏃跺欍傛垜浠氨鍙互鐩存帴鈥滃疄渚嬪寲鈥濊繖绉嶇被鍨嬬殑瀵硅薄銆傚彧鏈夌啛鎮変簡闈㈠悜瀵硅薄鐨勭紪绋嬫濇兂涔嬪悗锛屾垜浠墠鏈夊彲鑳芥妸ST璇█鍔熷姏鍙戞尌鍒版瀬闄愩


    鈥傗傗傗傚ソ鐨勶紝闈㈠悜瀵硅薄鐨勬蹇碉紝澶у搴旇鏄悶娓呮浜嗭紝鎴戜滑鐪嬩笅闈竴涓緥瀛愶紝鐪嬩笉鎳備篃娌″叧绯伙紝鍏堟湁涓蹇靛氨濂戒簡銆備互涓嬪洓娈典唬鐮侊紝瀹炵幇鐨勯兘鏄姤璀﹀櫒鎶ヨ鍔熻兘銆傛瘡娈典唬鐮佸疄闄呬笂閮芥槸YJ_BeepAlarm杩欎竴绉嶇被鍨嬶紝鍙槸浼犲叆杩欎釜鍔熻兘鍧楅噷鐨勫弬鏁颁笉鍚岀舰浜嗐傚湪YJ_BeepAlarm杩欎釜鍔熻兘鍧楃被鍨嬩腑锛屾垜浠娊璞″嚭鎵鏈夋姤璀﹀姛鑳藉叿澶囩殑鍩虹灞炴э紝鐒跺悗鍐欐垚浜哬J_BeepAlarm鍔熻兘鍧椼


    鈥傗傗傗傜涓閮ㄥ垎锛屾垜浠鍏堝0鏄庝簡鍥涚鎶ヨ鍔熻兘澹版槑涓哄悓涓绉嶇被鍨嬬殑鍙橀噺涔熷氨鏄痀JBeepAlarm绫诲瀷鍙橀噺銆備笅闈B鍚姩鎶ヨ銆丗B鍗曟壒鎶ヨ銆丗B涓㈡爣鎶ヨ銆丗B_缂烘枡鎶ヨ杩欎簺閮芥槸鎴戜滑璧风殑鈥滃鍚嶁濓紝鑰孻J_BeepAlarm锛屽氨鏄繖浜涘彉閲忓搴旂殑鈥滃璞$被鍨嬧濄
    [AppleScript] 绾枃鏈煡鐪 澶嶅埗浠g爜
    //------鍥涚鎶ヨ鍔熻兘澹版槑-----------------------
    FB_鍚姩鎶ヨ : YJ_BeepAlarm;
    FB_鍗曟壒鎶ヨ : YJ_BeepAlarm;
    FB_涓㈡爣鎶ヨ : YJ_BeepAlarm;
    FB_缂烘枡鎶ヨ : YJ_BeepAlarm;
    
    //------鍚姩鎶ヨ鍔熻兘鍧楃殑璋冪敤--------------------
    FB_鍚姩鎶ヨ(
    ib_鎶ヨ鍚姩:= (gi_鍋滃垏_鑷姩姝ラ = 6000),
    ib_鎶ヨ鍋滄:= gr_鍋滄RTrig.Q,
    if_鎶ヨ鍛ㄦ湡:= 1000,
    if_鎶ヨ鍗犳瘮:= 0.4,
    id_鎶ヨ娆℃暟:= 3,
    ob_鎶ヨ瀹屾垚=> gb_鍚姩鎶ヨ瀹屾垚,
    ob_鎶ヨ杈撳嚭=> vb_鍚姩鎶ヨ);
    
    //-------缂烘枡鎶ヨ鍋滄満鍔熻兘--------------------------
    FB_缂烘枡鎶ヨ(
    ib_鎶ヨ鍚姩:= ib_鏀炬枡缂烘枡鎺ヨ繎鍏夌數,
    ib_鎶ヨ鍋滄:= gr_鍋滄RTrig.Q,
    if_鎶ヨ鍛ㄦ湡:= 500,
    if_鎶ヨ鍗犳瘮:= 0.3,
    id_鎶ヨ娆℃暟:= 3,
    ob_鎶ヨ瀹屾垚=> ,
    ob_鎶ヨ杈撳嚭=> vb_缂烘枡鎶ヨ);
    
    FB_鍗曟壒鎶ヨ(
    ib_鎶ヨ鍚姩:= (vf_鍗曟壒鍓╀綑涓暟 <= hf_鎵规弧鎶ヨ鎻愬墠) AND hb_鎵规弧鎶ヨ,
    ib_鎶ヨ鍋滄:= gr_鍋滄RTrig.Q,
    if_鎶ヨ鍛ㄦ湡:= 150,
    if_鎶ヨ鍗犳瘮:= 0.9,
    id_鎶ヨ娆℃暟:= 1,
    ob_鎶ヨ瀹屾垚=> ,
    ob_鎶ヨ杈撳嚭=> vb_鍗曟壒鎶ヨ);
    
    FB_涓㈡爣鎶ヨ(
    ib_鎶ヨ鍚姩:= gf_閫佹枡_涓㈡爣娆℃暟 <> gf_閫佹枡_涓㈡爣娆℃暟Old AND hb_鐧借褰╄, 
    ib_鎶ヨ鍋滄:= gr_鍋滄RTrig.Q,
    if_鎶ヨ鍛ㄦ湡:= 150,
    if_鎶ヨ鍗犳瘮:= 0.8,
    id_鎶ヨ娆℃暟:= 1,
    ob_鎶ヨ瀹屾垚=> ,
    ob_鎶ヨ杈撳嚭=> vb_涓㈡爣鎶ヨ);
    

    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鍥炲

    浣跨敤閬撳叿 涓炬姤

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

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-23 20:34 , Processed in 0.156790 second(s), 54 queries .

    閰峰痉缃

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

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