To read from a MODBUS RTU device via COMM3, use the form:
? DM[1] = READMODBUS(13, ......)
When the port number is 13, it means to use RTU protocol via COMM3. Likewise, for RTU via COMM1, use port number 11 instead of 1.
Once you have read the value into the DM[1] (just a 16-bit memory variable), that already represents the signal strength at the RTU's analog input. ?The full range depends on the resolution of your RTU's ADC and you should consult the technical spec of your RTU device. Most likely if it is a 12-bit device, the range would be from 0 to 4096, with 0 correspond to 0V and 4096 correspond to 5V. Some ADCs also cover negative range(e.g. -2048 to +2048 ) so it really depends on the device itself.
I don't ?see why you need to read analog value into relay channel and use ladder logic to manipulate? You may need to do that for other PLC brands such as AB or Omron, but not for our M-series PLC - The TBASIC language is totally comfortable in handling the value read from your RTU
!