| Name |
Description |
| MOVE |
Assignment |
| MOVE_EN |
Conditional assignment |
| MOVEX |
Multiple assignment |
| MOVEX_EN |
Conditional multiple assignment |
| Name |
Description |
| EQ |
Equal |
| NE |
Not equal |
| GT |
Greater than |
| GE |
Greater than or equal to |
| Name |
Description |
| AND |
Logical AND |
| OR |
Logical OR |
| XOR |
Logical exclusive OR |
| NOT |
Logical NOT |
| Name |
Description |
| ADD |
Addition |
| SUB |
Subtraction |
| MUL |
Multiplication |
| DIV |
Division |
| EXP |
Exponentiation |
| MOD |
Remainder |
| ABS |
Absolute value |
| SIGN |
Sign extraction |
| SQRT |
Square root |
| LN |
Natural logarithm |
| LOG |
Decimal logarithm |
| SIN |
Sine |
| COS |
Cosine |
| TAN |
Tangent |
| ASIN |
Arcsine |
| ACOS |
Arccosine |
| ATAN |
Arctangent |
| SCALE |
Scaling |
| FEXP |
Exponential filter |
| Name |
Description |
| SR |
Set-dominant trigger |
| RS |
Reset-dominant trigger |
| TT |
T-trigger |
| TP |
Pulse generator |
| BLINK |
Pulse generator |
| TON |
On-delay timer |
| TOFF |
Off-delay timer |
| RISING |
Rising edge detector |
| FALLING |
Falling edge detector |
| CNT |
Counter |
| RAND |
Random number generator |
| PWM |
PWM generator |
During data exchange, the device uses RXD (receive buffer) and TXD (transmit buffer).
A set of functions is used to work with the RXD and TXD buffers, allowing basic read/write and data conversion operations to be performed.
Auxiliary functions for working with the receive buffer.
| Name |
Description |
RXD_GET |
Read a value from the RXD buffer |
| RXD_GET |
Read a value from the RXD buffer |
| RXD_CMP |
Search for data in the RXD buffer |
| RXD_STR2INT |
Convert a DEC string from the RXD buffer to an integer |
| RXD_STR2FLOAT |
Convert a DEC string from the RXD buffer to a floating-point number |
| RXD_HEX2INT |
Convert a HEX string from the RXD buffer to an integer |
| RXD_HEX2FLOAT |
Convert a HEX string from the RXD buffer to a floating-point number |
| RXD_CHECKSUM |
Check checksum in the RXD buffer |
| RXD_CRC |
Check CRC checksum in the RXD buffer |
Auxiliary functions for working with the transmit buffer.
| Name |
Description |
| TXD_INIT |
Initialize the TXD buffer |
TXD_SET |
Write a value to the TXD buffer |
| TXD_SET |
Write a value to the TXD buffer |
| TXD_CHECKSUM |
Write checksum to the TXD buffer |
| TXD_CRC |
Write CRC checksum to the TXD buffer |
| TXD_GET |
Read a value from the TXD buffer |
| TXD_SETSTR |
Write a string to the TXD buffer |
The functions in this section allow arbitrary data exchange via the RS-232 and RS-485 interfaces.
Send an arbitrary set of data to the interface.
| Name |
Description |
| RS_SEND |
Send data to the serial port |
Receive an arbitrary set of data from the interface.
| Name |
Description |
| RS_RECV |
Receive data from the serial port |
As a special case of data exchange, the "Transaction" operation is provided. It is a sequence of the two previous operations, "Send" and "Receive".
This approach is convenient for working with devices based on the "request/response" principle.
| Name |
Description |
| RS_TRANS |
Request/response via serial port |
For convenient data reception and transmission using the ModBus protocol via RS-232 and RS-485 interfaces, special functions are provided.
They are essentially enhanced versions of the RS_TRANS function, so it is recommended to review the "Transaction" operation described above in this article.
The data exchange process is significantly simplified compared to universal data exchange functions, because the function itself creates the request/command in the ModBus protocol, controls reception of the response, and parses the data.
The device sends commands/requests and waits for a response.
| Name |
Description |
| MB_MST_RD |
Modbus RTU master – read data |
| MB_MST_WR |
Modbus RTU master – write data |
The device listens for commands/requests and sends a response when a request is received.
| Name |
Description |
| MB_SLV_RD |
Modbus RTU slave – read data |
| MB_SLV_WR |
Modbus RTU slave – write data |
Functions for data exchange via the Bluetooth interface.
Functions for data exchange via the CAN interface.
Functions for reading/writing data on the SD card.
| Name |
Description |
| SD_IFILL |
Initialize an INT array |
| SD_IGET |
Get elements from an INT array by index |
| SD_ISET |
Write elements to an INT array by index |
| SD_IINDEX |
Find the index of an element in an INT array by value |
| SD_IREMOVE |
Delete a file containing an INT array |