When The Engineering Value Is Not Used, The Default Code Value Is 0 ~ 32000; Module Cr Code Application Example: Read The Module Channel Disconnection Alarm - Haiwell S04AI User Manual & Application Case

Programmable logic controller
Table of Contents

Advertisement

www.haiwell.com

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.
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).
11 / 18
Haiwell PLC - Analog Module Application Case
(More CR contents can be

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents