EasyManua.ls Logo

Xinje XL Series - 4-3-4 [FOR] and [NEXT]

Xinje XL Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
93
4-3-4 [FOR] and [NEXT]
1)Summary
Loop execute the program between FOR and NEXT with the specified times;
Loop starts [FOR]
16 bits
FOR
32 bits
-
Execution
condition
Rising/Falling edge
Suitable Models
XD, XL
Hardware
requirement
-
Software
requirement
-
Loop ends [NEXT]
16 bits
NEXT
32 bits
-
Execution
condition
Normally ON/OFF,
Rising/Falling edge
Suitable Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2)Operands
Operands
Function
Data Type
S
Program’s loop times between FOR and NEXT
16 bits, BIN
3)Suitable Soft Components
Operan
ds
Word soft elements
Bit soft elements
System
Consta
nt
Module
System
D
F
D
T
D
C
D
D
X
D
Y
D
M
D
S
K/H
I
D
Q
D
X
Y
M
S
T
C
Dn.
m
Sn
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M,HM,SMS includes S,HST
includes T,HTC includes C, HC.
FOR.NEXT instructions must be programmed as a pair. Nesting is allowed, and the nesting
level is 8.
The program after NEXT will not be executed unless the program between FOR and NEXT is
executed for specified times.
Between FOR and NEXT, LDP, LDF instructions are effective for one time. Every time when
M0 turns from OFF to ON, and M1 turns from OFF to ON, [A] loop is executed 5×6=30
times.
Every time if M0 turns from OFF to ON and M3 is ON, [B] loop is executed 5×7=35 times.
If there are many loop times, the scan cycle will be prolonged. Monitor timer error may occur,
please note this.
If NEXT is before FOR, or no NEXT, or NEXT is behind FEND,END, or FOR and NEXT
number is not equal, an error will occur.
Description
tudonghoatoancau.com

Table of Contents

Related product manuals