subscribe
Short Summary
This method adds the subscriber to a subscribption list. All subscribers are going to be notified, if the safety release changes.
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| subscriber | CNM_OpModeHandlingInterfaces.ISafetySwitch | class with the Interface ISafetySwitch, that can be switched on/off | input |
Code
Declaration
METHOD subscribe
VAR_INPUT
(* class with the Interface ISafetySwitch, that can be switched on/off *)
subscriber : CNM_OpModeHandlingInterfaces.ISafetySwitch;
END_VAR
Implementation
THIS^.subscriberList.append(subscriber);