-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructFB2.cs
More file actions
41 lines (35 loc) · 843 Bytes
/
StructFB2.cs
File metadata and controls
41 lines (35 loc) · 843 Bytes
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
#region Copyright
//
// 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.
//
#endregion Copyright
using Eclr;
using Iec61131.Engineering.Prototypes.Methods;
using Iec61131.Engineering.Prototypes.Types;
using Iec61131.Engineering.Prototypes.Variables;
namespace DocuSharedNativeLibrary
{
[FunctionBlock]
[Native]
public class StructFB2
{
[Input]
public int IN1;
[Input]
public int IN2;
[Output]
public InfoStruct INFO;
[Initialization]
[Managed]
public void __Init()
{
INFO.Init();
}
[Execution]
public void __Process()
{
// Implementation in native code
}
}
}