background image

www.haiwell.com

Haiwell PLC - Analog Module Application Case

11 / 18

1.5. 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 pressure 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.

1.6. Module CR code application example: Read the module channel disconnection alarm

In this example, in order to read the external sensor disconnection information of S08XA module, the disconnection alarm data
of S08XA module input channel 1-4 is stored in CR29, that is, 29H (hexadecimal), decimal 41. (More CR contents can be
found in the software online help - hardware manual - expansion module parameters within the corresponding model). This
program is as follows:

Slot

: Position number, S08XA is the third module, so fill in 3;

CR:

Module disconnection alarm CR41, that is, 29H (hexadecimal) = 41 (decimal), it can be directly input 41 or 0x29 into

the instruction CR terminal;

N:

Number for readings, 1 register for 16 bits, low 4 bits corresponding channel 1-4, disconnection for 1 (ON), normal for

0 (OFF).

Summary of Contents for S04AI

Page 1: ...Xiamen Haiwell Technology Co Ltd www haiwell com Haiwell PLC User Manual Programmable Logic Controller Analog Module User Manual Application Case...

Page 2: ...skills 10 1 4 Display analog value on SCADA HMI 10 1 5 When the engineering value is not used the default code value is 0 32000 11 1 6 Module CR code application example Read the module channel disco...

Page 3: ...rallel port in communication Green jitter indicator on 30ms and off 30ms Parallel power supply not enough must connect to external power supply Without serial or parallel port in communication Yellow...

Page 4: ...V 5V 1V 5V 0 20mA 4 20mA Resolution 5mV 2 5mV 1 25mV 1 25mV 5 A Input impedance 6M 250 Maximum input range 13V 30mA Input indication LED light ON means normal OFF means external disconnect Response ti...

Page 5: ...AI0G AI1I GND AI1V AI1G B AI2I AI3I AI2V AI3V AI2G AI3G AI0I A AQ0V AQ0G AQ1I GND AQ1V AQ1G B AQ2I AQ3I AQ2V AQ3V AQ2G AQ3G AQ0I A AI0V AI0G AI1I GND AI1V AI1G B AQ0I AQ1I AQ0V AQ1V AQ0G AQ1G AI0I A S...

Page 6: ...engineering lower limiting value input channel 2 zero point correction value 1DH channel 1 engineering upper limiting value channel 1 engineering upper limiting value Channel 1 2 input disconnection a...

Page 7: ...2AH channel 2 engineering upper limiting value channel 2 engineering upper limiting value output channel 1 output value 2BH channel 3 engineering upper limiting value channel 3 engineering upper limi...

Page 8: ...r a better heat dissipation do not mount PLC to a position near to the bottom top of the cabinet Do not mount PLC in vertical direction Expansion Module Wiring Connections between expansion modules an...

Page 9: ...the module is added external power supply it can still work this time the module will automatically determine and give priority to external power supply 1 2 The analog need t be written any conversio...

Page 10: ...program of PLC can be written as follows 1 4 Display analog value on SCADA HMI If the configuration touch screen text and other PC software want to display the current pressure only need to set three...

Page 11: ...ed to check the use of engineering value so that the analog will be very convenient without writing any program 1 6 Module CR code application example Read the module channel disconnection alarm In th...

Page 12: ...roduce the operation key points and techniques 2 1 Module power supply When the module is used as remote IO there are two optional models of 24VDC and 220VAC such as S08AI model for the DC 24V power s...

Page 13: ...n be configured via MODW instructions through the serial communication 2 5 Parameter configuration example The module is configured by programming software remote module tool Hardware connection 1 Thr...

Page 14: ...e found and achieve parameter configuration Click to exit enter the configuration interface as shown below We can change the module name address IP subnet mask baud rate data format and other communic...

Page 15: ...address is 1 baud rate is 19200 data format is N 8 2 RTU The program of PLC reads the 4 channel liquid level values is as follows The host PLC reads the 4 channel liquid level values of S04AI by Modb...

Page 16: ...ng is 50 0 2 8 Remote IO application example Ethernet mode PLC read and write each channel input and output values of S08XA e 1 Hardware wiring PLC and module Ethernet port connected with a shielded n...

Page 17: ...n choose serial port or Ethernet according to the module which supports the Ethernet or RS485 this example for serial port the serial port number of USB to 485 is COM6 as shown below Default parameter...

Page 18: ...ding channel variable values If you need to display the decimal places it can set the corresponding decimal places on the display primitive As shown below Thanks for choosing Haiwell PLC If you have a...

Reviews: