Codesys CAN缃戠粶鍙橀噺-纭欢鍙婂巶鍟嗕笓鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 3648|鍥炲: 1

Codesys CAN缃戠粶鍙橀噺

[澶嶅埗閾炬帴]

璇ョ敤鎴蜂粠鏈鍒

鍙戣〃浜 2012-12-7 22:10:24 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
Codesys CAN缃戠粶鍙橀噺鑳戒笉鑳界洿鎺ュ彂閫佹帴鏀禦EAL鏁版嵁绫诲瀷锛岃繕鏄彧鑳芥槸浜岃繘鍒禕YTE鏁版嵁绫诲瀷锛燂紵
+10
涓嶈禐涓涓紵
鎵撹祻榧撳姳涓涓嬶紒
鍥炲

浣跨敤閬撳叿 涓炬姤

  • TA鐨勬瘡鏃ュ績鎯
    寮蹇
    2017-11-20 22:07
  • 绛惧埌澶╂暟: 2 澶

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2012-12-13 08:59:03 | 鏄剧ず鍏ㄩ儴妤煎眰
    can鎬荤嚎鏁版嵁鏄敱8涓猙yte缁勬垚鎵浠ユ棤璁轰互鍙戜换浣曟暟鎹被鍨嬮兘闇瑕佸厛杩涜澶勭悊锛屼緥濡備竴涓獁ord鍙互鍒嗕负楂8浣嶄竴涓猙yte锛屼綆8浣嶄竴涓猙yte锛屾帴鏀剁鏀跺埌鍚庡啀缁勫悎銆
    鍚岀悊瀵逛簬娴偣绫诲瀷濡備笉鎯充涪澶辩簿搴﹀彲澶勭悊涓烘暣褰㈠啀鎸夌収涓婇潰鐨勬柟寮忓彂閫
    渚嬪锛
    sd[0..8]:ARRAY[1..4] OF BYTE;
    F:REAl := 3.14;
    M:UINT;

    M=REAL_TO_UINT( F*100);
    sd[1]=UINT_TO_BYTE(M MOD 256);
    sd[2]=UINT_TO_BYTE(M/256);


    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鎮ㄩ渶瑕佺櫥褰曞悗鎵嶅彲浠ュ洖甯 鐧诲綍 | 绔嬪嵆娉ㄥ唽 鏂版氮寰崥鐧婚檰

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-23 17:00 , Processed in 0.136174 second(s), 58 queries .

    閰峰痉缃

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

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