16
Code block
'Reading the PLC variable "Integer"
Dim IntegerScal
Set IntegerScal = HMIRuntime.Tags("Integer")
'Assigning the value of the IO field
item.OutputValue = value
'Scaling the value with your chosen scaling factor
IntegerScal.Value = item.OutputValue * Scaling factor
'Writing the variable
IntegerScal.Write
Code block
'Reading the PLC variable "Integer"
Dim IntegerScal
Set IntegerScal = HMIRuntime.Tags("Integer")
IntegerScal.Read
'Scaling the process value by the scaling factor
OutputValue_Trigger = IntegerScal.Value / Scaling factor