EasyManuals Logo

Mitsubishi MELFA CR1D User Manual

Mitsubishi MELFA CR1D
458 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #192 background imageLoading...
Page #192 background image
4-179 Detailed explanation of command words
4MELFA-BASIC IV
Def Act (Define act)
[Function]
This instruction defines the interrupt conditions for monitoring signals concurrently and performing interrupt
processing during program execution, as well as the processing that will take place when an interrupt
occurs.
[Format]
[Terminology]
<Priority No.> This is the priority No. of the interrupt. It can be set with constant Nos. 1 to 8.
<Expression> For the interrupt status, use the formats described below: (Refer to the syntax diagram)
<Numeric type data> <Comparison operator> <Numeric type data> or
<Numeric type data> <Logical operator> <Numeric type data>
<Numeric type data> refers to the following:
<Numeric type constant>| <Numeric variable>|<Numeric array variable>|
<Component data>
<Process> Refers to a GoTo statement or a GoSub statement used to process an interrupt when it occurs.
<Type> When omitted: Stop type 1
The robot stops at the stop position, assuming 100% execution of the external override.
If the external override is small, the time required for the robot to stop becomes longer, but
it will always stop at the same position.
S : Stop type 2
The robot decelerates and stops in the shortest time and distance possible,
independently of the external override.
L : Execution complete stop
The interrupt processing is performed after the robot has moved to the target position
(the step being executed is completed).
[Reference Program]
1 Def Act 1,M_In(17)=1 GoSub *SUB1 ' Defines the subroutine at step 100 to be the one to be
called up when the status for the general purpose input
signal No. 17 is ON.
2 Def Act 2,MFG1 AND MFG2 GoTo *SUB2 ' Defines the step 200 as the one to jump to when the
logic operation of AND applied to MFG1 or MFG2
results in "true."
3 Def Act 3,M_Timer(1)>10.5 GoSub *LBL ' When 10.5 seconds pass, the program jumps to the
step 300 subroutine.
:
9 *SUB1
10 M_Timer(1)=0 ' Sets the timer to zero.
11 Act 3=1 ' Enables Act 3.
12 Return 0
:
19 *SUB2
20 Mov P_Safe
21 End
30 *LBL
31 M_Timer(1)=0.0 ' Resets the timer to zero.
32 Act 3=0 ' Disables Act 3.
33 Return 0
Def[]Act[]<Priority No.>, <Expression>[]<Process> [, <Type>]

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELFA CR1D and is the answer not in the manual?

Mitsubishi MELFA CR1D Specifications

General IconGeneral
BrandMitsubishi
ModelMELFA CR1D
CategoryController
LanguageEnglish

Related product manuals