Function transmits data via the serial interface (Interface setting).
For transmitting, data is taken from the TXD buffer from position 0 to (send_size - 1).
For the function to work, the corresponding interface must be configured in the device configuration:
Confirguration > RS-232/RS-485 > Device X > Сomplex Events (asynchronous mode).
| Function menu | Block diagram |
|---|---|
![]() |
![]() |
| Name | Type | Description |
|---|---|---|
start |
bool | If True, the function tries to transmit data |
send_size |
int32 | Number of bytes to send through the interface |
| Name | Type | Description |
|---|---|---|
state |
int32 | Transmitter status: 0 - no activity; 1 - transmitting data; -1 - interface not available (not configured). |
| Name | Description |
|---|---|
| Interface | Digital interface controlled by the function. If the selected interface is not configured, the function will generate a state = -1 error. |