SetData(AllDone ,LB_Binplc ,1,1) // done with the macro,
clear the bit // that called it. (LB: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 (in older software, you would select the macro number instead of the name).
Below shows the PLC control object attribute window.
1010-1001a, Rev 02
246
Sil ver Se ries In stal la tion & Op er a tion Man ual
PLC Ob ject's Attributes
Содержание Silver HMI504T
Страница 1: ...1010 1001A Rev 02...
Страница 20: ...1010 1001a Rev 02 16 Silver Series Installation Operation Manual OIT to PC Serial Port Pin Assignments...
Страница 32: ...1010 1001a Rev 02 28 Silver Series Installation Operation Manual...
Страница 128: ...1010 1001a Rev 01 124 Silver Series Installation Operation Manual...
Страница 156: ...1010 1001a Rev 02 152 Silver Series Installation Operation Manual...
Страница 166: ...1010 1001a Rev 02 162 Silver Series Installation Operation Manual...
Страница 216: ...1010 1001a Rev 01 212 Silver Series Installation Operation Manual...
Страница 251: ...1010 1001a Rev 02 Macros 247 Set Bit Objects Attributes Dialog Project Example of Add 2...
Страница 264: ...End Macro_Command 1010 1001a Rev 02 260 Silver Series Installation Operation Manual...
Страница 268: ...1010 1001a Rev 01 264 Silver Series Installation Operation Manual...