ST璇█涓殑鍒嗙晫绗-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 96|鍥炲: 0

ST璇█涓殑鍒嗙晫绗

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

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2024-8-9 22:37:58 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
    鍒嗙晫绗搴旂敤鍦哄悎澶囨敞鍜岀ず渚
    绌烘牸鍙互鍦≒LC 绋嬪簭涓换浣曚綅缃彃鍏ョ┖鏍涓嶅厑璁稿湪鍏抽敭瀛椼佹枃瀛椼佹爣璇嗙鍜屾灇涓惧间腑鐩存帴鎻掑叆绌烘牸銆
    TAB鍙互鍦≒LC 绋嬪簭涓换浣曚綅缃彃鍏AB涓嶅厑璁稿湪鍏抽敭瀛椼佹枃瀛椼佹爣璇嗙鍜屾灇涓惧间腑鐩存帴鎻掑叆TAB銆
    (*娉ㄩ噴寮濮鐢ㄦ埛鑷畾涔夋敞閲婏紝鍙互鍦ㄧ▼搴忓厑璁哥┖鏍肩殑浠讳綍浣嶇疆杈撳叆娉
    *)娉ㄩ噴缁撴潫閲婏紝涓 CoDeSys 鍙互閫氳繃璁剧疆鍏佽娉ㄩ噴宓屽銆
    +鍗佽繘鍒舵暟鐨勫墠缂绗﹀彿锛堟鏁帮級+456锛+1.23
    +鍔犳搷浣滅23+11
    鍗佽繘鍒舵暟鐨勫墠缂绗﹀彿锛堣礋鏁帮級-789
    骞-鏈-鏃ョ殑鍒嗛殧绗D#1980-02-29
    鍑忔搷浣滅19-11
    #鍩哄簳鏁扮殑鍒嗛殧绗2#1101锛16#FF鏁版嵁绫诲瀷鍒嗛殧绗 SINT#123
    #鏃堕棿鏂囧瓧鐨勫垎闅旂T#200ms锛汿OD#05:30:35:28锛泃#14m_12s
    .姝f暟鍜屽皬鏁扮殑鍒嗛殧绗3.14锛2.18
    .鍒嗙骇瀵诲潃鍦板潃绗%IX0.3
    .缁撴瀯鍏冪礌鍒嗛殧绗Channel[0].type锛沘bc.number
    .鍔熻兘鍧楃粨鏋勫垎闅旂TON1.Q锛汼R_3.S1
    E/e鎸囨暟鍒嗙晫绗1.0e+6锛3.14E6
    瀛楃涓插紑濮/缁撴潫绗鈥楬ello World!!鈥
    $涓蹭腑鐗规畩瀛楃鐨勫紑濮鈥$L鈥欒〃绀烘崲琛岋紱鈥$R鈥欒〃绀哄洖杞
    :鏃跺埢鏂囧瓧鍒嗛殧绗TOD#12:41:21.11
    :鍙橀噺/绫诲瀷鍒嗛殧绗Test:INT
    :=鍒濆鍖栨搷浣滅Var1:INT:=3
    :=杈撳叆鍙橀噺閾炬帴鎿嶄綔绗INT_2(SINGLE:=z2,PRIORITY:=1)
    :=璧嬪兼搷浣滅Var2:=45
    ( )鏋氫妇琛ㄥ垎鐣岀V: (B1_10V,UP_10V,IP_15V):= UP_10V
    ( )瀛愯寖鍥村垎鐣岀DATA:INT(-32768..32767)
    ( )鍒濆鍖栭噸澶嶅洜瀛ARRAY(1..2,1..3) OFINT:=1,2,3(4),6
    ( )鎸囦护琛ㄤ慨姝g(A]B)
    ( )鍑芥暟鑷彉閲Var2*LIMIT(Var1)
    ( )瀛愯〃杈惧紡鍒嗙骇(A*(B-C)+D)
    ( )鍔熻兘鍧楄緭鍏ヨ〃鍒嗙晫绗TON_1(IN:=%IX5.1,PT:=T#500ms);
    []鏁扮粍涓嬫爣鍒嗙晫绗MOD_5_CFG.CH[5].Range:=BI_10V;
    ,鏋氫妇琛ㄥ垎闅旂V: (BI_10V,Up_10V):=Up_1_5V;
    ,鍒濆鍊煎垎闅旂ARRAY(1..2,1..3) OF INT:=1,2,3(4),6;
    ,鏁扮粍灏忔爣鍒嗛殧绗ARRAY(1..2,1..3) OF INT:=1,2,3(4),6;
    ,琚0鏄庡彉閲忕殑鍒嗛殧绗VAR_INPUT A,B,C:REAL; END_VAR
    ,鍔熻兘鍧楀垵濮嬪煎垎闅旂TON_1(IN:=%IX5.1,PT:=T#500ms);
    ,鍔熻兘鍧楄緭鍏ヨ〃鍒嗛殧绗SR_1(S1:=%IX1.1,RESET:=%IX2.2);
    ,鎿嶄綔鏁拌〃鍒嗛殧绗ARRAY(1..2,1..3) OF INT:=1,2,3(4),6;
    ,鍑芥暟鑷彉閲忚〃鍒嗛殧绗LIMIT(MN:=4,IN:=%IW0,MX:=20);
    Case鑷宠〃鍒嗛殧绗CASE STEP OF 1,5: DISPLAY:=FALSE;
    ;绫诲瀷鍒嗛殧绗TYPE R:REAL;END_TYPE
    ;璇彞鍒嗛殧绗QU: =5[em](A+B);QD: =4[/em](A-B);
    ..瀛愯寖鍥村垎闅旂ARRAY(1..2,1..3);
    Case鑼冨洿鍒嗛殧绗CASE STEP OF (1..5): DISPLAY:=FALSE;
    %鐩存帴琛ㄧず鍙橀噺鐨勫墠缂%IW0
    =]杈撳嚭杩炴帴鎿嶄綔绗C10(CU: =bInput,Q=]Out);


    娉ㄦ剰锛
    鐢ㄤ簬閫昏緫杩愮畻鍜岀畻鏈繍绠楃瓑鐨勬搷浣滅鍙蜂负涓棿鎿嶄綔绗︼紝濡侼OT銆丮OD銆+銆-銆*銆/銆<銆>銆&銆丄ND銆丱R銆乆OR銆
    鐢ㄤ簬琛ㄧず鏃堕棿銆佹椂鍒荤瓑鏃堕棿鏂囧瓧鐨勬搷浣滅鍙蜂负鏃堕棿鏂囧瓧鍒嗙晫绗︼紝濡俆#銆丏銆丠銆丮銆丼銆丮S銆丏ATE#銆
    D#銆乀IME_OF_DAY#銆乀OD#銆丏ATE_AND_TIME#銆丏T#銆
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鍥炲

    浣跨敤閬撳叿 涓炬姤

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

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-23 20:00 , Processed in 0.176744 second(s), 53 queries .

    閰峰痉缃

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

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