Operation Control Programs - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5. OPERATION CONTROL PROGRAMS
5.1 Operation Control Programs
(1) Operation control programs
(a) Substitution operation expressions, motion-dedicated functions and bit
device control commands can be set in operation control program.
(b) Multiple blocks in one operation control program can be set.
(c) There are no restrictions on the number of blocks that may be set in one
operation control program. However, one program is within 64k bytes.
(d) The maximum number of characters in one block is 128.
(e) Transition conditions cannot be set. Transition conditions can be set only in
transition programs.
(f) The bit conditional expression that logical data value (true or false) is
returned in an operation control program, a comparison conditional
expression can be set up only as a source (S) of device set (SET=) or device
reset (RST=).
An operation control 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=!X0//Bit device control (RST=)
DIN D0,X0//Bit device control (DIN)
Comment
5 - 1
5
1 block
1 program

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents