result = num1 + num2
// store the result
SetData(result,
“Local HMI”
, LW_BIN,
2
,
1
)
// clear the macro trigger bit
SetData(AllDone,
“Local HMI”
, LB_BIN,
1
,
1
)
end
macro_command
The macro was named “AddTwo” and the bit that executed this macro was LB:1. After the macro was written, a
‘PLC Control Object’ was added where the ‘Type of control’ was selected first to be ‘Execute macro program’.
Then the device type showed what bit types were available. A ‘LB’ was selected and the address ‘1’ was entered.
Finally, the macro name was selected. Below shows the PLC control object attribute window.
1010-1007, Rev 05
244
Sil ver Plus Se ries In stal la tion & Op er a tion Man ual
PLC Ob ject's Attributes
Pro ject Ex am ple of Add 2
Summary of Contents for Silver Plus Series
Page 20: ...1010 1007 Rev 05 16 Silver Plus Series Installation Operation Manual ...
Page 31: ...COM Ports for the HMI5056 5070 1010 1007 Rev 05 Connect the OIT to the PLC or Controller 27 ...
Page 38: ...1010 1007 Rev 05 34 Silver Plus Series Installation Operation Manual ...
Page 49: ...7 Click the Shape tab 1010 1007 Rev 05 Creating Your First Project 45 ...
Page 62: ...1010 1007 Rev 05 58 Silver Plus Series Installation Operation Manual ...
Page 75: ...3 Click OK The System Parameter Settings dialog appears 1010 1007 Rev 05 Using EZware 5000 71 ...
Page 132: ...1010 1007 Rev 05 128 Silver Plus Series Installation Operation Manual ...
Page 156: ...1010 1007 Rev 05 152 Silver Plus Series Installation Operation Manual ...
Page 210: ...1010 1007 Rev 05 206 Silver Plus Series Installation Operation Manual ...
Page 216: ...1010 1007 Rev 05 212 Silver Plus Series Installation Operation Manual ...
Page 246: ...1010 1007 Rev 05 242 Silver Plus Series Installation Operation Manual ...