Application Example Of Module Cr Code: Read And Write Pwm Output Period And Output Duty Cycle From H02Pw Module - Haiwell PLC User Manual

Programmable logic controller
Hide thumbs Also See for PLC:
Table of Contents

Advertisement

www.haiwell.com
So the PLC reads the voltage measurement value AI0 of H02PW, AI0 = 1000, that is, the actual 10.00V, and there is no need to do
any data processing in the PLC and configuration, you can set 2 decimal places on display primitive, then it will be automatically
reduced by 100 times, displaying 10.00, which is the actual 10.00V.

1.4. Application example of module CR code: read and write PWM output period and output duty cycle from H02PW module

In this example, the H02PW PWM control is achieved by setting the PWM output period and output duty cycle of the H02PW
module. The PWM output period CR code of H02PW module is 18H ~ 19H (hexadecimal), PWM output duty cycle CR code is
1AH ~ 1BH (hexadecimal) (more CR content 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, H02PW is the first expansion module, so fill in 1;
CR:
The PWM output period and duty cycle start CR code of the module is 18H, that is, 18H(hexadecimal)= 24(decimal), you
can directly input 24 or 0x18 to the instruction CR terminal;
N:
Set the number, in this case, set 4 CR number.
Val:
The data start component to be written into, in this case, the register of the power-down preserve area is used. When PLC
is powered on again, the setting value before power-off can be maintained.
Haiwell PLC - Programmable Power Module Application Case
7 / 13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents