Codesys涓嬬殑Ping浣跨敤-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 24|鍥炲: 0

Codesys涓嬬殑Ping浣跨敤

[澶嶅埗閾炬帴]
  • TA鐨勬瘡鏃ュ績鎯
    鎿︽睏
    2019-8-13 14:13
  • 绛惧埌澶╂暟: 32 澶

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

    鍙戣〃浜 6 澶╁墠 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
    鍓嶈█

    涓鑸岃█锛屽湪閰嶇疆鏈夎繙绋嬫ā鍧楅兘浼氶潰涓翠竴涓棶棰橈紝灏辨槸杩滅▼妯″潡琚媶闄わ紝浠庤屾棤娉曞疄鐜版甯哥殑缁存姢浣跨敤銆傛妸鏁呰冭檻鑳芥庝箞鏍风殑PLC鍜岃繙绋嬫ā鍧楄繘琛屽績璺崇殑閰嶅锛屼粠鑰岃В鍐宠繖涓媶闄ょ殑闂銆傛湰鏂囦富瑕佷娇鐢–odesys涓嬬殑杞疨LC杩涜瀹炵幇銆

    姝f枃鍔犺浇瀹樼綉搴 - SysSocket
    [AppleScript] 绾枃鏈煡鐪 澶嶅埗浠g爜
    PROGRAM Pro_Ping
    VAR
            bCheck        : BOOL;
            bPingOK       : BOOL ;
            sIPAddress    : STRING := '192.168.1.81';
            UdiReplayTime : UDINT;
    END_VAR
    IF bCheck THEN
            IF SysSockPing(szIPAddress:= sIPAddress, ulTimeout:= TIME_TO_UDINT(T#50MS), pulReplyTime:= ADR(UdiReplayTime)) = 0 THEN
                    bPingOK:= TRUE ;
            ELSE
                    bPingOK:= FALSE ;
            END_IF
            bCheck := FALSE ;
    END_IF

    >>> 娉ㄦ剰鍥犱负鏈姛鑳界殑鍝嶅簲鍛ㄦ湡杈冮暱锛屾晠寤鸿閲囩敤杈冧綆浠诲姟銆<<<
    缁撳熬

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

    浣跨敤閬撳叿 涓炬姤

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

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2025-1-23 03:21 , Processed in 0.149350 second(s), 55 queries .

    閰峰痉缃

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

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