background image

www.haiwell.com

Haiwell PLC - Analog Module Application Case

16 / 18

Host PLC writes the 8-channel analog output values of S08AO by Modbus write instruction MODW, the start address is

10H(hexadecimal), that is, the decimal value is 16. When writing successfully, M1 is ON, the 8-channel values which will
be written into are stored in V1000-1007.

In this example, for the channel 1 of analog output, check the use of engineering value, the lower limit value is 0, the

upper limit value is 3600, indicating that the valve opening is 0.0~360.0

°

, this case V1000=500, so the first output

channel value is 500, that is, the valve opening 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 network cable, they can be connected

directly or through the switch.

2

Modbus address: From the above S08XA-e analog module CR parameter table shows that the input values of module

input channel 1 ~ 4 are stored in the address 10H ~ 13H. The output values of module output channel 1-4 are stored in
2AH ~ 2DH.

3

PLC program: Read the 4-channel measurements of remote Ethernet module S08XA-e and write the 4-channel output

values of S08XA-e, if the module IP address is 192.168.1.112, station number address is 1, the read results are stored
in the V0 ~ V3, the values to be written are stored in the register V10-V13. As follows:

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: