Íþ¾]ͨºêÖ¸ÁîÈçºÎÈëÊÖ°¡£¿
macro_command main()
short a,b[3]
bool OFF
GetData(a, "Local HMI", LW, 9200, 1)
b[0]=1+a/10
b[1]=b[0]+1
b[2]=b[1]+1
SetData(b[0], "Local HMI", RW, 2000, 3)
SetData(OFF, "Local HMI", LB, 10, 1)
end macro_command
ß@ÊÇÅä·½ÖзÏÂһ퓵ÄÖ¸Áî
ÆäÖÐb[0]=1+a/10ÊÇָʲô£¬ÔõôȥÀí½â£¿