-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathPG_ReactToNotification.cpp
More file actions
30 lines (24 loc) · 1.01 KB
/
PG_ReactToNotification.cpp
File metadata and controls
30 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/******************************************************************************
*
* Copyright (c) Phoenix Contact GmbH & Co. KG. All rights reserved.
* Licensed under the MIT. See LICENSE file in the project root for full license information.
*
******************************************************************************/
#include "PG_ReactToNotification.hpp"
#include "Arp/System/Commons/Logging.h"
#include "Arp/Base/Core/ByteConverter.hpp"
namespace NotificationExample
{
void PG_ReactToNotification::Execute()
{
//implement program
this->OP_uiInfoValue = this->cOMP_Notifications.OP_uiValue1;
this->OP_uiWarningValue = this->cOMP_Notifications.OP_uiValue2;
// Copy values from Component to Program
// Do other stuff with component values
// if(this->cOMP_Notifications.OP_uiValue1 >10){
// log.Info("Value1:{0}",this->cOMP_Notifications.OP_uiValue1);
// log.Info("Value1:{0}",this->cOMP_Notifications.OP_uiValue2);
// }
}
} // end of namespace NotificationExample