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 XOR |
NOT |
Logical NOT |
Name |
Description |
ADD |
Addition |
SUB |
Subtraction |
MUL |
Multiplication |
DIV |
Division |
EXP |
Exponentiation |
MOD |
Modulo |
ABS |
Absolute value |
SIGN |
Sign extraction |
SQRT |
Square root |
LN |
Natural logarithm |
LOG |
Base-10 logarithm |
SIN |
Sine |
COS |
Cosine |
TAN |
Tangent |
ASIN |
Arcsine |
ACOS |
Arccosine |
ATAN |
Arctangent |
SCALE |
Scaling |
FEXP |
Exponential filter |
Name |
Description |
SR |
Set-reset trigger |
RS |
Reset-set trigger |
TT |
T-trigger |
TP |
Pulse generator |
BLINK |
Pulse generator |
TON |
Timer with delay on |
TOFF |
Timer with delay off |
RISING |
Rising edge detector |
FALLING |
Falling edge detector |
CNT |
Counter |
RAND |
Random number generator |
PWM |
PWM generator |
When exchanging data, the device uses RXD (receive buffer) and TXD (transmit buffer).
To work with RXD and TXD buffers, a set of functions is used that allows performing basic read/write and data conversion operations.
Auxiliary functions for working with the receive buffer.
Name |
Description |
RXD_GET |
Read value from RXD buffer |
RXD_GET |
Read value from RXD buffer |
RXD_CMP |
Search data in RXD buffer |
RXD_STR2INT |
Convert DEC string from RXD buffer to integer |
RXD_STR2FLOAT |
Convert DEC string from RXD buffer to floating point number |
RXD_HEX2INT |
Convert HEX string from RXD buffer to integer |
RXD_HEX2FLOAT |
Convert HEX string from RXD buffer to floating point number |
RXD_CHECKSUM |
Check checksum in RXD buffer |
RXD_CRC |
Check CRC checksum in RXD buffer |
Auxiliary functions for working with the transmit buffer.
Functions in this section allow for arbitrary data exchange over RS-232 and RS-485 interfaces.
Sending an arbitrary data set to the interface.
Name |
Description |
RS_SEND |
Send data to the serial port |
Receiving an arbitrary data set from the interface.
Name |
Description |
RS_RECV |
Receive data from the serial port |
As a specific case of data exchange, the "Transaction" operation is provided. This is a sequence of the two previous operations "Send" and "Receive". This approach is convenient for working with devices on a "request/response" principle.
Name |
Description |
RS_TRANS |
Request/response over the serial port |
For the convenience of receiving and sending data over the ModBus protocol via RS-232 and RS-485 interfaces, special functions are provided. These are essentially enhanced versions of the RS_TRANS function, so it is recommended to familiarize yourself with the "Transaction" operation described above.
The data exchange process is significantly simplified compared to the universal data exchange functions, as the function itself generates the request/command in the ModBus protocol, manages the response, and performs data parsing.
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 upon receiving a request.
Name |
Description |
MB_SLV_RD |
Modbus RTU slave – read data |
MB_SLV_WR |
Modbus RTU slave – write data |
Functions for data exchange via Bluetooth interface.
Functions for data exchange via CAN interface.
Functions for reading/writing data to SD card.
Name |
Description |
SD_IFILL |
Initialize INT array |
SD_IGET |
Get elements from INT array by index |
SD_ISET |
Write elements to INT array by index |
SD_IINDEX |
Search for element index in INT array by value |
SD_IREMOVE |
Remove file with INT array |