Omron FQM1-MMP21 Home Security System User Manual


 
268
Programming Appendix A
Execution with Subroutine Input Condition Flags
Main Program
JSB
0
D00000
D01000
a
c
SBN
0
A000.00
@ACC
#0000
#0000
,IR0
@INI
#0000
#0003
0000
W000.00
W000.00
W000.00.
D00000
D00000
D00000
b
Results of logic
for input condition
Subroutine called
Subroutine 0
Subroutine 0
Input Condition Flag
Acceleration
Accessed
Stopping
Address Data
Acceleration/deceleration rate
Target
frequency
Subroutine 0 is called and
executed regardless of the
status of the input condition.
The logic results of a, b, c is
stored in A000.00 as the input
condition. The actual memory
address of D00000 (10000 hex)
is stored in IR0 and the actual
memory address of D00100
(10064 hex) is stored in IR1
Either ACC or INI is executed
depending on the staus of
A000.00. If ACC is executed, the
parameters (e.g., rate of
acceleration) starting at D00000
are accessed using the actual
memory address stored in IR0 to
execute acceleration.