Skip to main content

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

NameTypeCommentKind
subscriberCNM_OpModeHandlingInterfaces.ISafetySwitchclass with the Interface ISafetySwitch, that can be switched on/offinput

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);