How To Perform The Initialization Processing Via Constantly Executed Programs; Precautions For Using A Multitask Program; Starting The Multitask; Display Of Operation Status - Mitsubishi Electric CR750-Q Instruction Manual

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

(6) How to perform the initialization processing via constantly executed programs

Programs specified in task slots whose start condition is set to ALWAYS are executed continuously (repeat-
edly) if the operation mode is set to REP. Therefore, in order to perform the initialization processing via such
programs, they should be programmed in such a way that the initialization processing is not executed more
than once, for example by setting an initialization complete flag and perform a conditional branch based on
the flag's status. (This consideration is not necessary for task programs whose operation mode is set to
CYC (1 cycle operation) because they are executed only once.)
Mechanism 1 is assigned to slot 1
In the default state, mechanism 1 (robot arm of standard system) is automatically assigned to slot 1.
Because of this, slot 1 can execute the movement command even without acquiring mechanism 1 (with-
out executing GetM command). However, when executing the movement command in a slot other than
slot 1, the slot 1 mechanism acquisition state must be released (RelM command executed), and the
mechanism must be acquired with the slot that is to execute the movement command (execute the GetM
command).

4.3.5 Precautions for using a multitask program

(1) Starting the multitask

When starting from the operation panel or with the dedicated input signal START, the programs in all slots
for which the "start request execution" is set in the slot parameter start conditions will start simultaneously.
When starting with the dedicated input signals S1START to S32START, the program can be started in each
slot. In this case, the line No. is preassigned to the same dedicated input/output parameter. Refer to
559, "6.3 Dedicated input/output"

(2) Display of operation status

The LEDs of the [START] and [STOP] switches on the operation panel and the dedicated input/output sig-
nals START and STOP display the operation conditions of programs specified in task slots for which the
start conditions are set to "START" in the corresponding "SLT*" parameter. If at least one program is operat-
ing, the LED of the [START] switch lights up and the dedicated output signal START turns on. If all the pro-
grams stop, the LED of the [STOP] switch is lit and the dedicated output signal STOP turns on.
The dedicated output signals S1START to S32START and S1STOP to S32STOP output the operation sta-
tus for each of the task slots. If it is necessary to know the individual operation status, signal numbers can
be assigned to the dedicated input/output parameters and their status checked with the status of the exter-
nal signals.
For a detailed description of assignment of dedicated input/output, please refer to
input/output"
of this manual.
The status of programs whose start condition is set to ALWAYS or Error does not affect the LEDs of the
[START] and [STOP] switches. The operation status of programs in constant execution mode can be
checked using the monitoring tool of the PC support software (optional).
for details on the assignment of the dedicated input/output.
4MELFA-BASIC V
Page
Page 559, "6.3 Dedicated
Multitask function 4-129

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents