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

CODESYS 鎸囬拡浣跨敤

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

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

    鍙戣〃浜 2023-4-12 16:30:04 | 鏄剧ず鍏ㄩ儴妤煎眰 |闃呰妯″紡

    codesys鎸囬拡涓鑸湁涓ょ鏂瑰紡浣跨敤锛宲ointer鍜宺eference涓ょ鏂瑰紡锛屾渶鍚庤繕浠嬬粛涓涓浣曢伩鍏嶆寚閽堝嚭閿欏鑷寸▼搴忎笉杩愯鐨勬柟娉

    1銆佺涓绉嶆柟寮 Pointer to
    澹版槑鎸囬拡鐨勮娉曞涓嬶細
    <鏍囪瘑绗>: POINTER TO <鏁版嵁绫诲瀷 | 鍔熻兘鍧 | 绋嬪簭 | 鏂规硶 | 鍑芥暟>;
    鍙栨寚閽堝湴鍧鍐呭鍗虫剰鍛崇潃璇诲彇鎸囬拡褰撳墠鎵鎸囧湴鍧涓瓨鍌ㄧ殑鏁版嵁銆傞氳繃鍦ㄦ寚閽堟爣璇嗙鍚庢坊鍔犲唴瀹
    鎿嶄綔绗︹ ^鈥 锛屽彲浠ュ彇寰楁寚閽堟墍鎸囧湴鍧鐨勫唴瀹广
    绠楁湳绱㈠紩璁块棶鎸囬拡锛氬鏋滀綘鐢ㄤ竴涓 POINTER TO 绫诲瀷鐨勫彉閲忚繘琛岀储寮曡闂, CODESYS 閫氳繃 pint = (pint + i * SIZEOF(base type))^ 璁$畻鍋忕Щ閲忋傜储寮曡闂篃浼氬鑷撮殣寮忕殑鎸囬拡瑙e紩鐢ㄣ備骇鐢熺殑鏁版嵁绫诲瀷鏄寚閽堝熀鏈暟鎹被鍨嬨傝娉ㄦ剰 pint[7] != (pint + 7)^锛


    getimg.php?url=https%3A%2F%2Fimg-blog.csdnimg.cn%2Fb4c8d018f62a4eccbab8dda5cfd2e661.png
    getimg.php?url=https%3A%2F%2Fimg-blog.csdnimg.cn%2F0d83ef58cf2f4cf391f52aa96e0fdb0b.png
    鎸囬拡鏁扮粍浣跨敤锛屽彲浠ュ皢杞村彿閫氳繃鏁扮粍鍙樺寲
    [AppleScript] 绾枃鏈煡鐪 澶嶅埗浠g爜
    ********************************************************************
    VAR
    Mc_power1:SM3_Basic.MC_Power;
    bRegulatorOn:BOOL;
    axisp:ARRAY [1..2] OF POINTER TO SM3_Basic.AXIS_REF_SM3;
    n:INT;
    iStep:INT:=1;
    END_VAR
    ********************************************************************
    CASE iStep OF
    1:n:=1;
    2:n:=2;
    END_CASE
    
    axisp[1]:=ADR(axis1);
    axisp[2]:=ADR(axis2);
    
    Mc_power1(
    Axis:= axisp[n]^,
    Enable:=TRUE ,
    bRegulatorOn:=bRegulatorOn1 ,
    bDriveStart:= TRUE,
    );
    


    =========================================================================

    2銆佺浜岀被鏂瑰紡 Reference to


    getimg.php?url=https%3A%2F%2Fimg-blog.csdnimg.cn%2Fcd51d01b34e14c75a18b70b747130135.png
    3銆佹寚閽堟牎楠屾柟寮


    getimg.php?url=https%3A%2F%2Fimg-blog.csdnimg.cn%2F99065e752c0a4bf3991997c47ff3937f.png


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

    浣跨敤閬撳叿 涓炬姤

  • TA鐨勬瘡鏃ュ績鎯
    濂嬫枟
    2023-4-14 10:26
  • 绛惧埌澶╂暟: 9 澶

    [LV.3]鍋跺皵鐪嬬湅II

    鍙戣〃浜 2023-4-14 12:16:03 | 鏄剧ず鍏ㄩ儴妤煎眰
    璁茶В鐨勫緢濂斤紝瀛︿範涓紝璋㈣阿妤间富锛
    鏂规硶1涓敤鍒颁簡杞寸殑搴擄紝鎴戞病鏈夎锛屽氨鐢–TU鏉ュ仛鐨勶紝涔熸槸鍙互鐨勩
    鏂规硶2涓紝濂藉儚鏄掕繃鏉ョ殑锛宨Result缁欏间箣鍚庯紝iVal鍊兼墠浼氬彉54.
    +10
    涓嶈禐涓涓紵
    鎵撹祻榧撳姳涓涓嬶紒
    鎮ㄩ渶瑕佺櫥褰曞悗鎵嶅彲浠ュ洖甯 鐧诲綍 | 绔嬪嵆娉ㄥ唽 鏂版氮寰崥鐧婚檰

    鏈増绉垎瑙勫垯

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

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

    GMT+8, 2024-11-23 20:28 , Processed in 0.145506 second(s), 64 queries .

    閰峰痉缃

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

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