3 - 66 3 - 66
MELSEC-Q
3 SPECIFICATIONS
3.13.2 Sharing equipment (Resources) by multitasking
If use of resources is shared by BASIC programs, the same resources cannot be used
by multiple BASIC programs at the same time.
Exclusive control of resources is a way of making it impossible for another BASIC
program to use resources while one BASIC program is using them.
This exclusive control of resources must in the end be decided and implemented by
fellow programmers.
If this problem is not decided by the fellow program creators and therefore not provided
for, exclusive control of resources cannot be implemented.
Exclusive control of resources is accomplished by the following commands.
• ZRESERVE : Requests exclusive control of a resource.
• ZRELEASE : Ends exclusive control of a resource.
ZRESERVE
(Requests mutual
exclusive control of
the resource)
Used by
Task 1
Resource
Resume
Stop for using
resources
Program execution status
Program execution status
Resources usage status
Task2
ZRELEASE
(Finishes mutual
exclusive control
of the resource)
ZRESERVE
(Requests mutual
exclusive control of
the resource)
ZRELEASE
(Finishes mutual
exclusive control
of the resource)
Program
Program
E
xecut
in
g
Exe
cu
tin
g
Task1
Exe
cu
tin
g
St
op
Not used
Not used
Used by
Task 2
REMARK
Resources are said to be all the hardware and software that can be used by a
BASIC program. For example, the screen, printer, files, disks or memory, etc.
Summary of Contents for QD51
Page 1: ......
Page 2: ......
Page 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Page 159: ......
Page 160: ......