Skip to content

Commit 6dff33d

Browse files
committed
Added ifequal documentation
1 parent 50f9e03 commit 6dff33d

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/getting-started/operations.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,24 @@ Each time this operation is executed it will get the next row of the column spec
101101

102102
Supported registers: HOLDING_REGISTER, INPUT_REGISTER
103103

104-
For INPUT_REGISTER type FLOAT32 is not supported!
104+
For INPUT_REGISTER type FLOAT32 is not supported!
105+
106+
## If equal
107+
Used for comparison, every operation inside the ifequal body will be executed
108+
109+
```
110+
<ifEqual symbol="TEMPERATURE_MOTOR5" value="-12.5">
111+
<set symbol="MOTOR5_RPM">0</set>
112+
</ifEqual>
113+
```
114+
115+
Both **symbol** and **value** are mandatory fields. Both can have an atomic value or a reference to a symbol (which can refer to a register or a parameter)
116+
117+
Supported registers: HOLDING_REGISTER, INPUT_REGISTER, COIL and PARAMETER
118+
119+
Example using a parameter as a value
120+
```
121+
<ifEqual symbol="TEMPERATURE_MOTOR5" value="PARAM_DEFINED_TEMPERATURE">
122+
<set symbol="MOTOR5_RPM">0</set>
123+
</ifEqual>
124+
```

0 commit comments

Comments
 (0)