EasyManuals Logo

Xinje XD Series User Manual

Xinje XD 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
Page #94 background imageLoading...
Page #94 background image
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

Other manuals for Xinje XD Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD Series and is the answer not in the manual?

Xinje XD Series Specifications

General IconGeneral
Input Voltage24V DC
Storage Temperature-20°C to 70°C
Protection ClassIP20
TypePLC
SeriesXD
Programming LanguageLadder Logic, Instruction List
Communication InterfaceRS232, RS485
Power Supply24V DC
Digital InputsAvailable (number varies by model)
Digital OutputsAvailable (number varies by model)
Analog InputsAvailable (number varies by model)
Analog OutputsAvailable (number varies by model)
Output TypeRelay, Transistor
Number of InputsVaries by model (see Digital Inputs and Analog Inputs)
Number of OutputsVaries by model (see Digital Outputs and Analog Outputs)
Operating Temperature0°C to 50°C
Humidity5% to 95% (non-condensing)