TPD/VPD Series - Getting Started v.1.0.5
Page 75
Copyright@ 2012 ICP DAS CO., LTD. All Rights Reserved. E-mail: [email protected]
Appendix E. Displaying the Decimal
Point
The numbers used in the “Ladder Designer” are displayed in integer format without
decimal digit. In some case, you may need to calculate or display the decimal. This
appendix introduces how to display the decimal point for the thermocouple input
modules, I-7018Z (DCON protocol) and M-7018Z (Modbus protocol).
I-7018Z Module
The “Ladder Designer” displays the received value only the integer part, ignore the
decimal part (ex. 26.500
26). But you can display the decimal, such as “26.5”, by
changing the “IO.hsf” file of the module. The “IO.hsf” of I-7018Z is in the directory:
C:\ICPDAS\HMIWorks_Standard\bin\Modules\I-7000\I-7018Z . Change it as below:
Then, in HMIWorks, set the “DecimalDigits” of “Lable” as 1 to display one decimal digit
(26.5). Besides, the AIO value is changed from 26 to 265 now, the “Max” property must
be changed to 1000 also if you use the Slider. Remember compile the project and
download to the TouchPAD again.
Add one line: v_ai[0] = v_ai[0] * 10;
so, AI0 value = “265” now.