Table of Contents
The Ethernet output mailbox block allows sending up to 1024 bytes of data via Ethernet using the UDP/IP protocol (in SDK versions prior to 2025.2, the size limit was 32-bit). To receive data via Ethernet using the UDP/IP protocol, the Ethernet input mailbox should be used.
It supports two operating modes:
- On-demand mode: the user manually triggers the message transmissions.
- Periodical mode: the message is sent periodically, whether the data has been changed or not. The user can configure the transmission frequency.
Simulink block
Signal specification
- The first input is the data to send. The accepted data type is specified by the
Signal coding format
parameter. This data can be provided as a vector, with its size defined by theNumber of signals
parameter. The maximum supported data size is 1024 bytes. (e.g. withSignal coding format
set to uint32 andNumber of signals
set to 100, the data size will be 4 x 100 = 400 bytes) - The second input is the send data signal. It is used to initiate a data transmission when the on-demand mode has been selected. Data is sent upon a rising edge on this signal.
Parameters
Ethernet port number
: sets the destination port to which the data will be sent.Ethernet IP address
: selects the IP address to whom the data will be sent.Signal coding format
: defines the data type accepted in the data input (int8, int16, int32, uint8, uint16, uint32, float32, or float64).Number of signals
: specifies the vector size of the data to be sent.Byte order
: defines the byte order in which the data will be sent. (little-endian or big-endian)Tx frequency
: sets the data transmission frequency if the periodical mode has been selected.
PLECS block
Signal specification
- The first input is the data to send. The accepted data type is specified by the
Signal coding format
parameter. This data can be provided as a vector, with its size defined by theNumber of signals
parameter. The maximum supported data size is 1024 bytes. (e.g. withSignal coding format
set to uint32 andNumber of signals
set to 100, the data size will be 4 x 100 = 400 bytes) - The second input is the send data signal. It is used to initiate a data transmission when the on-demand mode has been selected. Data is sent upon a rising edge on this signal.
Parameters
Ethernet port number
: sets the destination port to which the data will be sent.Ethernet IP address
: selects the IP address to whom the data will be sent.Signal coding format
: defines the data type accepted in the data input (int8, int16, int32, uint8, uint16, uint32, float32, or float64).Number of signals
: specifies the vector size of the data to be sent.Byte order
: defines the byte order in which the data will be sent. (little-endian or big-endian)Tx frequency
: sets the data transmission frequency if the periodical mode has been selected.
The Ethernet IP addresses can be configured in the Imperix Controllers’ target window (Coder → Coder option → Target).