Chapter 8 High-speed counter, PWM / Pulse train output and Analogue I/O

8.1.5 Special Output Operation in CPU STOP Status

Generally the counter output, PWM output and pulse output are not generated if the CPU is in the STOP state. To output these outputs when the CPU is in the STOP state, turn on the special internal output R7DC. By turning on the special internal output R7DC for controlling the special outputs in the STOP state, the operation of the special outputs at the time of test operation can be checked, and the outputs that are independent of the RUN and STOP states of the CPU can be output. Note that the R7DC is set to 0 when the power is turned on. Also, if the output control flag (R7FC to R7FF) is turned on while the CPU is in the STOP state and the R7DC is off, the output flag is turned off by the system.

R7DC

 

 

 

 

R7FC toR7FF

 

 

 

 

1]

 

 

 

 

 

RUN/STOP

RUN

5]

 

STOP

 

 

 

 

 

 

 

 

 

 

 

 

 

5]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Counter output

ON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OFF

 

 

 

 

 

 

 

 

 

 

5]

PWM output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pulse output

 

 

 

 

 

 

 

 

 

 

 

5]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2]

 

3]

 

4]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 8.4 Operation of special outputs when the CPU is in the RUN/STOP states

1] When the R7DC is off, the output control flag is turned off by the system.

2] When the R7DC is on, the corresponding special output turns on by turning on the output control flag.

*The counter output of the counter turns on when the condition is satisfied. 3] The special outputs turn on and off according to the user program.

4] The special outputs are being output while the output condition is satisfied or the R7DC is on.

5] The special outputs turn on and off according to the RUN/STOP states of the CPU. The output control flag is turned off by the system when the CPU operation stops.

*The special outputs continue to be output as long as the CPU operation continues, even if an error has occurred when the operation is set to be continued when I/O assignments do not match or when a congestion error occurs.

8.1.6 Pulse / PWM Output adjustment

The transistor output that generates the pulse output and PWM output contains a hardware delay time. This delay time affects the on-duty significantly as the frequency increases. In addition, this delay time is slightly different depending on the CPU model. By setting the value that corresponds to the CPU model in the special internal output WRF06B for setting the PWM/pulse output correction, both the PWM output and pulse output with no load in the system can be corrected.

Caution: There will be a slight error even if correction setting is performed.

These special internal outputs are stored in the FLASH memory by turning on the various setting write request (R7F6). Once the setting is stored in the FLASH memory, it is not necessary to make the setting again when the power is turned on next time.

WRF06B:

Setting value indicating the CPU model

 

 

Figure 8.3 Special internal outputs for setting PWM/pulse output correction

CPU model

Setting value

Remark

EH-***DTP

H0001

 

EH-***DT

H0002

 

EH-***DRP

H0003

 

EH-***DRT

H0004

 

Other than above

Other than above

No correction

Note: *** changes depending on the CPU.

8-5

Page 214
Image 214
Hitachi NJI-350B Special Output Operation in CPU Stop Status, Pulse / PWM Output adjustment, R7FC toR7FF, Counter output