forked from PLCnext/CppExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThreadExampleProgram.cpp
32 lines (26 loc) · 1.07 KB
/
ThreadExampleProgram.cpp
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
31
32
/******************************************************************************
*
* 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.
*
* ThreadExampleProgram.cpp
*
* Created on: 16.05.2019
* Author: Eduard Münz, Oliver Warneke
*
******************************************************************************/
/******************************************************************************/
/* INCLUDES */
/******************************************************************************/
#include "ThreadExampleProgram.hpp"
#include "Arp/System/Commons/Logging.h"
#include "Arp/System/Core/ByteConverter.hpp"
namespace ThreadExample
{
void ThreadExampleProgram::Execute()
{
//implement program
i_pCounter = threadExampleComponent.GetCounterValue();
Log::Info("-------------------------------Program Cyclic Call: i_pCounter = {0}", i_pCounter);
}
} // end of namespace ThreadExample