Xinje XC Manual
Xinje XC Manual
Xinje XC Manual
User manual
1
Catalog
1. Preface
——Main characters of programmable controller
2. Summary of XC series PLC
2-1.XC series PLC’s products summary and program mode
2-2.XC series PLC’s model and type
2-3.General specification
2-4.Shape size
2-5.Terminal arrangement
2-6.Communication port’s definition
3. Power circuit’s specification、input\output specification and exterior layout
3-1.Power’s specification
3-2.AC power、DC input type
3-3.Input specification
3-4.DC input signal’s disposal(AC power type)
3-5.Output specification
3-6.Relay output circuit’s disposal
3-7.Transistor output circuit’s disposal
4. Every soft unit of PLC
4-1.Each device of PLC
4-2.List of device’s ID
4-3.Disposal of data
4-4.Some encode principles of device
4-5.Timer’s ID and function [T]
4-6.Counter’s ID and function [C]
4-7.Some points to note
2
6. Applied instructions
6-1.List of applied instructions
6-2.Reading methods of applied instructions
6-3.Program flow instructions
6-4.Data move instructions
6-5.Data operate instructions
6-6.Data shift instructions
6-7.Data convert instructions
6-8.Floating point instructions
6-9.Clock operation instructions
7. High speed count and pulse output
7-1.With high speed counter’s ID and function inside
7-2.Using method of uni-direction high speed counter
7-3.Using method of double high speed counter
7-4.Pulse output [PLSY]
7-5.High frequency pulse output [PLSR]
9. Appendix
9-1.List of special auxiliary relay、special data register
3
1.Preface
——The characteristic of programmable controller
4
2.Summary of XC series PLC
XC series PLC is mini model PLC with powerful function. This series products can satisfy
diverse control demand. With compact design、excellent extend capability、competitive price
and powerful function, XC series PLC has become perfect resolution of small size control.
2-3.General specification
2-4.Size
2-5.Terminal arrangement
5
2-1.XC series PLC’s products summary and program mode
《List program》
Program
List program is the format which use“LD”、“AND”、“OUT”and other
ordinal control instructions to input. This format is the basic input format to
format compile ordinal control program。
E.g. Step Instruction Soft unit’s ID
0 LD X000
1 OR Y005
2 ANI X002
《Ladder program》
Use ordinal control signal and soft unit’s ID to draw the ordinal circuit’s
graph on the screen, it is called ladder program. As this method uses trigger
point’s symbols and coil symbols to denote the ordinal control circuit,so it is
easy to understand the program’s contents. At the same time, it’s also
available to monitor the PLC’s action via the status displayed in the circuit。
E.g. :
X0 X2
Y5
Y5
The programs compiled with the preceding two methods are both stored in
Alternation the PLC’s program memory in the format of list. So,the denotion and edition
of this two program format can convert to one another.
6
2-2.XC series PLC’s model and type
XC series XC3
1 2 3 4 5
main unit 1、 Family name
2、 Total points of input and output
3、 Output format R:Relay output T:Transistor output
RT:Both relay and transistor output
4、 Supply power E:AC power C:DC power
5、 With clock inside S:With clock inside
Model
Input Output
AC power DC power
points points
Relay output Transistor Relay output Transistor
(DC24V) (R,T)
output output
XC3-14R-E XC3-14T-E XC3-14R-C XC3-14T-C 8 points 6 points
XC3-24R-E XC3-24T-E XC3-24R-C XC3-24T-C 14 points 10 points
XC3-32R-E XC3-32T-E XC3-32R-C XC3-32T-C 18 points 14 points
XC5-48R-E XC5-48T-E XC5-48R-C XC5-48T-C 28 points 20 points
XC5-60R-E XC5-60T-E XC5-60R-C XC5-60T-C 36 points 24 points
NOTE:For the model which has both relay output and transistor output, only Y0 and Y1 are
transistor output, the others are relay output.。
7
2-3.General specification
General
specificatinon
Item Specification
Insulation Up to DC 500V 2MΩ
voltage
Noise 1000V 1uS pulse per minute
immunity
Ambient 0℃~60℃
temperature
Ambient 5~95%
humidity
COM 1 RS-232C,connect with host machine、HMI program or
debug
COM 2 RS-232C/RS-485,connect with the net or aptitude
instrument、inverter etc.
Installation Screw fixed or orbit installation
Grounding The third type ground(can’t public ground with
strong power system.)
8
Specification
Item Specification
14 points 60 points
Program executing Loop scan format、time scan format
format
Program format Use both list and ladder chart
Instruction types 84 types
Dispose speed 0.5uS
Power cut retentive Use FlashROM and Li battery
User program’s capacity 30000 steps(The program is smaller than 1M)
I/O points Input 36 points / output 24 points
Interior coil’s points (M) 6144 points 8000 points
Points No. 640 points
Timer 100mS timer:The set time 0.1~3276.7 sec
(T) Specification 10mS timer:The set time 0.01~327.67 sec
1mS timer:The set time 0.01~327.67 sec
Points No. 640 points
Counter 16 bits counter:The set value K0~32767
Specification
(C) 32 bits counter:The set value K0~2147483647
Data register(D) 8000 words
FlashROM register(D) 1792 words 5000 words
Special coil(M) 512 words
Special register(D) 256 words 1000 words
High-speed 7 types format
counter/exterior interrupt
Setting of time scan 0~255mS
space
Password protection 8 bits length
Self diagnose function Self-diagnose、Monitor timer、grammar check
9
2-4.Size
Size
63
55 73.3
N COM X0 X2 X4 X6
L FG X1 X3 X5 X7
0 1 2 3
SN:0067032266
DATE:20060410
TYPE:XC3-14R-E
4 5 6 7
XC3-14RT-E
102
X
94
PWR
RUN
ERR
Y
0 1 2 3
4 5 6 7
24V A Y0 COM1 Y3 Y5
0V B COM0 Y1 Y2 Y4
139
131 73.3
0 1 2 3 4 5
Xinje Electronic Co.,Ltd
SN:0067032266
DATE:20060410
TYPE:XC3-32R-E
6 7
102
94
X PWR
XC3-32R-E RUN
PORT1 PORT2 Y
ERR
0 1 2 3 4 5
6 7
10
XC5 series 60 points main unit(Including 48 points main unit)
207.4
199.4 73.3
COM X1 X3 X5 X7 X11 X13 X15 X17 X21 X23 X25 X27 X31 X33 X35 X37 X41 X43
COM X0 X2 X4 X6 X10 X12 X14 X16 X20 X22 X24 X26 X30 X32 X34 X36 X40 X42
0 1 2 3 4 5 6 7
X PWR
XC3-60R-E RUN
PORT1 PORT2 ERR
Y
0 1 2 3 4 5 6 7
24V A CAN+ Y0 Y1 Y2 COM3 Y4 Y6 Y7 Y11 Y13 Y15 COM6 Y20 Y22 Y23 Y25 Y27
0V B CAN- COM0 COM1 COM2 Y3 Y5 COM4 Y10 Y12 COM5 Y14 Y16 Y17 Y21 COM7 Y24 Y26
11
2-5.Terminal arrangement
COM X1 X3 X5 X7 X11 X13 X15 X17 X21 X23 X25 X27 X31 X33 X35 X37 X41 X43
FG COM X0 X2 X4 X6 X10 X12 X14 X16 X20 X22 X24 X26 X30 X32 X34 X36 X40 X42
24V A CAN+ Y0 Y1 Y2 COM3 Y4 Y6 Y7 Y11 Y13 Y15 COM6 Y20 Y22 Y23 Y25 Y27
0V B CAN- COM0 COM1 COM2 Y3 Y5 COM4 Y10 Y12 COM5 Y14 Y16 Y17 Y21 COM7 Y24 Y26
COM X1 X3 X5 X7 X11 X13 X15 X17 X21 X23 X25 X27 X31 X33
FG COM X0 X2 X4 X6 X10 X12 X14 X16 X20 X22 X24 X26 X30 X32
24V A CAN+ Y0 Y1 Y2 COM3 Y4 Y6 Y7 Y11 Y13 Y15 COM6 Y20 Y22 Y23
0V B CAN- COM0 COM1 COM2 Y3 Y5 COM4 Y10 Y12 COM5 Y14 Y16 Y17 Y21 COM7
12
XC3- 32 main unit:18 in/14 out
COM X1 X3 X5 X7 X11
FG COM X0 X2 X4 X6 X10
24V A Y0 COM1 Y3 Y5
0V B COM0 Y1 Y2 Y4
13
Arrangement of extension
XC-E8X8YR
0V COM X1 X3 X5 X7
24V COM X0 X2 X4 X6
Y0 Y1 Y2 COM3 Y5 Y7
COM0 COM1 COM2 Y3 Y4 Y6
XC-E16X
0V COM X1 X3 X5 X7
24V COM X0 X2 X4 X6
XC-E16YR
0V Y0 Y2 COM1 Y5 Y7
24V COM0 Y1 Y3 Y4 Y6
14
2-5.Definition of COM ports
Program cable
5 1
2 1
5 43
8 6
7
9 6
Mini Din 8 core jack(hole) DB9 pin(hole)
15
3.Power circuit’s specification、input/output specification and exterior layout
In this chapter, we’ll tell the power constitution, interior signal circuit’s composing, output
circuit’s composing and exterior layout of XC series PLC.
When using the extend modules or special modules at the same time, please connect the
power according to the user manual.
3-1.Power specification
3-3.Input specification
3-5.Output specification
16
3-1.Power specification
For the power specification of XC series programmable controller’s basic units, see the following
table:
To avoid voltage decend, please use the power cable thicker than
2mm2
Even appear power cut within 10ms,programmable controller can
still continue to work. But if long time power cut or abnormal
power decend, programmable controller will stop working, output
will also appear OFF status,when recover power supply, the
programmable controller will automatically start working.
Connect the grounding terminals of basic unit and of extend module
together, then ground
DC power
Rated voltage DC24V
type
Voltage allow bound DC21.6V~26.4V
Input current 120mA DC24V
(Only basic unit)
Allow momentary 10mS DC24V
power-cut time
Impulse current 10A DC26.4V
Max power 12W
consumption
Power for sensor 24VDC±10% Max 400mA
use
17
3-2.AC power、DC input type
18
3-3.Input specification
Basic unit
Extend unit
19
3-4.DC input signal’s disposal(AC power type)
DC input signal
Input terminals
When connect input terminals and COM terminals with contacts without voltage or NPN
open collector transistor, if input is ON,LED lamp lights, which indicates input. There are
many COM terminals to connect in PLC.
Input circuit
Use optical coupling instrument to insulate the input once circuit and twice circuit. There’s a
C-R filter in the twice circuit. It is set to avoid wrong operation caused by vibration of input
contacts or noise along with input signal. As the preceding reason, for the changing of input
ON→OFF,OFF→ON,in PLC, the response time delays about 10ms. There’s a digital filter
inside X000~X015. This kind of filter can change from 0~15ms according to the special
register (D8020).
Input sensitive
The PLC’s input current is DC24V 7mA,but to be safe,it needs current up to 3.5mA when
it’s ON,lower than 1.5mA when it’s OFF.
20
Exterior XC series PLC’s input power is supplied by its interior 24V power,so if
circuit used use exterior power to drive photoelectricity sensor etc.,,this exterior
by sensor power should be DC24V±4V,please use NPN open collector type for
sensor’s output transistor. But in the sensors whose output transistor has
strong pressure endurance ablilty,and there is no diode or resistance
(open collector) as the following, it will be no problem even exterior
voltage is not the same.
21
Input connection
22
3-5.Output specification
Relay output
Transistor output
23
3-6.Disposal of relay output circuit
Output terminal
Relay output type includes 1~4 public-end output type. So each public-end unit can drive
different power-voltage system’s(E.g.:AC200V,AC100V,DC24V etc.)load.
Circuit’s insulation
Between the relay output coils and contacts,PLC’s interior circuits and exterior circuits,
load circuits are electric insulation。Besides, each public-end blocks are separate.
Action display
LED lamp lights when output relay’s coils galvanize,output contacts are ON。
Response time
From the output relay galvanize (or cut) to the output contacts be ON (or OFF), the
response time is about 10ms
Output current
The current-voltage below AC250V can drive the load of pure resistace 2A/1 point、
inductance load below 80VA(AC100V or AC200V) and lamp load below 100W
(AC100V or AC200V)。
Open circuit’s leak current
When the output contact be OFF and there’s no leak current,can directly drive Ne lamp
etc.。
The life of relay output contacts
Standard life of induce AC load such as contacter、electromagnetism valve:5 million
times for 20VA load. Cut power device’s life according to the company’s test: for 80VA
load, the action life is up to 2 million times.
24
Output connection example
Constitution For DC induce load, please parallel connect with commutate diode.
of output If not connect with the commutate diode, the contact’s life will be
circuit decreased greatly. Please choose the commutate diode which allow
inverse voltage endurance up to 5~10 times of the load’s voltage,
ordinal current exceeds load current.
Parallel connect AC induce load with surge absorber can reduce
DC load
noise.
AC load
25
3-7.Disposal of transistor output circuit
Output terminal
Basic unit’s transistor output has 1~4 public-end output。
Exterior power
Please use DC5~30V steady-voltage power for load drive。
Circuit insulation
Use photoelectricity coupling device to insulate PLC’s interior circuit and output
transistor. Besides, each public block is separate.
Action denote
When drive optical coupling,LED lights,output transistor is ON。
Response time
From photoelectricity coupling device drive (or cut) to transistor ON (or OFF) , the time
PLC uses is below 0.2ms。
Output current
The current is 0.5A per point。But as restrict by temperature goes up, the current is 0.8A
every four points。
Open circuit’s current
Below 0.1mA。
26
E.g. :The following is the connection graph of –RT series PLC with step motor driver。
PU
Y*0
27
4.Each soft unit’s usage and function
This chapter, we’ll give some description of the PLC’s data and the function of interior input/output relay,
auxiliary relay, status, counter, data register etc. This item is the base to use PLC.
4-3.Disposal of data
4-7.Note items
28
4-1.Every soft unit of programmable controller
In the programmablecontroller, there are many relays、timers and counters,they all have
countless a contacts(Normally open contacts)and b contacts(Normally closed contacts),
Connect these contacts and cols to constitute sequencial control circuit。The following, we’ll
briefly introduce each soft unit:
【Input(X)and output(Y)relay】
In each basic unit,assign the ID of input relay, output relay in the format of
X000~X007,X010~X017…,Y000~Y007,Y010~Y017… this octal format. The ID of
extension is connected behind basic unit.
Use digital filter in the special input filter of input relay, so you can use the program to
change the sieve value. So in the high-speed receive application, you can assign this type
of relay’s ID No.。
【Auxiliary relay(M)】
Auxiiary relay is the relay inside the programmable controller,this type of output relay is
different from input/output relay,it can’t gain exterior input,it also can’t drive exterior
load,it can only be used in the program。
The relay used for retentive can still save its ON/OFF status in the case of PLC power
cut.
【Status(S)】
【Timer(T)】
Timer could carry on plus operation to 1ms,10ms,100ms etc. time pulse in PLC, When
reach certain set value, output contact act.
T100~T199 are timers with the unit of 100ms clock pulse,their current values are the
accumulate values. So, even though timer coil’s drive input is cut, they will still hold the
current value, go on accumulating the action.
29
【Counter(C)】
The counters can be divided to the following sorts according the their usage and
purpose:
[Used for interior count] Common use / power cut retentive use
16 bits counter:Used for add count,count bound: 1~32,767
32 bits counter:Used for add / minus count,count bound: -2,147,483,648~+2,
147,483,647
These counters are used for PLC’s interior signal,usually their response speed is below
10Hz。
[Used for high-speed count] For power cut retentive use
32 bits counter:For add / minus count, count bound: -2,147,483,648~+2,
147,483,6487
(Single phase single count,single phase double count,AB phase
count) allocate to the special input relay。High-speed counter can count with the
frequency below 60kHz,independent with the PLC’s scan time.
【Data register(D)】
It’s the soft unit used by data register to save data。XC series PLC’s data registers are all
16 bits (The high bit is the sigh bit), Combine two registers can carry on 32 bits data
disposal (The high bit is the sigh bit).
Just the same with other soft unit, data registers also can be divided to be two types:
forcommon use and power cut retentive use。
【Constant(K)】 (H)
In the diverse value used by PLC, K means decimal integer,H means Hex. Value. They
are used to be the set value and current value for the timer and counter, or application
instructions’ operands.
【Pointer(P)(I)】
Pointer is used for branch and interrupt。The pointer (P) used by branch is the jump aim
used for condition jump or subroutine jump. Pointer used for interrupt is used for the
assigned input interrupt, time interrupt.
30
4-2.Device’s ID list
For the allocate of device’s ID., please see the following list:
Besides, when connect input / output extend device and special extend device on the basic
units, for the input / output relay’s No., please refer to the user manual.
Bound Point
Mnemonic Name 14 60
14 points 60 points
points points
M0~M2999 M0~M2999
6144 8000
【M3000~M6144】 【M3000~M7999】
M Interior relay
For special usage M8000~M8511 512 512
S0~S511
S Flow 1024 1024
【S512~S1023】
T0~T99:100ms not accumulation
T100~T199:100ms accumulation
T200~T299:10ms not accumulation
T300~T399:10ms accumulation
T Timer 640 640
T400~T499:1ms not accumulation
T500~T599:1ms accumulation
T600~T619:1ms with interruption precise
time
C0~C299:16 bits forth counter
C Counter C300~C599:32 bits forth/back counter 640 640
C600~C635:high-speed counter
D0~D3999
8000 9000
【D4000~D7999】
D Data register
For special usage For special usage
256 1000
D8000~D8255 D8000~D9000
FlashROM
FD FD0~FD1791 FD0~FD4999 1792 5000
register
31
NOTE:
※1. The memorizer area in 【 】 is the defaulted power-cut rententive area;soft element
D、M、S、T、C can be set to change the power-cut rententive area。Fot the details,
please see the following table
※2. FlashROM register needn’t to set power cut rententive, its data won’t lose when power is
cut (No battery).
※3. The serial No. of input coil、output relay are octal data,other memorizers’ No. are all
algorism data。
※4. The exterior device which is not connected with I/O can be used ad fast-speed interior
relay。
32
4-3.Data disposal of programmable controller
According to different usage and purpose, XC series programmable controllers use 5 types of
format. For its usage and function, see the following:
《DEC》(DEC:DECIMAL NUMBER)
The set value of timer and counter(K constant)
The number of auxiliary relay(M),timer(T),counter(C),status(S)
(Soft unit’s number)
Assign the value in the operands and nstruction’s action(K constant)
《HEX》(HEX:HEXADECIMAL NUMBER)
The same with DEC data,it is used to assign the value in the operands and
instruction’s action(H constant)
《BIN》(BIN:BINARY NUMBER)
Just as said before,carry on data allocation to timer, counter or data register in
the format of DEC. or Hex., But in the PLC, these data are all be put in the
format of binary data。And, when carry on monitor on the periphery device,
these soft units will auto switch to be DEC. data as showed in the graph.(they
can also switch to be Hex. Data.)。
《OCT》(OCT:OCTAL NUMBER)
The input relay, output relay’s soft units’ No. of XC series PLC are allocate in
the format of OCT data. So, it can go on carry of [1-7,10-17, ...70-77,
100-107]。
《Other data(float)
XC series PLC has the function of high precision floating point operation. Use
binary floating point data to execute floating point operation, use decimal
floating value to execute monitor.
33
4-4.Some encode principles of device
34
Tag type:P,I
E.g.:P7,means tag 7,use CJ command or CALL command, the program will jump to the
tag place to execute,but the jump bound is limited in the step state of the most inner
layer.
Attentaion items
(1)After M8000 、D8000、FD8000 are all used by the system.
(2)The constant which the user inputs will auto convert according to the user’s command
(16bits integer—>32 bits integer and 32 bits float、32 bits integer—>32 bits float)
35
4-5.Timer’s number and function [T]
For the number of timer [T], please see the following table。
(Allocate the
No. in the format of DEC.)
Timer’s ID
Function The timer accumulates the clock pulse of 1ms,10ms,10ms in PLC. Output
the contact’s action when reach the set value.
For the common timer, don’t set the exclusive instructions, use OUT
instruction to time; Use constant K in the program memory to be the set
value, or use content in data register (D) to indirect assign.
36
If the drive input X001 of timer’s
coil T300 is ON, T300
accumulates 10ms clock pulse
with the current value counter.
When the value reach the set value
K2000, counter’s output contact
Accumulation
37
《Flicker》
X0 T2
T1 K20
X0
T1
T2 K10 T1 T2 T1
Y0
Y0
38
4-6.Counter’s ID and function [C]
Counter’s The characters of 16 bits counter and 32 bits counter are the following.
They could be used separately according to the switch of the count
direction and the use condition of count bound.
characteristic
39
The assignment of normally use counter and power cut rententive counter could
Function be changed via modifting the peripheral equipment’s parametre
X0
RST C0 If cut the PLC’s power, then the value
16 bits counter For normally use or power cout rententive
Every time when X001 drives coil C0, the counter’s current value will
increase. When execute the coil instruction the tenth time, output contact
acts. Later, even X001 acts, counter’s current value will not change.
If reset input X000 is ON, execute RST instruction, counter’s current
value is 0, output contact acts.
For the counter’s set value, it could not only set by constant K, but also be
assigned by data register’s ID. E.g. assign D10, if the content of D10 is
123, it’s the same with setting K123.
When write the set value to the current value register via MOV instruction
etc. When input next time, output coil gets, current value register turns to
the set value.
40
For 32 bits binary increase counter, its valid bound is K1~K2,147,483,647
32 bits counter For normally use or power cout rententive (Decimal constant).
X001
C0 K100
《Indicate assignment(K)》
X000
MOV K100 D5
X001
C0 D5
32 bits counter
《Constant assignment(K)》
X001
C300 K43,100
41
《Indicate assignment(K)》
X000
DMOV K43100 D5
X001
C300 D5( D6)
Input disposal
Before PLC executing the program, read all the input terminal’s ON/OFF status of PLC to
the image area. In the process of executing the program, even the input changed, the content
in the input image area will not change. However, in the input disposal of next scan cycle,
read out the change.
Output disposal
Once finish executing all the instructions, transfer the ON/OFF status of output Y image
area to the output lock memory area. This will be the actual output of the PLC. The
contacts used for the PLC’s exterior output will act according to the device’s response
delay time.
When use this input/output format in a batch, the drive time and operation cycle of input
filter and output device will also appear response delay.
PLC’s input ON/OFF time should be longer than its loop time. If consider input filter’s
response delay 10ms, loop time is 10ms,then ON/OFF time needs 20 ms separately. So, up to
1,000/(20+20)=25Hz input pulse can’t be disposed. But, this condition could be improved
when use PLC’s special function and applied instructions.
42
《Dual output(Dual coils)action》
43
5.Basic program instructions
5-2.【LD】,【LDI】,【OUT】
5-3.【AND】,【ANI】
5-4.【OR】,【ORI】
5-5.【LDP】,【LDF】,【ANDP】,【ANDF】,【ORP】, 【ORF】
5-6.Compare instructions
5-7.【ORB】
5-8.【ANB】
5-9.【MCS】,【MCR】
5-10.【ALT】
5-11.【PLS】, 【PLF】
5-12.【SET】, 【RST】
5-13.【OUT】, 【RST】
5-14.【NOP】, 【END】
44
5-1.List of basic instructions
Mnemonic Function Format and device
LD Initial logical operation contact
(LoaD) type NO (normally open)
OR Parallel connection of NO
(OR) (normally open) contacts
45
ORF Parallel connection of
(OR Falling pulse) falling/trailing edge pulse
46
OR> Parallel comparison contact.
Active when the comparison
(S1)>(S2)is true.
OR< Parallel comparison contact.
Active when the comparison
(S1)<(S2)is true.
OR<> Parallel comparison contact.
Active when the comparison
(S1)≠(S2)is true.
OR<= Parallel comparison contact.
Active when the comparison
(S1)≤(S2)is true.
OR>= Parallel comparison contact.
Active when the comparison
(S1)≥(S2)is true.
ANB Serial connection of multiply
(ANd Block) parallel circuits
47
ALT The status of the assigned
ALT M0
(Alternate state) deviceis inverted on every
operation of the instruction
NOP No operation or null step NOP
(No Operation)
END Force the current program scan to END
(END) end
48
5-2.【LD】,【LDI】,【OUT】 instructions
Connect the LD and LDI instructions directly to the left bus bar. Or use
Instruction them to define a new block of program when using ANB instruction.
OUT instruction is the coil drive instruction for the output relay、
auxiliary relay、status、timer、counter. For the input relay, cannot use.
description
Can not sequentially use parallel OUT command for many times.
For the timer’s time coil or counter’s count coil, after using OUT
instruction, set constant K is necessary.
For the constant K’s set bound、actual timer constant、program’s step
relative to OUT instruction(include the set value)
See the following table:
X0 0 LD X0
Y100
1 OUT Y100
Program X1
M1203 2 LDI X1
3 OUT M1203
T0 K19 4 OUT T0
T0
Y1 SP K19
7 LD T0
8 OUT Y1
49
5-3【AND】,【ANI】 instructions
5-4.【OR】,【ORI】 instructions
Use the AND and ANI instructions for serial connection of contacts.
Instruction As many contacts as required can be connected in series. They can
be used for many times.
The output processing to a coil, through writing the initial OUT
description
instruction is called a “follow-on” output(For an example see the
program below: OUT M10 and OUT Y005). Follow-on outputs are
permitted repeatedly as long as the output order is correct. There’s
no limit for the serial connected contacts’s No. and follow-on
outputs’ No. .
50
X5
Y6 0 LD X5
Program X6
1 OR X6
M11
Y6 M4 X7
2 OR M11
M100 3 OUT Y6
M12
M13 4 LDI Y6
5 AND M4
6 OR M12
7 ANI X7
8 OR M13
9 OUT M100
51
5-5.【LDP】,【LDF】,【ANDP】,【ANDF】,【ORP】,【ORF】
0 LDP X5
X5
M13 1 ORP X6
X6
Program 2 OUT M13
M8000 X7
M15 3 LD M8000
4 ANDP X2
5 OUT M15
52
X5
M13 0 LDF X5
X6
1 ORF X6
M8000 X7
M15 2 OUT M13
3 LD M8000
4 ANDF X2
5 OUT M15
In the up chart, when X000~X002 turns from
ON to OFF or OFF to ON, M0 or M1 is active.
X0 X0
M20 PLS M20
Output
drive
In two conditions, when X0 turns from OFF to ON, M20 gets a scan cycle.
X10 When X10 turns from OFF to ON,
MOV K10 D0
only execute once MOV instruction.
The defference When assign the auxiliary relay (M) as LDP, LDF, ANDP, ORP,
caused by the ORF devices, the defference of device’s ID bound will cause the
defference of ①M0
defferenceSET
of actionM20 M2800
in the following chart. SET M0
auxiliary relay’s
X0 M2800
ID M0 SET M1 A
②M0
SET M21
X0
③M0 M2800
SET M22
M2800
④X0 SET M2
M23
M2800
SET M3
B
After X000 drive M0, M0’s correspond
M2800
(1)~(4)contacts act. SET M4
In which:(1)~(3) execute M0 rising M2800
SET M5
pulse check.(4)is LD instruction.
M2800
SET M6
M2800 C
M7
53
With the center of M2800 which is driven by X000, it’s deivded to be
A,B these two area. In the contacts which are checked out by rising
edge pulse and falling edge pulse in A,B these two areas, only one
contact activates. The contact in area C is LD instruction. Hence it ges
when M2800 activates. With this charatcterstc, program effectivey to
the【carry on status transferring with the same signal】in the step ladder.
54
5-6.Contact compare instruction
Mnemonic Function
LD= Initial comparision contact.
Active when the comparison (S1)=(S2) is true.
LD> Initial comparision contact.
Active when the comparison (S1)>(S2) is true
LD< Initial comparision contact.
Active when the comparison (S1)<(S2) is true
LD<> Initial comparision contact.
Active when the comparison (S1)≠(S2) is true
LD<= Initial comparision contact.
Active when the comparison (S1)≤(S2) is true
LD>= Initial comparision contact.
Active when the comparison (S1)≥(S2) is true
AND= Serial comparison contact.
Active when the comparison (S1)=(S2) is true.
AND> Serial comparison contact.
Active when the comparison (S1)>(S2) is true.
AND< Serial comparison contact.
Active when the comparison (S1)<(S2) is true.
AND<> Serial comparison contact.
Active when the comparison (S1)≠(S2) is true
AND<= Serial comparison contact.
Active when the comparison (S1)≤(S2) is true.
AND>= Serial comparison contact.
Active when the comparison (S1)≥(S2) is true.
OR= Parallel comparison contact.
Active when the comparison (S1)=(S2) is true.
OR> Parallel comparison contact.
Active when the comparison (S1)>(S2)is true.
OR< Parallel comparison contact.
Active when the comparison (S1)<(S2)is true.
OR<> Parallel comparison contact.
Active when the comparison (S1)≠(S2)is true.
OR<= Parallel comparison contact.
Active when the comparison (S1)≤(S2)is true.
OR>= Parallel comparison contact.
Active when the comparison (S1)≥(S2)is true.
55
LD □
Format and The value of S1 and S2 are tested according to the comparison of the
function instruction. If the comparison is ture then the LD contact is active. If the
comparison is false then the LD contact is not active.
16 bits 32 bits Active condition Not active
condition
LD= DLD= (S1)=(S2) (S1)≠(S2)
LD> DLD> (S1)>(S2) (S1)≤(S2)
LD< DLD< (S1)<(S2) (S1)≥(S2)
LD<> DLD<> (S1)≠(S2) (S1)=(S2)
LD<= DLD<= (S1)≤(S2) (S1)>(S2)
LD>= DLD>= (S1)≥(S2) (S1)<(S2)
S1· S2·
Program
LD= K100 C0 Y0
X0
LD> D200 K-30 SET Y1
M4
56
AND □
Format and The value of S1 and S2 are tested according to the instruction. If the
function comparison is ture then the AND contact is active. If the comparison is
false then the AND contact is not active.
16 bits 32 bits Active condition Not active
condition
AND= DAND= (S1)=(S2) (S1)≠(S2)
AND> DAND> (S1)>(S2) (S1)≤(S2)
AND< DAND< (S1)<(S2) (S1)≥(S2)
AND<> DAND<> (S1)≠(S2) (S1)=(S2)
AND<= DAND<= (S1)≤(S2) (S1)>(S2)
AND>= DAND>= (S1)≥(S2) (S1)<(S2)
X1
AND> K-30 D0 SET Y1
X2
ANDD> K68899 D10 M50
M4
57
OR □
Foramt and The value of S1 and S2 are tested according to the instruction. If the comparison is
function ture then the OR contact is active. If the comparison is false then the OR contact is
not active.
16 bits 32 bits Active condition Not active
condition
OR= DOR= (S1)=(S2) (S1)≠(S2)
OR> DOR> (S1)>(S2) (S1)≤(S2)
OR< DOR< (S1)<(S2) (S1)≥(S2)
OR<> DOR<> (S1)≠(S2) (S1)=(S2)
OR<= DOR<= (S1)≤(S2) (S1)>(S2)
OR>= DOR>= (S1)≥(S2) (S1)<(S2)
Program
X0
Y0
S1· S2·
OR= K100 C0
X2 M4
M50
58
5-7.【ORB】
To declare the starting point of the circuit (usually serial circuit blocks)
Description to the preceding circuit in parallel. Serial circuit blocks are those in
which more than one contacts in series or the ANB instruction is used.
An ORB instruction is an independent instruction and is not associated
with any device number.
There are no limitations to the number of parallel circuits when using an
ORB instruction in the sequential processing configuration.
When using ORB instructions in a batch, use no more than 8 LD and
LDI instructions in the definition of the program blocks (to be
connected parallel).
Program
59
5-8.【ANB】
Program
0 LD X0
1 OR X1
2 LD X2 Start of a branch
3 AND X3
4 LDI X4 Start of a branch
5 AND X5
6 ORB End of a parallel circuit block
7 OR X6 End of a parallel circuit block
8 ANB Serial connect with the preceding circuit
9 OR X7
10 OUT Y20
60
5-9.【MCS】,【MCR】
X1 X2
Y0
Description M1 M3
Y1
M2
Y2
61
5-10.【ALT】
Program
M100 0 LD M100
ALT M0
1 ALT M0
M0 2 LD M0
Y0
M0
3 OUT Y0
Y1 4 LDI M0
5 OUT Y1
62
5-11.【PLS】,【PLF】
X0
PLS M0
M0
Program SET Y0
X1
PLS M1
M1
RST Y0
63
5-12.【SET】,【RST】
Turning ON X010 causes Y000 to turn ON. Y000 remains ON even after
Description X010 turns OFF. Turning ON X011 causes Y000 to turn OFF. Y000
remains OFF even after X011 turns OFF. It’s the same with M、S.
SET and RST instructions can be used for the same device as many times
as necessary. However, the last instruction activated determines the current
status.
After assign the start definition ID and end definition ID, operate the
operands in one bound at the same time is available.
Besides, it’s also possible to use RST instruction to reset the current
contents of timer, counter and contacts.
When use SET、RST instruction, please try to avoid using the same
definition ID with OUT instruction.
0 LD X10
X10
SET Y0 1 SET Y0
Program X11 2 LD X11
RST Y0
X12
3 RST Y0
SET M50 4 LD X12
X13
RST M50 5 SET M50
X14 6 LD X13
SET S0
7 RST M50
X15
RST S0 8 LD X14
X16 9 SET S0
RST D0
X10 K10 11 LD X15
T250
12 RST S0
X17
RST T250 14 LD X16
15 RST D0
16 LD X10
X10 17 OUT T250
SP K10
X11 20 LD X17
21 RST T250
Y0
64
5-13.【OUT】,【RST】
Program of
high speed In the single phase single input
counter counters among C600-C618, when
X031 is ON, the output contact of
counter C△△△ reset. Counter’s
current value turns to be 0.
When X030 is ON, count the
ON/OFF status of the count input
To drive high speed counter’s count coil’s
X000-X021 which are decided by
contacts, please use the contacts which is always
counter’s ID.
ON in the executing process of high speed
Counter’s current value increase,
counter. When driving dount coils, if use input
when reach the set value (content of
realy(X000-X021)which are used for high
K or D), output contact is reset.
speed counter’s input ID(X000-X021) ,correct
count will not be carries out.
65
5-14.【NOP】,【END】
function (No
Operation)
END Force the current program END
When clear the whole program, all the instructions become NOP. If add
Description NOP instructions between the common instructions, they have no effect
and PLC will keep on working. If add NOP instructions in the program,
then when modify or add programs, the step vary will be decreased. But
the program should have rest quantity.
If replace the program’s instructions with NOP instructions, then the
circuit will be changed, please note this.
When executing END instruction, refresh monitor timer. ( Check if scan cycle is a long timer. )
66
5-15.Items to note when programming
X0 X2 X0 X2
Y0 Y0
X3 X4
X3 X4
Y0
X0 X2
M0
X3 X4
M1
M0
Y0
M1
There are other methods. E.g. jump instructions or step ladder. However, when use step
ladder, if the main program’s output coil is programmed, then the disposal method is the
same with dual coil, please note this.
67
6.Applied instructions
6-3.Flow instruction
6-7.Data convert
6-9.Clock operation
68
6-1.Applied instruction list
The applied instructions’ sort and their correspond instructions are listed in the following table:
69
SHL Arithmetic Shift Left
SHR Arithmetic Shift Right
LSL Logic shift left
LSR Logic shift right
Data ROL Rotation shift left
Shift ROR Ritation shift right
SFTL Bit shift left
SFTR Bit shift right
WSFL Word shift left
WSFR Word shift right
WTD Single word integer converts to double word integer
FLT 32 bits integer converts to float point
FLTD 64 bits integer converts to float point
Data INT Float point converts to binary
Convert BIN BCD converts to binary
BCD Binary converts to BCD
ASC Hex. converts to ASCII
HEX ASCII converts to Hex.
ECMP Float compare
EZCP Float Zone compare
EADD Float Add
ESUB Float Subtract
Float
EMUL Float Multiplication
Point
EDIV Float division
Operation
ESOR Float Square Root
SIN Sine
COS Cosine
TAN Tangent
TCMP Time Compare
TZCP Time Zone Compare
Clock TADD Time Add
Operation TSUB Time Subtract
TRD Read RTC data
TWR Set RTC data
70
6-2. Reading method of the applied instruction’s description
The understanding method of instruction’s description
In this manual, instructions are described with the following format.
① Instruction’s name
② Device which can be used
③ Ladder example
④ Tell the instruction’s basic action, using way, applied example, extend function, note items etc.
⑤ Flag after executing the instruction. Instructions without the direct flag will not display.
⑥ S· : Source operand, its content won’t change after executing the instruction
D· : Destinate operand, its content changes with the execution of the instruction
71
The assignment of the data
The related The data register of XC series PLC is a single word (16 bit) data
register,single word data only engross one data register which is
assigned by single word object instruction. The disposal bound is: Dec.
description
-327,68~327,67, Hex. 0000~FFFF。
Double word(32 bit)engrosses two data register, it’s composed by two consecutive data
registers, the first one is assigned by double word object instruction. The dispose
bound is: Dec. -214,748,364,8~214,748,364,7, Hex. 00000000~FFFFFFFF。
72
6-3.Program flow instructions
73
[CJ]
Operand:P
With CJ instruction, it will shorten the operate cycle and use double coil is
Function available. In the following chart, if X000“ON”,then jump to the next step
marked P6 from the first step. When X000“OFF”, do not execute jump
and action instruction.
chart:program P6 program P7
Program’s timer T0~T599 and high speed counter C600~C619, if jump after
driving, then go on working, the output contacts are also activated.
X0
CJ P6
X1
Y0
X2
RST T246
X3
T246 K1000
X4
MOV K3 D0
X0
P6 CJ P7
X5
Y0
X6
P7 RST T246
Y000 turns to be the dual coil, X001 activates when X000=OFF, X005 activates when
X000=ON. With condition jump, even it’s a subsection program, when convert a same coil to
be up to 2 programs inside the JUMP or outside the JUMP, treat it as a normal coil.
When accumulate the reset instructions of timer and counter beyond the JUMP, time coil and
the jump count coil reset (contact recover and clear the current value) is valid.
74
[CALL] and [SRET]
Usable device:P
Main program
X0
CALL P10
Function
and action
FEND
P10
Subroutine
SRET
END
When X000 is “ON”, then execute “CALL” instruction and jump to the step denoted with
P10. After finish executing the subroutine, go back via executing SRET instruction. Program
after FEND instruction which will be said later.
Please don’t use CJ instruction’s denotion and repeat number. However, using repeat number
of CALL instruction’s operate object is allowed.
There could be 9 times CALL instruction in the subroutine, and for the whole, the nesting
level is 10.
75
[STL], [SET][ST] and [STLE]
Usable device:S
SET S0
Function
STL S0
and action
SET S1
ST S2
STLE
STL S1
STLE
STL S2
STLE
STL and STLE should be used in pairs. It’s available to nesting, and the current nesting level
is 1.
After executing SET Sxxx instruction, the flow assigned by this instruction is ON.
After executing RST Sxxx instruction, the assigned flow is OFF.
In flow S0, SET S1 close the current flow S0, open the flow S1.
In flow S0, ST S2 open flow S2, but not close flow S0.
When the flow turns from ON to OFF, set the flow’s OUT、PLS、PLF、not accumulate timer
etc. OFF or reset.
76
[FOR] and [NEXT]
Usable device:DX、DY、DM、DS、T、C、D、K
A FOR~NEXT loop operates for its set number of times before the main
Function
program is allowed to finish the current program scan.
and action
M0
FOR K5
M1
FOR K6
INC D0 [A]
NEXT
M3 [C]
FOR K7
INC D1 [B]
NEXT
NEXT
77
[EI]、 [DI] and [IRET]
Operands:None
78
[FEND] and [END]
Operands:None
An FEND instruction indicates the first frrst end of a main program and the
Function start of the frogram area to be used for subroutines. Under normal operating
circumstances the FEND instruction performs a similar action to the END
and action instruction, i.e.output processing, input processing and watchdog timer refresh
are all carried out on execution.
If program the tag of CALL instruction behind FEND instruction, there must be
SRET instruction. If the interrupt pointer program behind FEND instruction,
there must be SRET instruction.
After executing CALL instruction and before executing SRET instruction, if
execute FEND instruction; or execute FEND instruction after executing FOR
instruction and before executing NEXT, then an error will occur.
In the condition of using many FEND instruction, please compile routine or
subroutine between the last FEND instruction and END instruction.
79
6-4.Data Move
Mnemonic Function
MOV Move
BMOV Block Move
FMOV Fill Move
ZRST Zone Reset
SWAP Float To Scientific
XCH Exchange
80
[MOV]
Operands:DX、DY、DM、DS、T、C、D、K
S· D·
Function X0
MOV K10 D10
and action
Move data from one storage area to a new storage area
X1
MOV T0 D20 (T0 current value)→(D20)
It’s the same with the counter.
X2
MOV K10 D20
(K10)(D10)
M0 D20=K10
T20 D20
DMOV D0 D10
(D1,D0)→(D11,D10)
81
[BMOV]
Operands:DX、DY、DM、DS、T、C、D、K
D5 D10
D6 D11 n=3
D7 D12
X1
BMOV D10 D9 K3
X2
BMOV D10 D11 K3
①
D10 D9
②
D11 D10
③
D12 D11
③
D10 D11
②
D11 D12
①
D12 D13
82
[FMOV]
Operands:DX、DY、DM、DS、T、C、D、K
S· D· n
Function X0
FMOV K0 D0 K10
and action
Move K0 to D0~D9. Copy a single data device to a range of destination
devices.
The data stored in the source device (S) is copied to every device within
the destination range, The range is specified by a device head address (D)
and a quantity of consecutive elements (n).
If the specified number of destination devices (n) exceeds the available
space at the destination location, then only the available destination
devices will be written to.
K0 K0 D0
K0 D1
K0 D2
K0 D3
K0 D4
n
K0 D5
K0 D6
K0 D7
K0 D8
K0 D9
83
[ZRST]
Operands:DX、DY、DM、DS、T、C、D、K
D1· D2·
X0
Function ZRST M500 M559 Zone reset bit device M500~M599。
D1· D2·
and action
ZRST C235 C255 Zone reset word device C235~C255
D1· D2·
D1 and D2 are assigned to be the same device, and D1 < = D2. When D1>D2, only reset
device in D1.
The instruction is 16 bits, but it’s available to use D1, D2 to assign 32 bits counter. But mix
assignment is not allowed. I.e. D1 is a 16 bits counter, D2 is a 32 bits counter, this condition
is not allowed.
X1 Reset M0
RST M0
Reset D0
RST D0
84
[SWAP]
Operands:DX、DY、DM、DS、T、C、D
Function
Low 8 bits and high 8 bits change when
it is 16 bits instruction.
and action
D10
High 8 bits Low 8 bits
D11 D10
High 8 bits Low 8 bits High 8 bits Low 8 bits
85
[XCH]
Operands:DX、DY、DM、DS、T、C、D、K
D1· D2·
X0
Function XCH D10 D11
and action The contents of the two destination devices D1 and D2 are swapped, i.e. the complete
word devices are exchanged.
X0
Extend M8160 SWAP
D11 D10
High 8 bits Low 8 bits High 8 bits Low 8 bits
When M8160 is ON and D1 and D2 is the same device, the low 8 bits and high 8 bits can be
exchanged.
The things of 32 bits instruction is the same.
When using the byte XCH (i.e.M8160 is ON) D1 and D2 must be the same device otherwise
a program error will occure and M8067 will be turned ON.
The extend function is the same with the action of SWAP instruction, usually use SWAP
instruction.
86
6-5.Data operation instructions
Mnemonic Function
ADD Addation
SUB Subtraction
MUL Multiplication
DIV Division
INC Increment
DEC Decrement
MEAN Mean
WAND Logic Word And
WOR Logic Word Or
WORX Logic Exclusive Or
CML Compliment
NEG Negation
87
[ADD]
Operands:DX、DY、DM、DS、T、C、D、K
and action
(D10)+(D12)→(D14)
Zero M8020
Borrow bit M8021
Flag
Carrier M8022
The data contained within the two source devices are combined and the total is stored in
the specified destination device. Each data’s highest bit is the sign bit, 0 stands for
positive,、1 stands for negative. All calculations are algebraic processed.(5+(-8)=-3)
If the result of a calculation is “0”, the “0” flag acts. If the result exceeds 323,767(16
bits limit)or 2,147,483,647(32 bits limit), the carry flag acts.(refer to the next page).
If the result exceeds -323,768(16 bits limit)or -2,147,483,648(32 bits limit), the
borrow flag acts(Refer to the next page)
When carry on 32 bits operation, word device’s low 16 bits are assigned, the device
following closely the preceding device’s ID will be the high bits. To avoid ID repetition,
we recommend you assign device’s ID to be even ID.
The same device may be used as a source and a destination. If this is the case then the
result changes after every scan cycle. Please note this point.
88
[SUB]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
X0
Function SUB D10 D12 D14
and action
(D10)—(D12)→(D14)
Zero M8020
Borrow bit M8021
Flag
Carrier M8022
appoint the soft unit’s content, subtract the soft unit’s content appointed by in the
format of algebra. The result will be stored in the soft unit appointed by . (5-(-8)=13)
The action of each flag, the appointment method of 32 bits operation’s soft units are both the
same with the preceding ADD instruction.
The relationship of the flag’s action and positive/nagetive data is the following chart.
89
[MUL]
Operands:DX、DY、DM、DS、T、C、D、K
The contents of the two source devices are multiplied together and the
result is stored at the destination device in the format of 32 bits. As in
the upward chart: when (D0)=8、(D2)=9,(D5,D4)=72。
The result’s highest bit is the symbol bit: positive(0)、negative(1).
When be bit unit, it can carry on the bit appointment of K1~K8. When
appoint K4, only the result’s low 16 bits can be obtained.
In 32 bits operation, when use bit device as the destination address, only
low 32 bits result can be obtained. The high 32 bits result can not be
obtained, so please operate again after transfer one time to the word device
Even use word device, 64 bits results can’t be monitored at once.
In this situation, float point data operation is recommended.
90
[DIV]
Operands:DX、DY、DM、DS、T、C、D、K
device’s content be the divisor, appoints the device and the next
one to store the result and the remainder.
《32 bits operation》
S1· S2· D·
X1
DDIV D0 D2 D4
When appoint the bit device as , the remainder will not obtained.
The highest bit of the result and remainder is the symbol bit (positive:0,
negative: 1). When any of the dividend or the divisor is negative, then
the result will be negative. When the dividend is negative, then the
remainder will be negative.
91
[INC] and [DEC]
Operands:DX、DY、DM、DS、T、C、D
D·
Function X0
INC D0 (D0)+1→(D0)
and action
On every execution of the instruction the device specified as the
D·
X1
DEC D0 (D0)-1→(D0)
X10
MOV K0 D0 0→D0
M1
X11
BCD C0[ D0] DY0 (C0[D0]) →(DY000)
BIN BCD
INC D0
(D0)+1→(D0)
Change the current value of counter C0~C9 to be BCD code and output
to DY000,
In advance, via reset and input X010 to clear D0.
Everytime when X011 gets, output the current value of C0, C1…C9
sequencially.
92
[MEAN]
Operands:DX、DY、DM、DS、T、C、D、K
S· D· n
Function X0
MEAN D0 D10 K3
and action
(D0) + (D1) + (D2)
(D10)
3
The value of all the devices within the source range is summed and then divided by
the number of devices summed, i.e. n.. This generates an integer mean value which
is stored in the destination device (D) The remainder of of the caculated mean is
ignored.
If the value of n is specified outside the stated range (1 to 64) an error is generated.
93
[WAND]、 [WOR] and [WXOR]
Operands:DX、DY、DM、DS、T、C、D、K
If use this instruction along with CML instruction , XOR NOT operation could
also be executed .
S1· S2· D·
X0
WXOR D10 D12 D14
94
[CML]
Operands:DX、DY、DM、DS、T、C、D
Function
S· D·
X0
CML D0 DY0
and action
A copy of each data bit within the source device is inverted and then moved to the
designated destination .
Each data bit in the source device is inverted and sent to the destination device. If use
constant K in the source device, it can be auto convert to be binary.
It’s available when you want to inverted output the PLC’s output
X0
M0 The sequencial control
instruction in the left could be
X1
M1 denoted by the following CML
instruction.
X2
M2 M8000
CML DX0 DM0
X3
M3
X17
M17
95
(NEG)
Operands:DX、DY、DM、DS、T、C、D
D·
Function X0
NEG D10 (D10) +1 (D10)
and action
The bit patten of the selected device is inverted, I.e. any occurrence of a “1’ becomes a “0”
and any occurrence of “0” becomes “1”, when this is complete, a further binary 1 ia added to
the bit patten. The result is the total logic sigh change of the selected devices contents.
When using continually executing instructions, then this instruction will be executed in every
scan cycle.
96
6-6.Shift instructions
Mnemonic Function
SHL Arithmetic shift left
SHR Arithmetic shift right
LSL Logic shift left
LSR Logic shift right
ROL Rotation left
ROR Rotation right
SFTL Bit shift left
SFTR Bit shift right
WSFL Word shift left
WSFR Word shift right
97
[SHL] and [SHR]
Operands:DX、DY、DM、DS、T、C、D
and action
NOTE:
In every scan cycle, loop shift left/right action will be executed
The things of 32 bits is the same.
98
[LSL] and [LSR]
Operands:DX、DY、DM、DS、T、C、D
and action
NOTE:
In every scan cycle, loop shift left/right action will be executed
The things of 32 bits is the same.
99
[ROL] and [ROR]
Operands:DX、DY、DM、DS、T、C、D
The bit patten of the destination device is rotated n bit places to the left on
Function every operation of the instruction
《Rotation shift left》
and action
As there is a carry flag in the rotation circuit, so if drive M8022 before executing the
rotation instruction, it could be sent to the destination address.
Please note that rotation left/right action is executed in every scan cycle.
The situation of 32 bits is the same.
100
[SFTL] and [SFTR]
Operands:DX、DY、DM、DS、T、C、D
① M 3~M 0→overflow
② M 7~M 4→M3~M0
③ M11~M 8→M7~M4
④ M15~M12→M11~M8
⑤ X 3~X 0→M15~M12
101
[WSFL] and [WSFR]
Operands:DX、DY、DM、DS、T、C、D
① D25~D22→overflow
② D21~D18→D25~D22
③ D17~D14→D21~D18
④ D13~D10→D17~D14
⑤ D 3~D 0→D13~D10
① D13~D10→overflow
② D17~D14→D13~D10
③ D21~D18→D17~D14
④ D25~D22→D21~D18
⑤ D 3~D 0→D25~D22
102
6-7.Data convertion
Mnemonic Function
WTD Single word integer converts to double word integer
FLT 32 bits integer converts to float point
FLTD 64 bits integer converts to float point
INT Float point converts to integer
BIN BCD convert to binary
BCD Binary converts to BCD
ASC Hex. converts to ASCII
HEX ASCII converts to Hex.
103
[WTD]
Operands:DX、DY、DM、DS、T、C、D
Function S· D·
X0 (D0) → (D11,D10)
WTD D0 D10
Single word Double word
and action
0 or 1 D0
D11 D10
High bits Low bits
104
[FLT] and [FLTD]
Operands:DX、DY、DM、DS、T、C、D
《16 bits》
Function S· D·
X0
FLT D10 D12
and action
(D10) → (D13,D12)
BIN integer Binary float point
《32 bits》
S· D·
X0
DFLT D10 D12
(D11,D10)→ (D13,D12)
BIN integer Binary float point
《64 bits》
S· D·
X0
FLTD D10 D14
(D13,D12,D11,D10)→ (D17,D16,D15,D14)
BIN integer Binary float point
Convert BIN integer to binary float point. As the constant K、H will auto convert by the float
operation instruction, so this FLT instruction can’t be used.
The instruction is contrary to INT instruction.
105
[INT]
Operands:DX、DY、DM、DS、T、C、D
《16 bits》
Function S· D·
X0
INT D10 D20
and action
(D11,D10) → (D20)
《32 bits》
S· D·
X0
DINT D10 D20
(D11,D10) → (D20)
The binary source number is converted into an BIN integer and stored at the destination
device. Abandon the value behind the decimal point.
This instruction is contrary to FLT instruction.
When the result is 0, the flag bit is ON。
When converting, less than 1 and abandon it, zero flag is ON.
16 bits operation:-32,768~32,767
32 bits operation:-2,147,483,648~2,147,483,647
106
BCD converts to [BIN]
Operands:DX、DY、DM、DS、T、C、D
S· D·
Function X0
BIN D10 D0
and action
Data’s bound:0~9,999 or 0~99,999,999 is valid.
Convert and move instruction of Source(BCD)→ destination(BIN)
107
Binary converts to BCD [BCD]
Operands:DX、DY、DM、DS、T、C、D
When use BCD instruction, if the converted BCD number exceeds the
operational ranges of 0 to 9999(16 bits operation) and 0 to 99999999 (32
bit operation) an error will occur.
This instruction can be used to output data directly to a seven segment
display.
108
Hex. converts to ASCII [ASCI]
Operands: DX、DY、DM、DS、T、C、D
Convert each bit of source’s (S) Hex. format data to be ASCII code, move separately to the
high 8 bits and low 8 bits of destination (D). The convert alphanumeric number is assigned
with n.
(D) is low 8 bits, high 8 bits, store ASCII data.
n
D K1 K2 K3 K4 K5 K6 K7 K8 K9
D200 down [C] [B] [A] [0] [4] [3] [2] [1] [8]
D200 down [C] [B] [A] [0] [4] [3] [2] [1]
D201 down [C] [B] [A] [0] [4] [3] [2]
D201 up [C] [B] [A] [0] [4] [3]
D202 down [C] [B] [A] [0] [4]
D202 up [C] [B] [A] [0]
D203 down [C] [B] [A]
D203 up [C] [B]
D204 down [C]
109
ASCII converts to [HEX]
Operands:DX、DY、DM、DS、T、C、D
Convert the high and low 8 bits in source to HEX data. Move 4 bits every time
to destination. The convert alphanumeric number is assigned by n.
D200 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0
41H→[A] 30H→[0]
D201 0 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0
43H→[C] 42H→[B]
D202 0 0 0 0 1 0 1 0 1 0 1 1 1 1 0 0
0 A B C
110
6-8.Floating Operation
Mnemonic Function
ECMP Float Compare
EZCP Float Zone Compare
EADD Float Add
ESUB Float Subtract
EMUL Float Multiplication
EDIV Float Division
ESOR Float Square Root
SIN Sine
COS Cosine
TAN Tangent
111
[ECMP]
Operands:DX、DY、DM、DS、T、C、D、K
(D11,D10) : (D21,D20)→M0,M1,M2
Function
S1· S2· D·
X0
and action ECMP D10 D20 M0
M1 (D11,D10) = (D21<D20)
The status of the destination devicse will be kept even if the ECMP instruction is deactivated.
The binary float data of S1 is compared to S2. The result is indicated by 3 bit devices
specified with the head address entered as D.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X0
ECMP K500 D100 M10
(K500)∶(D101,D100)→M10,M11,M12
112
[EZCP]
Operands:DX、DY、DM、DS、T、C、D、K
M4 (D21,D10)≤ (D1,D0)≤(D31,D30) ON
The status of the destination devicse will be kept even if the EZCP instruction is deactivated.
The data of S1 is compared to the data of S2. The result is indicated by 3 bit devices specified
with the head address entered as D.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X0
EZCP K10 K2800 D5 M0
(K10)∶[D6,D5]∶(K2800)→M0,M1,M2
Please set S1<S2, when S2>S1, see S2 as the same with S1 and compare them.
113
[EADD]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Function X0
EADD D10 D20 D50
and action
(D11,D10) + (D21,D20) → (D51,D50)
The floating point values stored in the source devices S1 and S2 are algebraically added and
the result stored in the destination device D.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X1
EADD D100 K1234 D110
The same device may be used as a source and as the destination. If this is the case then,on
continuous operation of the EADD instruction, the result of the prevous operation will be
used as a new source value and a new result calculated. This will happen every program scan
unless the pulse modifier or an interlock program is used.
114
[ESUB]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Function X0
ESUB D10 D20 D50
and action
(D11,D10) - (D21,D20) → (D51,D50)
The floating point value of S2 is subtracted from the floating point value of S1 and the result
stored in destination device D.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X1
ESUB K1234 D100 D110
The same device may be used as a source and as the destination. If this is the case then,on
continuous operation of the EADD instruction, the result of the prevous operation will be
used as a new source value and a new result calculated. This will happen every program scan
unless the pulse modifier or an interlock program is used.
115
[EMUL]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Function X0
EMUL D10 D20 D50
and action
(D11,D10)×(D21,D20)→(D51,D50)
The floating point value of S1 is multiplied with the floating point value point value of S2.
The result of the multiplication is stored at D as a floating point value.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X1
EMUL K100 D100 D110
116
[EDIV]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Function X0
EDIV D10 D20 D50
and action
(D11,D10)÷(D21,D20)→(D51,D50)
The floating point value of S1 is divided by the floating point value of S2. The result of the
division is stored in D as a floating point value. No remainer is calculated.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X1
EDIV D100 K100 D110
If S2 is zero then a divide by zero error occurs and the operation fails.
117
[ESOR]
Operands:DX、DY、DM、DS、T、C、D、K
S· D·
Function X0
ESOR D10 D20
and action
(D11,D10) →(D21,D20)
A square root is performed on the floating point value in S the result is stored in D.
If a constant K or H used as source data, the value is converted to floating point before the
addition operation.
X1 (K1024)→(D111,D110)
ESOR K1024 D110
118
[SIN]
Operands:DX、DY、DM、DS、T、C、D、K
S· D·
Function X0
SIN D50 D60
and action
(D51,D50) → (D61,D60)SIN
RAD value(angle×Π/180)
S· D51 D50
Assign binary float point value
119
[COS]
Operands:DX、DY、DM、DS、T、C、D、K
S· D·
Function X0
COS D50 D60
and action
(D51,D50)RAD → (D61,D60)COS
RAD value(angle×Π/180)
S· D51 D50
Assign binary float point value
D· D61 D60
SIN value
Binary float point
120
[TAN]
Operands:DX、DY、DM、DS、T、C、D、K
S· D·
Function X0
TAN D50 D60
and action
(D51,D50)RAD → (D61,D60)TAN
RAD value(Angle×Π/180)
S· D51 D50
Assign binary float point value
121
6-9.Clock operation
Mnemonic Function
TCMP Time Compare
TZCP Time Zone Compare
TADD Time Add
TSUB Time Subtract
TRD Read RTC data
TWR Set RTC data
122
[TCMP]
Operands:DX、DY、DM、DS、T、C、D、K
and action
The status of the destination devices is kept, even if the TCMP instruction is deactivated.
compared to the time value in the 3 data devices specified by the head address . The
S1· :Hour
S2· :Minute
S3· :Second
S· :Hour
S· +1 :Minute
S· +2 :Second
123
[TZCP]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· S· D·
X0
and action TCZP K10 K20 D0 M0
S·
M0 D20(时) D0(时)
D21(分) > D1(分) 时ON
D22(秒) D2(秒)
M1 D20(时) D0(时) D30(时)
D21(分) = D1(分) = D31(分) 时ON
D22(秒) D2(秒) D32(秒)
M2 D0(时) D30(时)
D1(分) > D31(分) 时ON
D2(秒) D32(秒)
The status of the destination devices is kept, even if the TZCP instruction is deactivated.
, and represent time values. Each specifying the head address of 3 data
: Assign the compare time’s lower limit with the format of “Hour”,
“Minute” and “Second”.
: Assign the compare time’s lower limit with the format of “Hour”,
: Assign the time data with the format of “Hour”, “Minute” and
“Second”.
124
[TADD]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Fnction and X0
TADD D10 D20 D30
action
(D10,D11,D12)+(D20,D21,D22)→(D30,D31,D32)
S1 S2 D
D10 (Hour) D20 (Hour) D30 (Hour)
D11 (Minute) D21 (Minute) D31 (Minute)
+
D12 (Second) D22 (Second) D32 (Second)
Each of S1, S2 and D specify the head address of 3 data devices to be used a time value. The
time value in S1 is added to the value in S2, the result is stored to D as a new time value.
If the addition of the two times results in a value greater than 24 hours, the value of the result
is the time remaining above 24 hours. When this happens the carry flag M8022 is set ON.
S1 S2 D
18 (Hour) 10 (Hour) 4 (Hour)
10 (Minute) 20 (Minute) 30 (Minute)
+
30 (Second) 5 (Second) 35 (Second)
When the result is 0(0 Hour 0 Minute 0 Second),Set zero flag ON.
125
[TSUB]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
Function X0
TSUB D10 D20 D30
and action
(D10,D11,D12)-(D20,D21,D22)→(D30,D31,D32)
S1 S2 D
D10 (Hour) D10 (Hour) D10 (Hour)
D11 (Minute) _ D11 (Minute) D11 (Minute)
=
D12 (Second) D12 (Second) D12 (Second)
10 hour 20 min. 30 sec. 3 hour 20 min. 10 sec. 7 hour 0 min. 20 sec.
Each of S1, S2 and D specify the head address of 3 data devices to be used a time value. The
time value in S1 is subtracted from the time value in S2, the result is stored to D as a new
time.
If the subtraction of the two times results in a value less than 00:00:00 hours, the value of the
result is the time remaining below 00:00:00 hours. When this happens the borrow flag M8021
is set ON.
S1 S2 D
10 (Hour) 18 (Hour) 4 (Hour)
20 (Minute) _ 10 (Minute) 30 (Minute)
=
5 (Second) 30 (Second) 35 (Second)
10 hour 20 min. 5 sec. 18 hour 10 min. 30 sec. 4 hour 30 min. 35 sec.
When the result is 0(0 hour 0 min. 0 sec.), zero flag set ON.
126
[TRD]
Operands:DX、DY、DM、DS、T、C、D、K
127
[TWR]
Operands:DX、DY、DM、DS、T、C、D、K
S·
Function X0
TWR D10 The 7 data devices specified with the
head address S are used to set a new
and action
current value of the real time clock.
Write the set clock data into PLC’s real time clock.
In order to wirte real time clock, the 7 data devices specified with the head address S should
be set.
This instruction removes the need to use M8015 during real time clock setting. When setting the
time it is a good idea to set the source data to a time a number of minutes ahead and then drive the
instruction when the real time reaches this value.
128
7.High speed count and pulse output
This chapter, we’ll tell XC series PLC’s high speed count and pulse output function .
129
7-1.Interior high speed counter’s No. and function
High speed Interior high speed counter’s No. is in the following table. They’re
counter’s allocatedin the input X000~X021 according to the counter’s No. thay
No. cannot be used repeatedly.
The input No.s which are not used as high speed counter can be used as
ordinal input relay in the sequencial control
[U]:Increase count input;[D]:decrease count input;[A]:A phase
input;[B]:B phase input
High speed counter executes according to the format in the upward table and
Function
to the special inputs. Go on high speed action according to the interrupt
disposal. It’s independent with the PLC’s scan cycle.
130
7-2.Using method of single direction high speed counter
Action Example
When X032 activates, C600 is
ON and count the ON/OFF status
X31
RST C600 of input X000
When X032 activates, execute
X32 RST instruction.
C600 K5
Single direction single input
X31
C620 D0(D1) execute decrease count via input
OFF→ON of X001.
X30
RST C624
131
7-3.Using method of double high speed counter
double input
X30
RST C630 When X032 is ON, C630 count
the action of the input X000(A
X31 phase) 、 X001(B phase) via
C630 K10
interruption.
C630 If X030 is ON, then execute RST
Y002
instruction reset
directions
The output of double phase encoder is A phase and B phase with 90
degrees phase difference. So, the high speed counter will automatic
double input increase/decrease count as in the following chart:
This type of counter acts as a counter with increment by one time.
132
The up line acts when roll The down line acts
forward when roll backward
7-4. [PLSY]
Operands:DX、DY、DM、DS、T、C、D、K
S1· S2· D·
M0
Function PLSY K30 D1 Y0
M8190
and action RST M0
When M000 is ON, PLSY instruction output 30Hz pulse at Y000, the number is
assigned by D001. If set the pulse number to be 0, it means send unlimit number of
pulses. Then set M8190 ON. Set coil M8190 OFF when the specified number of
pulses has been completed. Also reset M000.
133
7-5. [PLSR]
Operands:DX、DY、DM、DS、T、C、D、K
M8170
and action RST M0
Assign the output pulse’s Y number, only Y000 and Y001 is available.
When M000 is ON, PLSR instruction starts to output pulse. Generate the assigned pulse
number according to the assigned acceleration/deceleration time, highest frequency. If want
to output with a certain frequency, you can set acceleration/deceleration time to be 0. If set
the pulse number to be 0, it can send out unlimit number of pulses. Then set coil M8170 ON.
When the pulse number reach the set value, stop pulse outputting. Coil M8170 set OFF,
reset M000, see the following chart:
M0
加减速 加减速
时间ms 时间ms
M8170
134
8.Application program example
135
8-1.Simply application of pulse output
E.g.:The following is the program which send alternate high pulse and low pulse.
Each parameter:
Step motor’s parameter:step square angle =1.8 degree / step,subsection number
=40,the totalpulse number after rotate a round is 8000.
High frequency pulse:Highest frequency 100KHz,the total pulse number 24000
(3 rounds)
Low frequency pulse:The lowest frequency 10KHz,the total pulse number 8000
(1 round)
Ladder program:
136
Program description:
When PLC changes from STOP to RUN,M8002 gets once scan,set the high frequency
pulse’s parameter into D200、D210,set the speedup/speed-down time into D220,and set M0.
The motor starts to speedup rotate 3 rounds with high frequency, set coil M8170 at the same
time. The motor rotates 3 rounds and speed-down till stop. Coil M8170 reset, then reset M0,
set M1, inverse the state of M10, set the low frequency pulse’s parameter into D200、D210.
The counter starts 2 seconds delay, reset M1 when reach the time. Reset M0 again, the motor
starts to rotate with low frequency, after finish running, start to run with high frequency. Loop
to run with alternate high frequency and low frequency.
List program
LD M0
DPLSR D200 D210 D220 Y0
LDF M8170
RST M0
SET M1
ALT M10
LDF M8170
OR M8002
DMOV K100000 D200
DMOV K24000 D210
MOV K100 D220
LD M8002
SET M0
LDP M10
DMOV K10000 D200
DMOV K8000 D210
LD M1
OUT T0 K20
LD T0
RST M1
SET M0
137
9.Appendix
138
9-1.List of special auxiliary relay、special data register
For the special soft units’ kind and their function, please see the following description.
PC status(M)
Initial pulse a
M8002
contact
Initial pulse b
M8003
contact
Take action when any of M8060~M8067 is ON(Except
M8004 Errors occur
M8062)
M8005 Battery low Take action when the battery is abnormal low
139
PC status(D)
140
Clock(M)
Symbol(M)
M8027 PR mode
M8029
141
Clock(D)
ID Function Description
D8010 Current scan cycle 0.1s as the unit
Minimum value of scan
D8011 0.1s as the unit
time
Maximum value of scan
D8012
time(0.1s as unit)
D8013 Second(Hour) 0~59
Symbol(D)
ID Function Description
D8020 Enter filter time Enter filter value 0~50(Initial value is 10ms)
D8021
D8022
D8023
D8024
D8025
D8026
D8027
D8028
D8029
142
PC mode(M)
ID Function Description
After drive M8030, even battery too low, the
M8030 Battery LED lamp display
indicate lamp on PC panel won’t light
M8031 Not rententive register clear When drive this M, the current value of Y,M,S,TC’s
M8032 Rententive register clear ON/OFF image memory and T,C,D will be cleared.
143
PC mode(D)
ID Function Description
D8030
D8031
D8032
D8033
D8034
D8035
D8036
D8037
D8038
144
Step ladder(M)
ID Function Description
When M8040 is driven, transfer among the
M8040 Forbid transfer
forbidden status
M8041
M8045 All outputs reset forbidden All output reset forbidden when mode switch
In the action of M8047, act when any of
M8046 STL status active
S900~S999turns to be ON.
M8047 STL monitor effective When drive this M, D8040~D8047 are valid
In the action of M8049, act when any of
M8048 Signal alarm is active
S900~S999turns to be ON.
M8049 Signal alarm is active When drive this M, the action of D8049 is valid
145
Interrupt(M)
ID Function Description
M8050
I00□
M8051
I10□ After EI operation, even allow interruption, but
M8052 when this M takes action, the correspond input
I20□ interruption can’t take action singlely.
M8053 E.g.:When M8050 is ON, forbid to interrupt I00
I30□
M8054 port
I40□
M8055
I50□
M8056
I60□ After EI operation, even allow interruption, but
M8057
I70□
when this M takes action, the correspond input
M8058 interruption can’t take action singlely.
I80□
Step ladder(D)
ID Function Description
D8040 ON status ID 1
D8041 ON status ID 2
D8042 ON status ID 3
Save the status’s minimum ID among S0~S899 into
D8043 ON status ID 4 D8040, save the next minimum ID into D8041, then
D8044 ON status ID 5 save 8 points device like this, save the maximum
device into D8047
D8045 ON status ID 6
D8046 ON status ID 7
D8047 ON status ID 8
146
Error check(M)
ID Function Description
M8060 I/O constitution error
147
Error check(D)
ID Function Description
D8060 The start ID of I/O error
D8069
D8071
D8072
148
Communication(M)
ID Function Description
M8120
ID Function Description
M8130
149
ID Function Description
M8140
150
Communication(D)
ID Function Description
D8120
D8121
RS232 transfers data’s left
D8122
number
D8123 RS232 receives data’s number
D8124 Serial
D8125 Port
1
D8126
0: Hardware error 10:No start symbol
D8127 Communication error codes 8: CRC check error 11:No end symbol
9: Bureau ID error
D8128
D8129
ID Function Description
D8130
D8131
RS232 transfers data’s left
D8132
number
D8133 RS232 receives data’s number
D8134 Serial
D8135 Port
2
D8136
0: Hardware error 10:No start symbol
D8137 Communication error codes 8: CRC check error 11:No end symbol
9: Bureau ID error
D8138
D8139
151
ID Function Description
D8140
D8141
RS232 transfers data’s left
D8142
number
D8143 RS232 receives data’s number
D8144 Serial
D8145 Port
3
D8146
0: Hardware error 10:No start symbol
D8147 Communication error codes 8: CRC check error 11:No end symbol
9: Bureau ID error
D8148
D8149
152
High speed count(M)
Counter’s
ID Function Description
No.
Counter’s
ID Function Description
No.
153
Pulse output(M)
High
ID frequency Function Discription
pulse No.
154
Low
ID frequency Function Discription
pulse No.
M8191
M8193
M8195
M8197
M8199
……
M8237
Address Counter’s
Function Discription
No. No.
Sequencial / inverse count
M8238 C300 1 is plus count,0 is minus count
control
……
155
High speed count(D)
156
ID Counter’s Function Discription
No.
The current segment (means
D8160 C620
the No.n segment)
D8161 C622 The current segment
Pulse output(D)
157
High
ID frequency Function Discription
pulse No.
Accumulate low 16 bits
D8170 PULSE_1
pulse number
Accumulate high 16 bits
D8171
pulse number
The current segment (means
D8172
the No.n segment)
Accumulate low 16 bits
D8173 PULSE_2
pulse number
Accumulate high 16 bits
D8174
pulse number
The current segment (means
D8175
the No.n segment)
Accumulate low 16 bits
D8176 PULSE_3
pulse number
Accumulate high 16 bits
D8177
pulse number
The current segment (means
D8178
the No.n segment)
Accumulate low 16 bits
D8179 PULSE_4
pulse number
Accumulate high 16 bits
D8180
pulse number
The current segment (means
D8181
the No.n segment)
Accumulate low 16 bits
D8182 PULSE_5
pulse number
Accumulate high 16 bits
D8183
pulse number
The current segment (means
D8184
the No.n segment)
158
Low
ID frequency Function Discription
pulse No.
Accumulate low 16 bits
D8190 PULSE_1
pulse number
Accumulate high 16 bits
D8191
pulse number
Accumulate low 16 bits
D8192 PULSE_2
pulse number
Accumulate high 16 bits
D8193
pulse number
Accumulate low 16 bits
D8194 PULSE_3
pulse number
Accumulate high 16 bits
D8195
pulse number
Accumulate low 16 bits
D8196 PULSE_4
pulse number
Accumulate high 16 bits
D8197
pulse number
Accumulate low 16 bits
D8198 PULSE_5
pulse number
Accumulate high 16 bits
D8199
pulse number
……
Accumulate low 16 bits
D8236 PULSE_24
pulse number
Accumulate high 16 bits
D8237
pulse number
159
Any problems please contact with:
XINJE Electronic Co.,Ltd.
Website: www.xinje.com
E-mail: sale@xinje.com
MSN: loving-fiona@hotmail.com
160