PLCnext API Documentation 25.0.2.69
SystemVariables.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/RscSerializable.hpp"
10
11// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
12
14{
15
16using namespace Arp;
17using namespace Arp::Base::Rsc::Commons;
18using namespace Arp::Base::Rsc::Commons::Services;
19
23class ARP_EXPORT SystemVariables : public RscSerializable
24{
25public: // construction/destruction
27 SystemVariables(uint8 masterMainState, boolean hasControlError, boolean hasAutoClearError, boolean hasExchangeError, boolean isHostReady, boolean hasTimeoutError, uint16 busErrorCounter, uint16 timeoutCounter);
28
29public: // Properties
33 uint8 MasterMainState = 0;
34
38 boolean HasControlError = false;
39
43 boolean HasAutoClearError = false;
44
48 boolean HasExchangeError = false;
49
53 boolean IsHostReady = false;
54
58 boolean HasTimeoutError = false;
59
63 uint16 BusErrorCounter = 0;
64
68 uint16 TimeoutCounter = 0;
69
70public: // Rsc operations
71 void Serialize(RscWriter& writer)const;
72 void Deserialize(RscReader& reader);
73 static size_t GetFieldCount(void);
74};
75
76} // end of namespace Arp::Io::Profibus::Services
Any custom struct type which is intended to be marshalled in a Rsc serialization context,...
Definition: RscSerializable.hpp:35
Reads marshaled data of RSC services.
Definition: RscReader.hpp:34
Writes marshalled data of RSC services.
Definition: RscWriter.hpp:34
Delivers Profibus system variables
Definition: SystemVariables.hpp:24
SystemVariables(void)
Constructs an SystemVariables instance.
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:29
Namespace for Profibus services
Root namespace for the PLCnext API