Exemplo n.º 1
0
 /// <summary>
 /// With this constructor user defined command can be created
 /// </summary>
 /// <param name="modeTag">An instance of a tag that should be used to set the mode</param>
 /// <param name="commandTag">An instance of a tag that should be used to send the command to</param>
 public Command(
     IController controller, PlcEssentials.Command innerCommand,
     IReadOnlyCollection <Tag> childTags, Tag modeTag, Tag commandTag)
 {
     _controller   = controller;
     _innerCommand = innerCommand;
     _childTags    = childTags;
     _modeTag      = modeTag;
     _commandTag   = commandTag;
 }
Exemplo n.º 2
0
 public Command(IController controller, PlcEssentials.Command innerCommand, IReadOnlyCollection <Tag> childTags)
 {
     _controller   = controller;
     _innerCommand = innerCommand;
     _childTags    = childTags;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Updates the command data of this command.
 /// </summary>
 /// <param name="updatedCommand">the updated data.</param>
 public void UpdateCommandData(PlcEssentials.Command updatedCommand)
 {
     _innerCommand = updatedCommand;
 }