macro_command main()
short test_short=12345.1
int test_int=12345
float test_float=12.1
float test[4]
GetDataEx(test[0], "Siemens S7-300/ET200S (Ethernet)", DB3, 0, 1)//test
SetDataEx(test[0], "Siemens S7-300/ET200S (Ethernet)", DB3, 8, 1)//test
SetData(test_short, "Siemens S7-300/ET200S (Ethernet)", DB3, 12, 1)//test
SetData(test_int, "Siemens S7-300/ET200S (Ethernet)", DB3, 16, 1)//test
SetData(test_float, "Siemens S7-300/ET200S (Ethernet)", DB3, 20, 1)//test
end macro_command
宏指令如上