Справочник Пользователя для Mitsubishi Electronics FX5

Скачать
Страница из 306
19  BUILT-IN I/O FUNCTION
19.3  Pulse Width Measurement Function
177
19
List of special relays/special registers
The list of special relays/special registers used in pulse width measurement is shown below.
R/W: Read or write (Note, however, that only writing is allowed for the HCMOV instruction.)
R: Read only
Special relays/
special 
registers
Function
Description
Default
R/W
SM5020
CH1 pulse width measurement 
status flag
The measurement in progress/measurement stopped status of 
pulse width measurement on the target channel can be checked 
by these flags.
OFF: Measurement stopped
ON: Measurement in progress
OFF
R
SM5021
CH2 pulse width measurement 
status flag
SM5022
CH3 pulse width measurement 
status flag
SM5023
CH4 pulse width measurement 
status flag
SM5036
CH1 rising edge flag
These flags turn ON at the end of the 1st period measurement on 
the target channel. (They remain ON during measurement in the 
always measurement mode.)
OFF
R
SM5037
CH2 rising edge flag
SM5038
CH3 rising edge flag
SM5039
CH4 rising edge flag
SM5052
CH1 falling edge flag
These flags turn ON at the end of the 1st pulse width 
measurement on the target channel. (They remain ON during 
measurement in the always measurement mode.)
OFF
R
SM5053
CH2 falling edge flag
SM5054
CH3 falling edge flag
SM5055
CH4 falling edge flag
SM5068
CH1 measurement mode
The measurement mode of the target channel can be checked by 
these flags. (To change the measurement mode during operation, 
use this special relay.)
OFF: Always measurement mode
ON: 1 time measurement mode
ON
R/W
SM5069
CH2 measurement mode
SM5070
CH3 measurement mode
SM5071
CH4 measurement mode
SD5021, SD5020
CH1 rising edge ring counter value
The ring counter value when the rising edge is detected is stored.
00000000H
R/W
SD5023, SD5022
CH1 falling edge ring counter value
The ring counter value when the falling edge is detected is stored.
00000000H
R/W
SD5025, SD5024
CH1 pulse width latest value
The latest value of the pulse width is stored.
00000000H
R/W
SD5027, SD5026
CH1 pulse width maximum value
The maximum value of the pulse width is stored.
00000000H
R/W
SD5029, SD5028
CH1 pulse width minimum value
The minimum value of the pulse width is stored.
FFFFFFFFH
R/W
SD5031, SD5030
CH1 period latest value
The latest value of the period is stored.
00000000H
R/W
SD5033, SD5032
CH1 period maximum value
The maximum value of the period is stored.
00000000H
R/W
SD5035, SD5034
CH1 period minimum value
The minimum value of the period is stored.
FFFFFFFFH
R/W
SD5041, SD5040
CH2 rising edge ring counter value
The ring counter value when the rising edge is detected is stored.
00000000H
R/W
SD5043, SD5042
CH2 falling edge ring counter value
The ring counter value when the falling edge is detected is stored.
00000000H
R/W
SD5045, SD5044
CH2 pulse width latest value
The latest value of the pulse width is stored.
00000000H
R/W
SD5047, SD5046
CH2 pulse width maximum value
The maximum value of the pulse width is stored.
00000000H
R/W
SD5049, SD5048
CH2 pulse width minimum value
The minimum value of the pulse width is stored.
FFFFFFFFH
R/W
SD5051, SD5050
CH2 period latest value
The latest value of the period is stored.
00000000H
R/W
SD5053, SD5052
CH2 period maximum value
The maximum value of the period is stored.
00000000H
R/W
SD5055, SD5054
CH2 period minimum value
The minimum value of the period is stored.
FFFFFFFFH
R/W
SD5061, SD5060
CH3 rising edge ring counter value
The ring counter value when the rising edge is detected is stored.
00000000H
R/W
SD5063, SD5062
CH3 falling edge ring counter value
The ring counter value when the falling edge is detected is stored.
00000000H
R/W
SD5065, SD5064
CH3 pulse width latest value
The latest value of the pulse width is stored.
00000000H
R/W
SD5067, SD5066
CH3 pulse width maximum value
The maximum value of the pulse width is stored.
00000000H
R/W
SD5069, SD5068
CH3 pulse width minimum value
The minimum value of the pulse width is stored.
FFFFFFFFH
R/W
SD5071, SD5070
CH3 period latest value
The latest value of the period is stored.
00000000H
R/W
SD5073, SD5072
CH3 period maximum value
The maximum value of the period is stored.
00000000H
R/W
SD5075, SD5074
CH3 period minimum value
The minimum value of the period is stored.
FFFFFFFFH
R/W
SD5081, SD5080
CH4 rising edge ring counter value
The ring counter value when the rising edge is detected is stored.
00000000H
R/W
SD5083, SD5082
CH4 falling edge ring counter value
The ring counter value when the falling edge is detected is stored.
00000000H
R/W
SD5085, SD5084
CH4 pulse width latest value
The latest value of the pulse width is stored.
00000000H
R/W