Mitsubishi Electric Melsec Q Series Programming Manual page 446

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

Advertisement

9 OPERATION FOR MOTION SFC AND PARAMETER
(2) Interrupt setting
[Description]
Set whether 16 interrupt input points (I0 to I15) of the QI60 interrupt module
loaded in the motion slot are used as NMI or event task inputs.
Setting can be made freely per point.
All points default to event tasks.
[Errors]
None.
(3) Limited count for repeat control
[Description]
Operation control program requires longer processing time if the operation
control program or transition program has more repeat control instructions (FOR
- NEXT). The longer processing time may cause the increase of main cycle and
the operation cycle over in event task/NMI task, which is prevented by setting
"Limited count for repeat control". Set "Limited count for repeat control" in every
normal task, event task and NMI task.
If the repeat control instruction (FOR - NEXT) is executed over "Limited count for
repeat control " in an operation control program or a transition program, a Motion
SFC error will occur (error code: 16208), and the corresponding Motion SFC
program No. will stop to execute. For the subroutine called program, the call
source program also stops to execute.
The repeat control instruction is executed once when the repeat control is judged
to continue at FOR instruction execution (when the condition is true).
In the program shown below, each block is executed as the arrow indicates, and
the repeat control instruction is executed eight times.
FOR #0 = K1 TO K2
FOR #10 = K1 TO K3
#100 = #100 + K1
NEXT
NEXT
#0 = K0
[Errors]
None.
These parameters are imported and checked at leading edge of PLC ready flag
(M2000).
When the value that was set is outside the setting range, the initial value is used
to control.
Ver.!
: Refer to Section 1.3 for the software version that supports this function.
Ver.!
1)
5)
2)
3)
4)
6)
7)
8)
9 - 11
Loop twice. #0 is from 1 to 2.
Loop three times.
#10 is from 1 to 3.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents