Supported port data types - elementary

The programs of a PLCnext Technology application communicate via IN ports and OUT ports. Only a combination of specific data types is supported. When setting the IN and OUT ports with PLCnext Engineer, you can only enter permitted combinations of data types.

Note: 
If you implement the configuration without PLCnext Engineer but via an XML configuration file, you have to ensure that only the data type combinations listed in the Elementary data types table are used. If an invalid combination is configured, the startup process of the PLCnext Technology firmware is interrupted.
Debugging: Information on the startup behavior of the firmware is available in the Output.log diagnostic file. The file contains status and error messages as well as warning notes that help you find the source of error. The Output.log file is stored in the controller file system in the /opt/plcnext/logs directory. The file system is accessed via the SFTP protocol (see Common classes: Logging).

The following table shows all supported data type combinations of C++, Simulink® and PLCnext Engineer programs: 

C++ Simulink® PLCnext Engineer Use in one-dimensional array data type Use in struct data type
boolean Boolean BOOL,
Bit,
Boolean
int8 int8 SINT,
Signed8
uint8 uint8 USINT,
BYTE,
Unsigned8,
BitString8,
BitStringX,
Octetstring1,
CharASCII,
CharISO8859-1
int16 int16 INT,
Signed16
uint16 uint16 UINT,
WORD,
Unsigned16,
BitString16,
OctetString2
int32 int32 DINT,
Signed32
uint32 uint32 UDINT,
DWORD,
Unsigned32,
BitString32,
OctetString4
int64   LINT,
Signed64
uint64   ULINT,
LWORD,
Unsigned64,
BitString64,
OctetString8
float32 single REAL,
Float32
float64 double LREAL,
Float64
StaticString<n>    STRING 
StaticWString<n> (2021.6)   WSTRING (2021.6)
Array of primitive data types

 

 

 


•  Web browser recommendation: Chrome/Edge 88 or newer, Firefox ESR 90 or neweror Safari • 
• Published/reviewed: 2022-09-14 • Revision 046 •