TCP/IP client/server connection between Matlab and IEC 16499 CLIENT/SERVER FBs running on FORTE
Updated 14 Sep 2017
Enables TCP/IP client/server connection between Matlab and 4diac Communication Service Interface Function blocks (SERVER/CLIENT).
Subclass of Matlab's tcpip class. The transferred byte-data is automatically translated to the respective data types.
TCPIP4DIAC Construct a TCPIP client or server object that can communicate with 4diac CLIENT/SERVER function blocks.
The currently supported IEC 61499 data type transfers are:
BOOL <--> locical
SINT <--> int8
INT <--> int16
DINT <--> int32
LINT <--> int64
USINT <--> uint8
UINT <--> uint16
UDINT <--> uint32
ULINT <--> uint64
REAL <--> single
LREAL <--> double
STRING <--> char
WSTRING <--> string (not recommended, since Matlab does not have a wide char equivalent)
DATE_AND_TIME <--> 1x6 double (datevec format)
New: All of the above data types (with the exception of STRING and WSTRING) are now also supported for arrays (translated to Matlab as Nx1 vectors). However, only LREAL arrays have been tested extensively. Others should work, too, but have not yet been tested by the author.
Author: Marc Jakobi, May 2017, HTW-Berlin
Marc Jakobi (2022). TCP/IP client/server connection between Matlab and IEC 16499 CLIENT/SERVER FBs running on FORTE (https://github.com/MrcJkb/tcpip4diac), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!