Commit 946319e5 authored by Yoann Sallaz Damaz's avatar Yoann Sallaz Damaz
Browse files

change print

parent d4dac9ba
Pipeline #47732 failed with stages
"""
Inclinometer in 4-20mA control by a 750-473 card
yml configuration example:
plugin: bliss
name: inclinoNew1
package: bm07.inclino_FIP
class: inclino_FIP
wago: $wcd07g
logical_device : inclino1
sign: -1
offset: 0
- controller:
plugin: bliss
name: inclino_m1
package: bm07.inclino_FIP
class: inclino_FIP
wago: $wcd07g
logical_device : inclinoNew1
sign: -1
offset: 0
calib_A: 0.1244509839
calib_B: -1.504475499
"""
from bliss.common.logtools import *
......@@ -42,8 +45,7 @@ class inclino_FIP:
info_string = f"'{self.name}` Inclino_FIP from wago:\n"
info_string += f" Wago = {self.wago.name}\n"
info_string += f" Logical device = {self.logical_device}\n"
info_string += f' Unit = degree\n'
info_string += f" Calib = {self.A}*I + {self.B}"
info_string += f" Calib = {self.A}*I + {self.B}\n"
info_string += f' Sign = {self.sign}\n'
info_string += f' Offset = {self.offset}\n'
info_string += f" register value = {register}\n"
......@@ -51,8 +53,9 @@ class inclino_FIP:
info_string += f" F (Input short circuit or wire break) = {F}\n"
info_string += f" U (Input overflow) = {U}\n"
info_string += f" raw value = {raw}\n"
info_string += f" I corrected = {self.get_I_corrected()}\n"
info_string += f" I corrected = {self.get_I_corrected()}mA\n"
info_string += f" value = {self.read()}\n"
info_string += f' Unit = degree\n'
return info_string
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment