Programming Skills For Plc; Default For Using Engineering, When The Engineering Value Is Not Used, The Default Code Value Is 0 ~ 32000 - Haiwell H04DT User Manual

Programmable logic controller
Table of Contents

Advertisement

www.haiwell.com
= 123, that is the actual value of 12.3 ℃. In the same way, connect E-type thermocouple to channel 2, read AI2 value, such as AI2
= 3456, that is the actual value of 345.6 ℃.
As we know that Haiwell temperature and humidity modules can be set the signal type of each channel arbitrarily, so for the
H04RC module, after configuration, we can read the temperature value directly when connecting the corresponding sensor to the
channel.

1.3 Programming skills for PLC

If you want to write the alarm program that temperature exceeds the setting value, for example, when the temperature is
1
more than 125℃, it will alarm, the program of PLC can be written as follows:
1.4 Display temperature value on SCADA, HMI
If the configuration, touch screen, text and other PC softwares want to display the current temperature, only need to set 1 decimal
place on the numerical display primitive, then the read value will be automatically reduced 10 times in the configuration, that is the
actual temperature value, for example, you can set 1 on decimal places of Haiwell Cloud SCADA settings:
So that when the PLC read AI0 value, AI0=123, that is the actual value of 12.3℃, there is no need to have data processing in PLC
and configuration, only set the 1 decimal places on the numerical display primitive, then it will be automatically reduced by 10
times, displaying value of 12.3, that is the actual value of 12.3℃.

1.5 Default for using engineering, when the engineering value is not used, the default code value is 0 ~ 32000

When using the engineering value, the linear transformation is specified by the lower limit and the upper limit value, and the
program is automatically transformed. When the engineering value is not used, all types are unified to correspond with 0 ~ 32000
code value.The same case of temperature measurement, this time can according to the linear transformation formula: Out = (In -
InDw) * (OutUp- OutDw) / (InUp- InDw) + OutDw to write the conversion program, or use the SC linear transformation instructions
to calculate directly.
Haiwell analog used easily, it is recommended to check the use of engineering value, so that the analog will be very convenient
without writing any program.
Haiwell PLC - Temperature & Humidity Module Application Case
11 / 23

Advertisement

Table of Contents
loading

Table of Contents