Supported port data types - 
data type combination between ports and I/O systems (octet string)

Available from 2021.6

There are several possibilities of combining the different data types of ports and I/O systems. Unsigned FDCML data types and variables (e.g. octet string) can be interconnected with the similar data types of different programming languages as shown in the table below. 

A prerequisite for the interconnection is that the data size of start and end port must match. If the interconnection is of different data types, no swapping is executed. In this case there must be an array on one or both sides (start/end port).

FDCML data type C++ data type IEC 61131 data type Swapping
  • Octetstring1
  • Bitstring8
  • USINT
  • Unsigned8
uint8 BYTE no
  • Octetstring2
  • Bitstring16
  • UINT
  • WORD
  • Unsigned16
uint16 WORD yes
Octetstring2/BitString16 Array[2] of uint8 Array[2] of BYTE no
  • Octetstring4
  • Bitstring32
  • UDINT
  • DWORD
  • Unsigned32
uint32 DWORD yes
Octetstring4/Bitstring32
  • Array[4] of uint8
  • Array[2] of uint16
  • Array[1] of uint32
  • Array [4] of BYTE
  • Array [2] of WORD
  • Array [1] of DWORD 
no
  • Octetstring8
  • Bitstring64 
  • ULINT 
  • LWORD
  • Unsigned64
uint64 LWORD yes
  • Octetstring8/Bitstring64 
  • Array [8] of uint8
  • Array [4] of uint16
  • Array [2] of uint32
  • Array [1] of uint64
  • Array [8] of BYTE
  • Array [4] of WORD
  • Array [2] of DWORD 
  • Array [1] of LWORD 
no
  • Octetstring[n]
  • BitstringX
  • UnsignedN
  • Array[] of uint8
  • Array[] of uint16
  • Array[] of uint32
  • Array[] of uint64
  • Array [] of BYTE
  • Array [] of WORD
  • Array [] of DWORD 
  • Array [] of LWORD

no

 

 


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