-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathApiPlcRedundancyPairingState.cs
More file actions
53 lines (51 loc) · 1.8 KB
/
ApiPlcRedundancyPairingState.cs
File metadata and controls
53 lines (51 loc) · 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) 2026, Siemens AG
//
// SPDX-License-Identifier: MIT
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace Siemens.Simatic.S7.Webserver.API.Enums
{
/// <summary>
/// The pairing status of the R/H system.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ApiPlcRedundancyPairingState
{
/// <summary>
/// Default value if the pairing status could not be retrieved or was 0.
/// </summary>
[EnumMember(Value = "unknown")]
Unknown = 0,
/// <summary>
/// Redundant connection between both PLCs.
/// </summary>
[EnumMember(Value = "paired")]
Paired = 1,
/// <summary>
/// Only single pairing via port 1 (or 2) is available.
/// </summary>
[EnumMember(Value = "paired_single")]
Paired_single = 2,
/// <summary>
/// There are more than 2 R/H PLCs in the network. Cannot determine partner PLC.
/// </summary>
[EnumMember(Value = "not_paired_too_many_partners")]
Not_paired_too_many_partners = 3,
/// <summary>
/// The partner PLC is not reachable or internal error, represented as unspecified error to the user.
/// </summary>
[EnumMember(Value = "not_paired")]
Not_paired = 4,
/// <summary>
/// The order IDs of both PLCs of the R/H system do not match.
/// </summary>
[EnumMember(Value = "not_paired_order_id_mismatch")]
Not_paired_order_id_mismatch = 5,
/// <summary>
/// The firmware versions of both PLCs of the R/H system do not match.
/// </summary>
[EnumMember(Value = "not_paired_firmware_mismatch")]
Not_paired_firmware_mismatch = 6,
}
}