Hi,
as they do give the mathematics, it isn`t too hard to do the coding. I attached the function for CoDeSys2.
you have to call the function like this:
millivolts := map(milliamps,4,20,0,10000); (* Converts 4..20mA into 0..10 Volt *)
Regards
Alex
[gelöscht durch Administrator]