夢雨天涯
微信hui530527 &
級別: 網絡英雄
![]() |
圖片:
![]() 請教大佬們,威綸通怎么寫執行子函數,返回兩個數值。看到官網也沒有這個返回兩個數值的 //子函數,交換數據 sub unsigned short Commutative_function(unsigned short a, unsigned short b) a=a+b b=a-b b=a-b TRACE("1") return a,b TRACE("2") end sub //主函數 macro_command main() unsigned short time[3] GetData(time[0], "Local HMI", LW, 9017, 3)//獲取HMI時間 Commutative_function(time[0], time[2])//執行子函數 SetData(time[0], "Mitsubishi FX3U/FX3G", D, 0, 3) end macro_command |
|
---|---|---|
|