Maple Systems Silver Plus Series Installation And Operation Manual page 248

Hide thumbs Also See for Silver Plus Series:
Table of Contents

Advertisement

244
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
result = num1 + num2
// store the result
SetData(result,
"Local
// clear the macro trigger bit
SetData(AllDone,
"Local
end
macro_command
PLC Ob ject's Attributes
Pro ject Ex am ple of Add 2
Sil ver Plus Se ries In stal la tion & Op er a tion Man ual
HMI", LW_BIN, 2, 1)
HMI", LB_BIN, 1, 1)

Advertisement

Table of Contents
loading

Table of Contents