Macro_Command main()
int py,pm,pd,sy,sm,sd,p1,p2
bool a=True,b=False
只是用來(lái)定義數(shù)據(jù)類型的
GetData(py ,RW_Bcdplc ,60005,1)
GetData(pm ,RW_Bcdplc ,60004,1)
GetData(pd ,RW_Bcdplc ,60003,1)
GetData(sy ,LW_Bcdplc ,500,1)
GetData(sm ,LW_Bcdplc ,501,1)
GetData(sd ,LW_Bcdplc ,502,1)
指定數(shù)據(jù)的來(lái)源 具體是什么寄存器不太明白
If sy==py And sm==pm And sd>pd Then
SetData(a ,M_Binplc ,8034,1)
Else If sy==py And sm>pm Then
SetData(a ,M_Binplc ,8034,1)
Else If sy>py Then
SetData(a ,M_Binplc ,8034,1)
End If
End Macro_Command
條件滿足就置位M8034
自己的理解,沒去求正過(guò) 欺待高手出現(xiàn)