Codesys2.3渚嬪瓙绋嬪簭锛圖I杈撳叆锛-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
妤间富: 姹磱闈欐按

Codesys2.3渚嬪瓙绋嬪簭锛圖I杈撳叆锛

  [澶嶅埗閾炬帴]
  • TA鐨勬瘡鏃ュ績鎯
    寮蹇
    2023-5-29 18:28
  • 绛惧埌澶╂暟: 180 澶

    [LV.7]甯镐綇灞呮皯III

    鍙戣〃浜 2021-1-20 16:45:39 | 鏄剧ず鍏ㄩ儴妤煎眰
    涓嬭浇鏉ュ涔犱竴涓
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
  • TA鐨勬瘡鏃ュ績鎯
    濂嬫枟
    2021-9-24 13:39
  • 绛惧埌澶╂暟: 1 澶

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2021-9-24 13:38:39 | 鏄剧ず鍏ㄩ儴妤煎眰
    妤间富濞佹闇告皵
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
  • TA鐨勬瘡鏃ュ績鎯
    闅捐繃
    2024-9-28 20:00
  • 绛惧埌澶╂暟: 53 澶

    [LV.5]甯镐綇灞呮皯I

    鍙戣〃浜 2024-3-21 19:19:20 | 鏄剧ず鍏ㄩ儴妤煎眰
    澹版槑
    FUNCTION_BLOCK FB_BubbleSortMethod_1
    VAR_INPUT
    聽 聽 聽 聽 EN:BOOL;//ENABLE聽 聽 聽 聽
    聽 聽 moderder_mode;
    聽 聽 聽 聽 data_IN:ARRAY[0..9] OF INT;
    END_VAR
    VAR_OUTPUT
    聽 聽 聽 聽 ENO:BOOL;//out
    聽 聽 聽 聽 data_OUT:ARRAY[0..9] OF INT;
    END_VAR
    VAR
    聽 聽 聽 聽 ARR:ARRAY[0..9] OF INT;
    聽 聽 聽 聽 N: INT;
    聽 聽 聽 聽 I: INT;
    聽 聽 聽 聽 M: INT;
    聽 聽 聽 聽 J: INT;
    聽 聽 聽 聽 T: int;
    END_VAR

    绋嬪簭
    ENO:=EN;
    ARR:=data_IN;
    IF EN THEN聽 聽 聽 聽
    聽 聽 聽 聽 IF MODE=InvertedSequence THEN
    聽 聽 聽 聽 FOR聽聽N:=0 TO 9 BY 1 DO
    聽 聽 聽 聽 聽 聽 IF I<9-N THEN I:=9-N; END_IF聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 FOR M:=0 TO i-1 BY 1 DO
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 J:=M+1;聽 聽 聽 聽 聽 聽 聽 聽聽聽
    聽 聽聽 聽聽 聽聽聽IF聽聽ARR[M]>ARR[J] THEN
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 T:=ARR[M];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[M]:=ARR[J];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[J]:=T;
    聽 聽 聽 聽 聽 聽 聽 聽聽 聽 END_IF聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 ELSIF MODE=seriation THEN
    聽 聽 聽 聽 FOR聽聽N:=0 TO 9 BY 1 DO
    聽 聽 聽 聽 聽 聽 IF I<9-N THEN I:=9-N; END_IF聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 FOR M:=0 TO i-1 BY 1 DO
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 J:=M+1;聽 聽 聽 聽 聽 聽 聽 聽聽聽
    聽 聽聽 聽聽 聽聽聽IF聽聽ARR[M]<ARR[J] THEN
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 T:=ARR[M];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[M]:=ARR[J];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[J]:=T;
    聽 聽 聽 聽 聽 聽 聽 聽聽 聽 END_IF聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_IF
    END_IF
    IF NOT EN THEN
    聽 聽 聽 聽 data_OUT[0]:=
    聽 聽 聽 聽 data_OUT[1]:=
    聽 聽 聽 聽 data_out[2]:=
    聽 聽 聽 聽 data_out[3]:=
    聽 聽 聽 聽 data_out[4]:=
    聽 聽 data_out[5]:=
    聽 聽 聽 聽 data_out[6]:=
    聽 聽 聽 聽 data_out[7]:=
    聽 聽 聽 聽 data_out[8]:=
    聽 聽 聽 聽 data_out[9]:=0;
    END_IF
    data_OUT:=ARR;澹版槑
    FUNCTION_BLOCK FB_BubbleSortMethod_1
    VAR_INPUT
    聽 聽 聽 聽 EN:BOOL;//ENABLE聽 聽 聽 聽
    聽 聽 moderder_mode;
    聽 聽 聽 聽 data_IN:ARRAY[0..9] OF INT;
    END_VAR
    VAR_OUTPUT
    聽 聽 聽 聽 ENO:BOOL;//out
    聽 聽 聽 聽 data_OUT:ARRAY[0..9] OF INT;
    END_VAR
    VAR
    聽 聽 聽 聽 ARR:ARRAY[0..9] OF INT;
    聽 聽 聽 聽 N: INT;
    聽 聽 聽 聽 I: INT;
    聽 聽 聽 聽 M: INT;
    聽 聽 聽 聽 J: INT;
    聽 聽 聽 聽 T: int;
    END_VAR

    绋嬪簭
    ENO:=EN;
    ARR:=data_IN;
    IF EN THEN聽 聽 聽 聽
    聽 聽 聽 聽 IF MODE=InvertedSequence THEN
    聽 聽 聽 聽 FOR聽聽N:=0 TO 9 BY 1 DO
    聽 聽 聽 聽 聽 聽 IF I<9-N THEN I:=9-N; END_IF聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 FOR M:=0 TO i-1 BY 1 DO
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 J:=M+1;聽 聽 聽 聽 聽 聽 聽 聽聽聽
    聽 聽聽 聽聽 聽聽聽IF聽聽ARR[M]>ARR[J] THEN
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 T:=ARR[M];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[M]:=ARR[J];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[J]:=T;
    聽 聽 聽 聽 聽 聽 聽 聽聽 聽 END_IF聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 ELSIF MODE=seriation THEN
    聽 聽 聽 聽 FOR聽聽N:=0 TO 9 BY 1 DO
    聽 聽 聽 聽 聽 聽 IF I<9-N THEN I:=9-N; END_IF聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 FOR M:=0 TO i-1 BY 1 DO
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 J:=M+1;聽 聽 聽 聽 聽 聽 聽 聽聽聽
    聽 聽聽 聽聽 聽聽聽IF聽聽ARR[M]<ARR[J] THEN
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 T:=ARR[M];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[M]:=ARR[J];
    聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ARR[J]:=T;
    聽 聽 聽 聽 聽 聽 聽 聽聽 聽 END_IF聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽
    聽 聽 聽 聽 聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_FOR
    聽 聽 聽 聽 END_IF
    END_IF
    IF NOT EN THEN
    聽 聽 聽 聽 data_OUT[0]:=
    聽 聽 聽 聽 data_OUT[1]:=
    聽 聽 聽 聽 data_out[2]:=
    聽 聽 聽 聽 data_out[3]:=
    聽 聽 聽 聽 data_out[4]:=
    聽 聽 data_out[5]:=
    聽 聽 聽 聽 data_out[6]:=
    聽 聽 聽 聽 data_out[7]:=
    聽 聽 聽 聽 data_out[8]:=
    聽 聽 聽 聽 data_out[9]:=0;
    END_IF
    data_OUT:=ARR;
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鎮ㄩ渶瑕佺櫥褰曞悗鎵嶅彲浠ュ洖甯 鐧诲綍 | 绔嬪嵆娉ㄥ唽 鏂版氮寰崥鐧婚檰

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-24 12:11 , Processed in 0.165629 second(s), 71 queries .

    閰峰痉缃

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

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