Modbus/TCP Condition
With a Modbus/TCP Condition Node, you read coils, discrete inputs or registers from a Modbus/TCP server once, and the Flow branches on whether they hold the values you expect.
Outputs
- Condition true
- Condition false
Configuring
- Modbus/TCP Connection: as on Set Modbus/TCP.
- Function Type: Read Coils, Read Discrete Inputs, Read Holding Registers or Read Input Registers.
- Bit address or Reg. address: the first address to read, from 0 to 65535.
- Bits to read (1 to 2000) or Registers to read (1 to 125): how many values to read.
- Desired Response Value(s): one value per unit read, comma-separated. Coils and discrete inputs take
0or1. Registers take whole numbers. Example: when you read 3 bits, enter1,0,1.
How it decides
The Node ends on Condition true only when every value read equals the desired value at the same position.
If the read fails, neither output runs. The failure is reported in the Message Log, and the Flow pauses (when running continuously).
Validation
- "Modbus TCP connection is required".
- "Must be a number between 0 and 65535".
- "Must be between 1 and 2000" or "Must be between 1 and 125".
- "A desired response value is required".
- "Response must not end with comma".
- "Response values must be whole numbers" (registers).
- Warnings: "Response value count must be equal to n", and "Response values must be either 0 or 1" (coils and discrete inputs).