7 OPERATION CONTROL PROGRAMS
7. OPERATION CONTROL PROGRAMS
Refer to Section "19.2 Motion SFC Error Code List" for error codes of the operation
(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)
SET M100=M0+X0//Bit device control (SET=)
RST M10=!X0//Bit device control (RST=)
DIN D0,X0//Bit device control (DIN)
(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
(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
7 - 1