Mitsubishi QD51 Programming Manual page 147

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

8 MULTITASK PROCESSING
When an input/output instruction or
execution interrupt instruction is executed:
• Input/output interaction with files or
external devices
• Waiting for a time
• Waiting for an elapsed time
• Waiting for an event to occur.
etc.
3)
8
Wait status
• Execution of the STOP
or SYSTEM instruction
• Execution stop by the Break key
or Ctrl + C keys
• Occurrence of errors
• Changing the key switch from
RUN to STOP
8 - 2
(1) Status transition of a BASIC program
The following describes how the status of one BASIC program changes (status
transition) after the start of its execution.
The program operation status can be roughly divided into four. Once the execution is
started, the program operates in parallel with other programs while changing its status
among 1) through 3) described below. The status changes to 4) when the END
instruction is executed and 5) when the SYSTEM instruction is executed.
1)
Execution status
__________ A status where the program is currently being
2)
Executable status __________ A status where the program can immediately
3)
Wait status
__________ A status where the program waits for the
4)
Sleep status
__________ A status where the program is not currently
5)
Stop status
__________ A status where no program is being executed
1)
Stop status
5)
executed.
make a transition to the execution status if the
execution privilege is given to it from the OS
when the switching of executions occurs.
completion of input/output or the release of an
execution interrupt while an input/output
instruction is being executed to the screen,
keyboard, disk, peripheral device, or external
device, or an execution interrupt instruction is
being executed.
executed (other than 1) through 3)). While in
the sleep status, the program can be restarted
by using the ZSTART instruction.
by the AD51H.
Execution status
When an input/output is completed
When the execution interrupt
is released
When the END instruction
is executed.
4)
• Powering on
• Changing the
key switch from
STOP to RUN
MELSEC-Q
Scheduling by the OS
(switching executions)
2)
Executable status
• ZSTART instruction
• Started by the PLC
Sleep status
8 - 2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents