Mitsubishi Electronics FX5 User Manual

Page of 306
180
19  BUILT-IN I/O FUNCTION
19.3  Pulse Width Measurement Function
Rising edge ring counter value
The ring counter value when the rising edge is detected is stored.
Ring counter values can be changed only by the HCMOV instruction.
Corresponding devices
The device numbers corresponding to each channel are as follows.
Update timing
Devices are updated by the END instruction.
When the HCMOV instruction is executed, devices are updated immediately.
Clear timing
The timing when the device is cleared is as follows.
  • Power  OFF
ON
 • Reset
  • STOP/PAUSE
RUN
 • When "0" is written by the HCMOV instruction
Falling edge ring counter value
The ring counter value when the falling edge is detected is stored.
Ring counter values can be changed only by the HCMOV instruction.
Corresponding devices
The device numbers corresponding to each channel are as follows.
Update timing, clear timing
Same as the rising edge ring counter value (Page 180 Rising edge ring counter value)
Pulse width latest value
The latest value of the pulse width is stored.
 • When logic switching is set to positive logic, the difference from the rising edge up to the falling edge.
 • When logic switching is set to negative logic, the difference from the falling edge up to the rising edge.
 • The latest value of the pulse width can be changed only by the HCMOV instruction.
Corresponding devices
The device numbers corresponding to each channel are as follows.
Update timing, clear timing
Same as the rising edge ring counter value (Page 180 Rising edge ring counter value)
CH1
CH2
CH3
CH4
SD5021, SD5020
SD5041, SD5040
SD5061, SD5060
SD5081, SD5080
CH1
CH2
CH3
CH4
SD5023, SD5022
SD5043, SD5042
SD5063, SD5062
SD5083, SD5082
CH1
CH2
CH3
CH4
SD5025, SD5024
SD5045, SD5044
SD5065, SD5064
SD5085, SD5084