functionfrom_phys

Convert physical value of channel to corresponding raw value

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
RealphysDataPhysical value of channel
RealminPhysical min value of channel
RealmaxPhysical max value of channel
IntegerunitPhysical unit type of channel
IntegermaxdataMaximal raw value of channel

Outputs

TypeNameDefaultDescription
IntegerrawValueRaw value of channel