Hello,
I have a OMH555 sensor reading a distance and returning a value from 4 to 20mA to a FESTO module. That module maps that current fluctuation from 0 to 32767. In WorkVisual, I mapped the according 2 bytes of the FESTO module to inputs from $IN[700] to $IN[715]. In the config.dat file, I created a signal called "SCAN_DIA" using the line SIGNAL SCAN_DIA $IN[700] TO $IN[715] and I'm able to see the signal in the Display-->Single Variable window as expected. What I'm seeing is the 0 to 32767 value that the FESTO module is sending, what I want to see is the distance in mm. So, in the config.dat file I'm doing the following operation
SIGNAL SCAN_DIA $IN[700] TO $IN[715]
SCAN_DIA = SCAN_DIA / 69
Where 69 is the conversion from the FESTO range to mm. I'm having the error "Unexpected character string "Id" was found". Is there any way to make that operation without having any SRC program running?