11 - 460 11 - 460
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Available only in execution mode
ZRELEASE
Instruction
ZRELEASE
• Allows other programs to use a resource to which a resource number is assigned.
ZRELEASE [<resource number>]
Syntax
resource number
• • • •
Specify the number (0 to 31) allocated among the
programmers and assigned to a resource used in a
program.
Examples
ZRELEASE 1
• • • •
Allows other programs to use the resource to which
resource number 1 is assigned.
Description
• The ZRELEASE instruction allows the program that executes the ZRELEASE instruction to
release the exclusive use of a resource obtained in advance by the execution of the
ZRESERVE instruction, so that it can be used by other programs.
• If a program (whose execution is being paused) executes the ZRESERVE instruction and
specifies the same resource number as the resource that was released, it can take over
the exclusive use of the resource.
• Specify the resource number assigned to a resource whose use should be permitted to
other programs in <resource number>.
• If the specification of <resource number> is omitted in the ZRELEASE instruction, all
resources for which the program that executes the ZRELEASE instruction had obtained
the exclusive use of by the ZRESERVE instruction, are released.
• All the resources for which the program had obtained the exclusive use by the ZRESERVE
instruction are released by executing the BASIC general instructions, SYSTEM, END and
RUN, or changing the program while its execution is being paused.
REMARK
• See the ZRESERVE instruction in Section 8.3 for the details about exclusive
control of resources.
• See the ZRESERVE instruction.