PostWmInitRules
The callback PostWmInitRules (CENPyOlpWM_RuleInitOperator) is called just after the kernel initializes the workmethod event rules.
Es kann verwendet werden, um:
-
Arbeitsmethode-Ereignisregeln initialisieren
-
Zugriff auf OlpController
-
Ausgabe in das Protokoll
The callback is defined in the %WORKMETHOD_NAME%.py file that is located in the scripts folder of the plugin.
def PostTechInitAttributes(techAttribInitOperator):
def PostWmInitRules(wmRuleInitOperator):
wmRuleInitOperator.AddPyEvent('myRetractRule', 'ZAxisEvent')
wmRuleInitOperator.AddPyEvent('myRetractRule', 'GasEvent')Was this page helpful?