blockTCPIP_Client_IO
A client block for TCP/IP socket communication
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.TCPIPconnection (Base icon for models of network connections), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).
Information
Supports sending/receiving of packets to/from a server over TCP/IP.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | IPAddress | "127.0.0.1" | IP address of remote TCP/IP server |
| Integer | port | 10002 | Port of the TCP/IP server |
| Activation | |||
| Boolean | enableExternalTrigger (from PartialSampleTrigger) | false | true, enable external trigger input signal, otherwise use sample time settings below |
| SI.Period | sampleTime (from PartialSampleTrigger) | 0.1 | Sample period of component |
| SI.Time | startTime (from PartialSampleTrigger) | 0 | First sample time instant |
| Outgoing data | |||
| Integer | outputBufferSize | 16*1024 | Buffer size of message data in bytes. |
| Incoming data | |||
| Integer | inputBufferSize | 16*1024 | Buffer size of message data in bytes. |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | trigger (from PartialSampleTrigger) | ||
| Interfaces.PackageIn | pkgIn | ||
| Interfaces.PackageOut | pkgOut |