ˆDƬ£º
Õˆ½Ì´óÀЂƒ£¬Íþ¾]ͨÔõôŒ‘ˆÌÐÐ×Óº¯”µ£¬·µ»ØƒÉ‚€”µÖµ¡£¿´µ½¹Ù¾WÒ²›]ÓÐß@‚€·µ»ØƒÉ‚€”µÖµµÄ
//×Óº¯”µ£¬½»“Q”µ“þ
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•rég
Commutative_function(time[0], time[2])//ˆÌÐÐ×Óº¯”µ
SetData(time[0], "Mitsubishi FX3U/FX3G", D, 0, 3)
end macro_command