涓夛紟CANII IEC 搴-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 3141|鍥炲: 6

涓夛紟CANII IEC 搴

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

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

    鍙戣〃浜 2018-8-17 11:30:24 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
    鏈簱灏辨槸涓浜涘熀浜 CAN2.0 鍗忚鐨勪竴浜涘姛鑳藉潡銆備篃灏辨槸 Can2.lib 涓殑涓浜涘嚱鏁颁笌鍔熻兘鍧椼3.1 CAN_II_BUFF_INIT 鍑芥暟
    鍔熻兘鎻忚堪锛      
    鏈姛鑳藉潡鐨勪富瑕佷綔鐢ㄦ槸鐢ㄦ潵鍒濆鍖 CAN 鎺ュ彈淇℃伅瀵硅薄鐨勩傛敞鎰 CAN_II_BUFF_INIT锛屽繀椤荤敤鍦 CAN_II_INIT 鍓嶉潰銆傛湰鍑芥暟鏄 BOOL 鍨嬬殑銆
    鍑芥暟鍧楀涓嬪浘锛

    61bbc0cb3ce13b6a64cfe4b5ad505f6b.jpg
    杈撳叆锛
    锛1锛 ENABLE锛孊OOL 鍨嬨傚嚱鏁扮殑浣胯兘鍙橀噺銆
    锛2锛 OBJ锛屽璞″彿锛岃緭鍏ユ暟鍊硷紝1~14锛0 鏄敤鏉ヤ紶杈撶殑鍙枫
    锛3锛 ID锛屼俊鎭 ID锛11 鎴 29 浣 ID銆
    锛4锛 EXTENDED锛孊OOL 鍨嬶紝鐢ㄦ潵鎵╁睍 ID 涓 29 浣嶃
    杈撳嚭锛1锛 ERROR锛孊OOL 鍨嬨傚綋 OBJ 瓒呭嚭鑼冨洿鏃舵湁杈撳嚭銆
    3.2 CAN_II_GET_MSG 鍔熻兘鍧
    鍔熻兘鎻忚堪锛     
    褰 CAN 鎬荤嚎涓婃湁鏂扮殑 CAN 淇℃伅鏄帴鍙楁暟鎹
    鍔熻兘鍧楀涓嬪浘锛

    6294da20c6b772dd585126455edd6f53.jpg
    杈撳叆锛
    锛1锛 ESSAGE锛岀敤鎴锋兂鎺ュ彈鐨勪俊鎭
    杈撳嚭锛
    锛1锛 EXTENDED锛孊OOL 鍨嬶紝褰撲俊鎭 ID 涓 29 浣嶆椂涓 TRUE銆
    锛2锛 ID锛屼俊鎭殑 ID銆
    锛3锛 DLC锛屼俊鎭殑闀垮害銆
    锛4锛 DATAn锛屼俊鎭殑鏁版嵁锛屽叾涓 n=DLC銆
    锛5锛 CUSTOMER锛屾病鏈夊畾涔夈
    锛6锛 NEW_DATA锛孊OOL 鍨嬶紝褰撶紦瀛樹腑鏈夋柊鐨勬暟鎹椂涓 TRUE銆
    3.3 CAN_II_INIT 鍑芥暟
    鍔熻兘鎻忚堪锛
    CAN_II 璁惧鐨勫垵濮嬪寲鍑芥暟銆
    鍔熻兘鍧楀涓嬪浘锛
    d4b4887be3cd764d9399dd900c5d2db4.jpg
    杈撳叆锛
    锛1锛 ENABLE锛孊OOL 鍨嬶紝浣垮嚱鏁板彲浠ュ伐浣溿
    锛2锛 SPEED锛孋AN 璁惧鐨勬尝鐗圭巼銆
    锛3锛 GBML (GloBal Mask Long) 29bit 鍏ㄧ悆鐮併
    锛4锛 GBMS锛圙loBal Mask Short锛11bit 鍏ㄧ悆鐮併
    锛5锛 TERM_RES CAN 鐨勬帴鍙楃粓绔 On/Off.
    3.4 CAN_II_RTR 鍑芥暟    
    鍔熻兘鎻忚堪锛      
    鍙戦佽繙璺濈浼犻佽姹傘傛湰鍑芥暟鏄 BOOL 鍨嬬殑銆
    鍑芥暟鍧楀涓嬪浘锛
    0038e17c1ae765087730d6e573332125.png
    杈撳叆锛
    锛1锛 ENABLE锛孊OOL 鍨嬶紝浣胯兘銆
    锛2锛 OBJ 閫夋嫨瀵硅薄鍙凤紝1~13銆
    杈撳嚭锛
    锛1锛 ERROR锛屽綋杈撳嚭涓 TRUE 鏃讹紝灏辨槸閫夋嫨鐨勫璞″ソ鏈夐棶棰樸
    3.5 CAN_II_STATUS 鍔熻兘鍧
    鍔熻兘鎻忚堪锛
    鏈姛鑳藉揩灏辨槸鐢ㄦ潵杩斿洖 CAN 璁惧鐨勭姸鎬併
    鍔熻兘鍧楀涓嬪浘:
    杈撳叆锛氭棤
    杈撳嚭锛
    锛1锛 LEC锛屽氨鏄繑鍥炴渶杩戠殑涓涓嚭閿欑殑浠g爜銆
    锛2锛 TXOK 涓 TRUE 鏃跺氨琛ㄧず浼犺緭鎴愬姛銆
    锛3锛 RXOK 涓 TRUE 鏃跺氨琛ㄧず鎺ュ彈鎴愬姛銆
    62b06ed5f2f7c247884d533e269295b6.jpg
    锛4锛 EWARN_COUNT 鍑洪敊璁版暟鍣ㄣ
    锛5锛 BUSOFF_COUNT锛屾荤嚎鍏抽棴璁版暟鍣ㄣ
    3.6 CAN_IIRX 鍔熻兘鍧  
    鍔熻兘鎻忚堪锛  
    浠庢洿楂樼殑 message 瀵硅薄鏉ユ帴鍙楁柊鐨 CAN 淇℃伅銆
    鍔熻兘鍧楀涓嬪浘锛
    f6d507bf6d247fab82a80eb484bd958e.jpg
    杈撳嚭锛
    锛1锛 EXTENDED锛孊OOL 鍨嬶紝 鎵╁睍淇℃伅鐨 ID 浣嶄负 29 浣嶃
    锛2锛 ID 锛屼俊鎭 ID銆
    锛3锛 DLC 锛屾暟鎹暱搴 1..8銆
    锛4锛 DATAn 锛屼俊鎭暟鎹紝鍏朵腑 n=DLC
    锛5锛 CUSTOMER 锛屾病鏈夊畾涔夈
    锛6锛 NEW_DATA 锛屽綋鏈夋柊鐨勬暟鎹埌浜嗙紦瀛樹腑鏃朵负 TRUE銆
    3.7 CAN_IITX 鍔熻兘鍧
    鍔熻兘鎻忚堪锛         
    鍚戞洿楂樼殑 message 瀵硅薄鏉ュ彂鏂扮殑 CAN 淇℃伅銆
    鍔熻兘鍧楀涓嬪浘锛
    687bc29ad892eed62e3f0a06a0ce096e.jpg
    杈撳叆锛
    锛1锛 ENABLE锛孊OOL 鍨嬶紝浣胯兘銆
    锛2锛 XTENDED锛孊OOL 鍨嬶紝 鎵╁睍淇℃伅鐨 ID 浣嶄负 29 浣嶃
    锛3锛 ID 锛屼俊鎭 ID銆
    锛4锛 DLC 锛屾暟鎹暱搴 1..8銆
    锛5锛 DATAn 锛屼俊鎭暟鎹紝鍏朵腑 n=DLC銆
    CAN2 浣跨敤璇存槑锛
    鎺ユ敹鏁版嵁锛      
    1锛庡彲浠ラ噰鐢 CAN_II_BUFF_INIT 鍜 CAN_II_GET_MSG 閰嶅悎浣跨敤锛岃嚜鍔ㄥ皢 CAN鎬荤嚎涓 ID 鍜 CAN_II_BUFF_INIT 鐩稿悓 ID 鐨勬暟鎹嚜鍔ㄦ斁鍒扮浉搴旂殑缂撳瓨閲岄潰锛屽缓璁鏋滄帴鏀剁殑 鏁 鎹 鏈 闄 鐨 璇 浣 鐢 CAN_II_BUFF_INIT 鍜 CAN_II_GET_MSG 鍑 鏁 鎺 鏀 鏁 鎹 锛孋AN_II_BUFF_INIT 搴斿湪 CAN_II_INIT 涔嬪墠銆      
    2锛庝篃鍙互鍙娇鐢 CAN_IIRX锛屼絾鏄鏋滀娇鐢 CAN_IIRX 鍑芥暟蹇呴』鍒ゆ柇鎺ユ敹鍥炴潵鐨 ID 鍜屾垜闇瑕佺殑 ID 鏄惁鐩哥瓑锛屽洜涓 CAN_IIRX 灏嗘荤嚎涓婃墍鏈夌殑鏁版嵁閮芥帴鏀跺洖鏉ャ傚彂閫佹暟鎹細浣跨敤 CAN_IITX 鍙戦 CAN 鏁版嵁鐢变簬鍙戦佺紦瀛樼殑闄愬埗锛屾瘡涓娆℃渶澶氬彲浠ュ彂閫 8 涓笉鍚 CAN ID 鐨勬暟鎹紝鑰冭檻鍒版瘡娆″彂閫佺殑鍙潬寤鸿姣忔绋嬪簭寰幆涓娆″彂閫 5 涓笉鍚 CAN ID鐨勬暟鎹


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

    浣跨敤閬撳叿 涓炬姤

  • TA鐨勬瘡鏃ュ績鎯
    鏃犺亰
    2020-9-14 08:06
  • 绛惧埌澶╂暟: 54 澶

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

    鍙戣〃浜 2020-6-15 14:08:24 | 鏄剧ず鍏ㄩ儴妤煎眰
    6fchgfcvhgvujhbuh
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒

    璇ョ敤鎴蜂粠鏈鍒

    鍙戣〃浜 2020-10-27 12:58:39 | 鏄剧ず鍏ㄩ儴妤煎眰
    璋㈣阿妤间富鍒嗕韩锛岀湅鐪嬫槸浠涔
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒

    璇ョ敤鎴蜂粠鏈鍒

    鍙戣〃浜 2020-10-29 11:14:30 | 鏄剧ず鍏ㄩ儴妤煎眰
    鎯充笅杞界湅鐪嬫槸涓嶆槸鎴戠殑鐗堟湰
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒

    璇ョ敤鎴蜂粠鏈鍒

    鍙戣〃浜 2023-10-26 10:33:38 | 鏄剧ず鍏ㄩ儴妤煎眰
    CANII IEC 搴
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
  • TA鐨勬瘡鏃ュ績鎯
    寮蹇
    2023-11-25 08:30
  • 绛惧埌澶╂暟: 1 澶

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2023-11-25 08:37:14 | 鏄剧ず鍏ㄩ儴妤煎眰
    鎻愮ず: 浣滆呰绂佹鎴栧垹闄 鍐呭鑷姩灞忚斀
    +10
    涓嶈禐涓涓紵
  • TA鐨勬瘡鏃ュ績鎯
    寮蹇
    2024-1-25 13:00
  • 绛惧埌澶╂暟: 2 澶

    [LV.1]鍒濇潵涔嶅埌

    鍙戣〃浜 2023-11-25 09:43:07 | 鏄剧ず鍏ㄩ儴妤煎眰
    杩欎釜搴撶幇鍦ㄤ笅杞戒笉鍒
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鎮ㄩ渶瑕佺櫥褰曞悗鎵嶅彲浠ュ洖甯 鐧诲綍 | 绔嬪嵆娉ㄥ唽 鏂版氮寰崥鐧婚檰

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-27 11:21 , Processed in 0.153695 second(s), 86 queries .

    閰峰痉缃

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

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