| 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 |
| 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 |
Modulo (Remainder) |
| 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-Dominant Latch (SR Flip-Flop) |
| RS |
Reset-Dominant Latch (RS Flip-Flop) |
| TT |
Toggle Flip-Flop (T Flip-Flop) |
| TP |
Pulse Generator (Monostable) |
| BLINK |
Pulse Train Generator (Astable) |
| 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) buffers.
A set of functions is used to work with RXD and TXD buffers, allowing basic read/write operations and data conversion.
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 for 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.
The functions in this section allow exchanging arbitrary data via RS-232 and RS-485 interfaces.
Sending an arbitrary set of data to the interface.
| Name |
Description |
| RS_SEND |
Send Data to Serial Port |
Receiving an arbitrary set of data from the interface.
| Name |
Description |
| RS_RECV |
Receive Data from Serial Port |
As a special 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 using the "request/response" principle.
| Name |
Description |
| RS_TRANS |
Request/Response via Serial Port |
Special functions are provided for the convenience of sending and receiving data via the ModBus protocol over RS-232 and RS-485 interfaces.
They are essentially refined versions of the RS_TRANS function, so it is recommended to familiarize yourself with the "Transaction" operation described above in the article.
The data exchange process is significantly simplified compared to universal data exchange functions, because the function itself generates the request/command in the ModBus protocol, controls the receipt 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 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 the Bluetooth interface.
Functions for data exchange via the CAN interface.
| Name |
Description |
| CAN_SET |
Send Data to CAN Bus |
| CAN_GET |
Receive Data from CAN Bus |
| CAN_RECV |
Receive Data from CAN Bus to RXD Buffer |
| CAN_GET_PGN |
Receive Data from CAN Bus by PGN |
| CAN_ISO_TP |
CAN ISO TP Request/Response |
| CAN_FMS_BAM |
Receive Data from FMS BAM Message to RXD Buffer |
Functions for reading/writing data to an 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 |
Find Element Index in INT Array by Value |
| SD_IREMOVE |
Delete INT Array File |