This site uses cookies for functional purposes. To continue please read and agree to our Data Privacy.

By closing this message, you consent to our use of cookies on this device.

PLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

C# in real-time - Implementation Roadmap

PLCnext Technology integrates programming in different programming languages, so users should be able to program function blocks or programs in C# using their familiar Microsoft Visual Studio* as the integrated development environment.

For this Phoenix Contact provides a Visual Studio* Extension for development, implementation and debugging of eCLR firmware libraries in C# on devices with PLCnext Technology.

*(Microsoft® and Visual Studio® are registered trademarks.)

Latest Update:
February, 2019

Outlook

Find in the list below our top features planned to be implemented during 2019.

  1. C# adaptation of the PLCnext C++ Security API
  2. PLCnext programs in C#
  3. Shared Native Libraries to allow programming of C++ FU/FBs

For detailed information, click on the headline of the regarding section to unfold the features table:

PLCnext Technology integrates programming in different programming languages, so users should be able to program function blocks or programs in C# using their familiar Microsoft Visual Studio* as the integrated development environment.

For this Phoenix Contact provides a Visual Studio* Extension for development, implementation and debugging of eCLR firmware libraries in C# on devices with PLCnext Technology.

*(Microsoft® and Visual Studio® are registered trademarks.)

Latest Update:
February, 2019

Outlook

Find in the list below our top features planned to be implemented during 2019.

  1. C# adaptation of the PLCnext C++ Security API
  2. PLCnext programs in C#
  3. Shared Native Libraries to allow programming of C++ FU/FBs

For detailed information, click on the headline of the regarding section to unfold the features table:

Microsoft Visual Studio versions supported

v1.0 v2019.0 v2019.3 v2019.6
Microsoft Visual Studio 2015
Microsoft Visual Studio 2017  - 
Microsoft Visual Studio 2019  -   -   - 

IEC 61131-3 Runtime features

v1.0 v2019.0 v2019.3 v2019.6
Functions
Function blocks
Programs  -   - 
Shared Native Libraries (C++ FU/FBs)  -   -   - 

C# Types and Type System

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

C# Types

All built-in types except of decimal.

C# Type System

v1.0 v2019.0 v2019.3 v2019.6
Namespaces, Structs, Classes, Interfaces, Enums, Nested Types
Indexer, Properties, Operations
Events, Delegates, MultiCastDelegates
Arrays
Constructors, Static Constructors, Destructors (Finalizers)
Boxing, Unboxing, Static Casts

C# Polymorphy

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
Virtual Mechanism (virtual, overwrite, abstract)
Dynamic Casts (as)

C# Modifiers and Keywords

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
public, internal, protected, private
readonly, const, sealed, unsafe
params, ref, out
base, this
explicit, implicit, operator

C# Operators

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
new, sizeof, typeof, as, is
All unary operators
All binary operators
Prefix, postfix and conditional operator
Cast and index operator

C# Control Structures and Statements

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
if, else
switch, case, default (also on strings)
for, do, while, foreach, break, continue
goto, return
using, fixed
lock

C# Exceptions

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
throw
try, catch, finally

C# Generics

The following is an overview of the supported C# functions. A detailed representation can be found in the PLCnext Technology User Manual (chapters 5.6 and 5.7).

v1.0 v2019.0 v2019.3 v2019.6
Classes with single or multiple generic arguments
Nested generic classes
Generic delegates

Debug Support

v1.0 v2019.0 v2019.3 v2019.6
Breakpoint handling
Evaluating instance values
Providing callstack information  - 

Base Classes supported

For a list of all supported base classes, please refer to the PLCnext Technology User Manual (chapter 7.4).