Operation Control Programs - Mitsubishi Electric Q173CPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS

7. OPERATION CONTROL PROGRAMS
Refer to Section "19.2 Motion SFC Error Code List" for error codes of the operation
error.
(Refer to the "Q173CPU(N)/Q172CPU(N) Motion controller (SV13/SV22) Programming
Manual (REAL MODE)" and "Q173CPU(N)/Q172CPU(N) Motion controller (SV22)
Programming Manual (VIRTUAL MODE)" for minor errors of the operation error.)
7.1 Operation Control Programs
(1) Operation control programs
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
(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=).
7 - 1
1 block
1 program
7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents