Chapter 8 Register Structure
[Basic operation 3]
To read Status Register (Control type "H0002"(handshake invalid))
Wait execute
instruction
Command execute
(00001)
R7E3
WR00B = H2
WR00C = H2F
ADRIO ( WR00D, R103 )
ADRIO ( WR00E, WM110 )
WR00F = 13
(00002)
R7E4
R103 = 1
(00003)
FUN201 ( WR008 )
END
:
:
:
(0000n)
2
nd
scan
(00001)
R7E3
WR00B = H2
WR00C = H2F
ADRIO ( WR00D, R103 )
ADRIO ( WR00E, WM110 )
WR00F = 13
(00002)
R7E4
R103 = 1
(00003)
FUN201 ( WR008 )
END
:
:
:
(0000n)
- Next circuit is not executed before completed
of reading Status Register.
- After that, FUN201 clear execute flag.
- Set normal complete flag or abnormal
complete flag depend on the result of
execution.
1
st
scan
Wait execute
instruction
- Next circuit is not executed before completed
of reading Status Register.
- After that, FUN201 clear execute flag.
- Set normal complete flag or abnormal
complete flag depend on the result of
execution.
Command execute
Command execute
[Detect of command execution status]
When control type is "H0001" or "H0003" and you add the below two circuits just after FUN201 command
circuit, you can detect of command execution status.
(00001)
R7E3
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
(00002)
R7E4
R100 = 1
(00003)
FUN201 ( WR000 )
R200 is ON: During Command execution
(R200 = R100 && !R101 && !R102)
(00004)
R100 R101 R102
R200
(00005)
R100 R101 R102
R201
R101 R102
R202
R201 is ON: Before command was completed
normally and status of wait for instruction
(R201 = !R100 && R101 && !R102)
R202 is ON: Before command was completed
abnormally and status of wait for instruction
(R202 = !R100 && !R101 && R102)
Caution:
- During execution of command, when system area(s+1, s+2) of s parameter is changed, execution of
FUN201 command is not guaranteed.
- If execute flag is set 1, FUN201 command is started to execute maximum 1 scan later.
- When execute flag is 0 and FUN201 is executed, read/write to the applied area is not execute.
8-17