
M
ain
Chapter 1 Configuration and Operation Mode of Programs
1-10
(5)Example of program configuration and processing
The example of the program execution sequence is given under the registered tasks and programs as below.
• Registered task programs
Interrupt source
Interrupt Name
Priority
Task No.
Program Name
running time
Fixed cycle
10
㎳
_fixed cycle
3
0
Program1
2ms
Internal contact
Internalcontact_M00 5
24
Program2
7ms
External contact
Externalcontact_P08 2
16
Program3
2ms
-
-
-
-
Scan program
17ms
Time (
㎳
)
Executed details
0~6
The scan program starts and is executed.
6~8
Request on running the external contact interrupt is entered and the scan program is interrupted and
the program 3 runs. There is the request on rerun at 7[
㎳
] but it is ignored since the program is running.
8~10
The execution of the program 3 is completed and the scan program will run continuously.
10~12
There is the request on running 10
㎳
_fixed cycle interrupt so the scan program is interrupted and the
program 1 runs.
12~20
The execution of the program 1 is completed and the scan program that was interrupted runs
continuously.
20
Although there are the requests on 10
㎳
_fixed cycle interrupt and the external contact interrupt at the
same time, the external contact interrupt has higher priority so the program 3 runs and the program 1
stands by for execution.
20~22
The scan program is interrupted and the program 3 runs.
22~24
The execution of the program 3 is completed and the pending 10
㎳
_fixed cycle interrupt program 1
runs.
24~25
The execution of the program 1 is completed and the scan program is finished.
25
The program 2 is executed by checking the interrupt request on internal contact_M0 of P2 at the time
of completion of the scan program.
Execution of Scan
program
Execution of program 1
Occurrence of
10ms_fixed cycle
Execution of program 2
Occurrence of Internal
contact %M000
Execution of program 3
Occurrence of external
contact %Q000
Time
0
6 7 8 10 12
20 22 24 25
30 32 34
Scan startup
(Initial operation
t
)
End of Scan program
New scan startup
Содержание XBE-DC08A
Страница 124: ...Main Chapter 1 Configuration and Operation Mode of Programs 1 27 1 Memory block diagram ...
Страница 155: ...Main Chapter 2 CPU Function 2 29 Notice For more details on the monitor refer to the XG5000 manual ...
Страница 504: ...Position Chap 6 Commands 6 61 6 11 Function blocks related to Servo Drive ...
Страница 512: ...Positioning Chapter 7 Program 7 8 manual operation 7 1 4 Parameter and Operation Data Setting 1 Parameter Setting ...
Страница 644: ...Positioning Chapter 8 Functions 8 91 ...
Страница 727: ...Positioning Chapter 9 Positioning Error Information Solutions 9 13 ...
Страница 861: ...Special Chapter 1 Embedded Analog 1 39 5 Select View Variables Comments Variables and comments are both displayed ...
Страница 1206: ...Appendix 2 Dimension App2 1 Appendix 2 Dimension Unit mm 1 CPU Type XEC DN32U 2 Positioning Type XEC DN32UP ...
Страница 1207: ...Appendix 2 Dimension App2 2 2 Analog Type XEC DN32UA ...
Страница 1209: ...Appendix 2 Dimension App2 4 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Страница 1210: ...Appendix 2 Dimension App2 5 4 Extension Cnet I F Module XBL C41A XBL C21A ...