銆怌odesys銆戝崟绮惧害娴偣鏁拌浆鍗佸叚杩涘埗鐨勬柟娉-CODESYS璧勬簮涓嬭浇鍖-閰峰痉缃 - CoDeSys杞欢鏁欑▼涓嬭浇,CoDeSys宸ユ帶璧勮闂ㄦ埛
HSC6490-cn涓浗鍒堕狅紝涓浗鑺瘇
鏌ョ湅: 137|鍥炲: 0

銆怌odesys銆戝崟绮惧害娴偣鏁拌浆鍗佸叚杩涘埗鐨勬柟娉

[澶嶅埗閾炬帴]

璇ョ敤鎴蜂粠鏈鍒

鍙戣〃浜 2024-11-6 20:00:45 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡
鏈杩戦噰鐢ㄧ粰Modebus浠庣珯璁惧鍙戞暟鎹亣鍒颁簡鍗曠簿搴︽诞鐐规暟杞崄鍏繘鍒跺彂閫佺殑闂
闇瑕佸皢绫讳技浜  1.5 绛夊皬鏁  -6400绛夋暟 杞垚16杩涘埗鍙戦佺粰浠庣珯
鍘熺悊姣旇緝澶嶆潅  锛
鍏充簬16杩涘埗娴偣鏁
瀵逛簬澶у皬涓32-bit鐨勬诞鐐规暟锛32-bit涓哄崟绮惧害锛64-bit娴偣鏁颁负鍙岀簿搴︼紝80-bit涓烘墿灞曠簿搴︽诞鐐规暟锛夛紝
1銆佸叾绗31 bit涓虹鍙蜂綅锛屼负0鍒欒〃绀烘鏁帮紝鍙嶄箣涓哄鏁帮紝鍏惰鏁板肩敤s琛ㄧず锛
2銆佺30锝23 bit涓哄箓鏁帮紝鍏惰鏁板肩敤e琛ㄧず锛
3銆佺22锝0 bit鍏23 bit浣滀负绯绘暟锛岃涓轰簩杩涘埗绾皬鏁帮紝鍋囧畾璇ュ皬鏁扮殑鍗佽繘鍒跺间负x锛
鍒欐寜鐓ц瀹氾紝璇ユ诞鐐规暟鐨勫肩敤鍗佽繘鍒惰〃绀轰负锛
锛 (-1)^s * (1 + x) * 2^(e - 127)
闇瑕佸厛灏嗘诞鐐规暟杞簩杩涘埗锛屽啀绠楁寚鏁板拰鍙栦綅璁$畻锛屽緱鍑轰簩杩涘埗鍐嶈浆鍗佸叚杩涘埗銆
鑰孋odesys鏈夋洿鍔犱紭闆呯殑瑙e喅鏂规锛
鍒涘缓鑱斿悎浣擄紙Union锛
濡備笅
TYPE DUT :
UNION
     float: REAL;
     diDint: DINT;
     dwDWORD: DWORD;
END_UNION
END_TYPE

銆怌odesys銆戝崟绮惧害娴偣鏁拌浆鍗佸叚杩涘埗鐨勬柟娉-1.png


銆怌odesys銆戝崟绮惧害娴偣鏁拌浆鍗佸叚杩涘埗鐨勬柟娉-2.png


鍗冲彲寰楀埌 娴偣鏁1.5鐨勫崄鍏繘鍒跺笺傚啀鍐欎竴涓柟娉曟妸Dword鍒嗚В鎴4涓猙yte锛屽氨鍙互鍙戦佺粰浠庣珯璁惧浜嗐
鍚岀悊鑱斿悎浣撲篃鍙互瀹屾垚64浣嶅弻绮惧害娴偣鏁扮殑璁$畻杞崲锛屽嵆浠嶭REAL杞琇WORD銆
+10
涓嶈禐涓涓紵
鎵撹祻榧撳姳涓涓嬶紒
鍥炲

浣跨敤閬撳叿 涓炬姤

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

鏈増绉垎瑙勫垯

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

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

GMT+8, 2024-11-23 17:04 , Processed in 0.146492 second(s), 62 queries .

閰峰痉缃

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

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