We have kr16 robot . I want to read actual welding voltage , how do I can read it? In digital input, it is shown in 16 bits, Which I want to convert into real and then convert into analog output? How do I can do it?
Real time reading of actual welding voltage
-
Samirtaral -
October 26, 2018 at 7:45 PM -
Thread is marked as Resolved.
-
-
please read READ FIRST.
KR16 is a robot arm (mechanical actuator). It is unaware of any data processing.if you have information in form of 16bit block on digital inputs, use SIGNAL to convert it to INT value. if needed this can be then scaled into a REAL etc.
-
How is the voltage scaled to the 16bit input? That is, what is the maximum and minimum voltage that the sensor (whatever it is, you didn't tell us) report?
16 bits, unsigned integer, can represent an integer value from 0 to 65535. Does your sensor use the full range?
To convert from 16bit value to Voltage, the formula is fairly simple: ActualVoltage = (16BitValue * ((MaxVoltage-MinVoltage) / (Max16BitValue-Min16BitValue)))
Example: assume the minimum voltage is 0V, and the max is 100V. And the sensor uses the full 16bit range (0 to 65535) to represent that voltage digitally. Each "increment" of the 16bit value represents 100/65535, or about 1.5mV. So if the 16bit input value is 1000, the sensor is reading 1.5V. 10000 would be 15V, and 50000 would be 75V.