macro_command main()
short page
bool a=1,start
GetData(start, "Local HMI", LB, 20, 1)
if start==1 then
page=11 //跳转至窗口11
SetData(page, "Local HMI", LW, 500, 1) //PLC控制地址LW500
SetData(a, "Mitsubishi FX2N", M, 0, 1) //M0置ON
end if
end macro_command
可以试试,我也正在学宏
short page
bool a=1,start
GetData(start, "Local HMI", LB, 20, 1)
if start==1 then
page=11 //跳转至窗口11
SetData(page, "Local HMI", LW, 500, 1) //PLC控制地址LW500
SetData(a, "Mitsubishi FX2N", M, 0, 1) //M0置ON
end if
end macro_command
可以试试,我也正在学宏