Chapter 5 Transition Programs; Transition Programs - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

5

TRANSITION PROGRAMS

5.1
Transition Programs
Transition programs
• Substitution operation expressions, motion-dedicated functions, bit device control commands and transition conditions can
be set in transition programs.
• Multiple blocks can be set in one transition program.
• There are no restrictions on the number of blocks that may be set in a single transition program. Note that one program is
within 128k bytes.
• The maximum number of characters in one block is 1020.
• Transition condition must be set in the last block of a transition program. Transition program is repeated until the transition
condition enables, and when the transition condition has enabled, it shifts to the next step. Transition condition can be set
only in the last block.
• As a special transition program, a program which only no operation (NOP) is set in one block can be created. This program
is used when it is not set as interlock to process to next step with completion of servo program. (Page 107 To proceed
to the next step on operation completion)
A transition program example is shown below.
#0=D0+(D1+D2)*#5//Substitution expression (four arithmetic operations)
W0:F=SIN(#10F)//Substitution expression (standard function)
CHGV(K2,K10)//Motion-dedicated function
SET M100=M0+X0//Bit device control (SET=)
RST M10=D100>K10//Bit device control (RST=)
DIN D0,X0//Bit device control (DIN)
D0>K100//Standby until transition condition enables
What can be set as a transition condition in the last block are bit conditional expressions, comparison conditional expressions
and device set (SET=)/device reset (RST=) which return logical data values (true/false). In the case of device set (SET=)/
device reset (RST=), whether the bit or comparison conditional expression specified at (S) is true or false is a transition
condition, and when the transition condition enables, device set/reset is executed and execution shifts to the next step.
Transition condition description examples are given below.
Classification
Bit conditional expression
Comparison conditional expression
Device set (SET=)
Device reset (RST=)
• A transition program differs from an operation control program in that a transition condition is set in the last
block. Other settings are the same as those of the operation control program.
• When setting device set (SET=)/device reset (RST=) in the last block as a transition condition, the bit or
comparison conditional expression specified with (S) is not omissible.
• Only the bit or comparison conditional expression cannot be set in other than the last block. Device set
(SET=)/device reset (RST=) can be set in other than the last block.
5 TRANSITION PROGRAMS
282
5.1 Transition Programs
Comment
Description example
M0
!M0+X10*M100
(D0>K100)+(D100L!=K20L)
SET Y0=M100
RST M10=D0==K100
1 block
1 program
Transition condition

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents