Module Cr Code Application Example: Read Module Channel Disconnection Alarm; Module Used As Remote Io; Module Power Supply; Communication Port Introduction - Haiwell H04DT User Manual

Programmable logic controller
Table of Contents

Advertisement

www.haiwell.com

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

In this example, in order to read the external sensor disconnection information of H04TC module, the disconnection alarm data of
H04TC 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, H04TC is the first module, so fill in 1;
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 is corresponding channel 1-4, disconnection for 1 (ON), normal for 0
(OFF).
2.

Module used as remote IO

Haiwell PLC expansion module is built-in one RS485 communication port(Some models with Ethernet communication port), which
not only supports parallel bus(Use the expansion bus to connect with the parallel interface of host PLC), but also supports serial
bus(Use the RS485 communication port of module networking with communication port of host PLC, and host PLC controls the
remote module by communication instructions), when using the serial bus to expand (that is, remote IO module), it doesn't have
expansion limit of system points and can be distributed installation.
Distributed installation is very important for the system which needs to collect and monitor a large number of decentralized digital
or analog signals(temperature, humidity, differential pressure, blowing rate, flow, fan speed, valve opening, etc.), it can easily
achieve distributed installation control and unlimited points of expansion, greatly improving the control system configuration
flexibility and future control expansion capabilities, reducing the number of signal wiring, also reducing the interference problem of
too long analog signal line, saving the project investment costs.
The following will introduce the operation key points and techniques of modules used as remote IO.

1.1 Module power supply

When the module is used as remote IO, there are two optional models of 24VDC and 220VAC, such as H08RC model for the DC
24V power supply. H08RC2 for AC 220V power supply. If the module is powered normally, the PWR indicator will light.

1.2 Communication port introduction

All analog modules are built-in RS485 port.
1
As for 8-point analog module, you can choose the Ethernet port.
2
RS485 communication port and Ethernet port can be used at the same time, for example, the RS485 of module
3
communicates with PLC, Ethernet port can also communicates with multiple host computers (up to 7).

1.3 Communication protocols and default parameters

RS485: Support standard Modbus RTU / ASCII protocol, it can communicate with the configuration, touch screen, text
1
display, PLC and other third-party host computer, which must support Modbus protocol. Among them:
Address: 1 ~ 254 can be set; module address is divided into soft address and hard address, hard address has the highest
priority.
Haiwell PLC - Temperature & Humidity Module Application Case
12 / 23

Advertisement

Table of Contents
loading

Table of Contents