TCP/IP client/server connection between Matlab and IEC 16499 CLIENT/SERVER FBs running on FORTE

The transferred byte-data is automatically translated to the respective data types.
96 Downloads
Updated 15 Oct 2022

# tcpip4diac
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

Cite As

Marc Jakobi (2024). 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
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Application Deployment in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.12.0.0

Added support for IEC 61499 arrays.

1.1.0.0

- Added support for DATE_AND_TIME
- Multiple STRING and WSTRING inputs and outputs at any positions are now possible.
- Using WSTRING issues a warning message because Matlab does not support wide chars and the usage has not been extensively tested.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.