XC BD Manual
XC BD Manual
XC BD Manual
Operate Manual
Catalog
1. CONFIGURE METHOD OF BD BOARD .................................................................................................. 1
2. ANALOG INPUT AND TEMPERATURE SAMPLING BOARD XC-2AD2PT-BD ............................... 2
3. ANALOG I/O EXPANSION BD BOARD XC-2AD2DA-BD...................................................................... 9
4. COMMUNICATION EXTEND CARD XC-COM-BD ............................................................................. 13
5. XC-SD-BD FOR SD CARD ......................................................................................................................... 15
6. ETHERNET EXPANSION BOARD XC-TBOX-BD ................................................................................ 27
7. WEIGHING EXPANSION BD XC-WT-BD .............................................................................................. 37
8. FIBER OPTICAL COMMUNICATION EXPANSION BD XC-OFC-BD ............................................. 41
9. PROFIBUS EXPANSION BD BOARD XC-PBOX-BD............................................................................ 45
ii
Graph1
Graph2
2General Specification
Item
Voltage input
Temperature input
Temperature testing
bound
-100~350
Distinguish ratio
0.15mV10/16383
0.1
0~16383
-1000~3500
Colligate precision
Convert time
15ms4 channels
0~K4095
No-load defaulted
value
3500
Input characteristic
Insulation
I/O engross
0 I/O (Since it is operated via data register, so it is not limited by main PLCs
standard max. control points)
COM4
Y13
Y15
Y11
Y12
Y14
Y10
Y2
Y0
COM0
0V
24V
PT100
V+
VV+
VPT100
PORT1
FG
PORT2
COM
COM
X0
X1
COM1
X2
Y1
X3
COM2
X4
Y3
X5
X6
Y4
X7
Y5
X10
COM3
Y6
Y7
ERR
RUN
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
0 1 2 3 4 5
6 7
X11
X12
X13
X14
X15
X16
X17
X20
X21
Channels
ID
AD
signal/temperature
PID
output
value
The set
data/temp
-erature
0CH
ID1000
ID1004
QD1000
1CH
ID1001
ID1005
QD1001
2CH
ID1002
ID1006
QD1002
3CH
ID1003
ID1007
QD1003
Kp
Ki
Kd
Diff
Death
QD1004
QD100
5
QD1006
QD1007
QD1008
QD1009
QD101
0
QD1011
QD1012
start/sto
-p
Y1000
Y1001
Y1002
Y1003
Description
10CH1CH are AD input channels; 2CH3CH are Pt input channels.
2Kp: proportion parameters; Ki: integral parameter; Kd: differential parameters; Diff: control bound
Control bound Diffin the assigned bound, carry on PID control, beyond that bound, dont carry on
that control
Start signal (Y): if Y is 0, close PID control, if Y is 1, start PID control.
Death bound Death: it means the current PID control value compares with the preceding PID
control value, if the difference between them is less than the set bound of death,
the module will abandon the current PID control value, send the preceding PID
control value to the PLC main unit.
FD8306
HOOOO
0CH
1CH
2CH
3CH
2Each channels working mode is assigned by 4 bits in the correspond register. Each bits definition is shown
below
Register FD8306
Channel 1
Bit7
Bit6
Channel 0
Bit5
001/2 sieve
01 not sieve
101/3 sieve
111/4 sieve
Bit4
0:0~10V
1:0~5V
-
Bit3
Bit14
Bit0
0:0~10V
1:0~5V
-
Channel 2
Bit13
001/2 sieve
01not sieve
101/3 sieve
111/4 sieve
Bit1
001/2 sieve
01not sieve
101/3 sieve
111/4 sieve
Channel 3
Bit15
Bit2
Bit12
Bit11
001/2 sieve
01not sieve
101/3 sieve
111/4 sieve
Bit10
Bit9
Bit8
5Control specification
1Usage of the four parameters: proportion parameterKpintegral parameterKidifferential
parameterKdcontrol proportion bandDiff.
a.) Parameter P is proportion parameter, mainly reflect systems difference, as soon as the difference
occurs, carry on control to decrease the difference.
b.) Parameter I is integral parameter, mainly used to remove the whisht difference, improve the
systems no difference degree.
c.) Parameter D is differential parameter, mainly used to control signals changing trend, decrease the
shake of system.
Temperature control bound means: in the assigned bound, carry on PID control, beyond this bound,
dont go on PID control.
2 Control specification
The PID regulate bound isQD-DiffQD+Diffwhen the temperaure is below QD-Diff,the
controller heat up ,when the temperature is higher than QD+Diffthe controller stop heating.
Temperature-control curve of PID
7Program
E.g.1real time read data of channel 0, and carry on PID adjustment of channel 0.
M8000
MOV
K800
QD1000
MOV
K30
QD1004
MOV
K5
QD1005
MOV
K500
QD1006
MOV
K150
QD1007
MOV
K200
QD1008
MOV
ID1000
D10
MOV
ID1004
D1000
M8
Y1000
END
M8000
MOV
K800
QD1002
MOV
K30
QD1009
MOV
K5
QD1010
MOV
K500
QD1011
MOV
K150
QD1012
MOV
ID1006
D1000
MUL
D1000
K200
D1100
DDIV
D1100
K4095
D1200
T200
T200
M10
T200
D1200 D1100
K0
K200
Y3
Y1000
END
Start/stop channel 2
2. General specifications
Item
Voltage input
Current output
Resolution
Integrated precision
Transformation time
15ms2 channel
3ms/1 channel
0~K1023
Insulation
I/O occupy
0 point (the module operate the data via PLC registers, it will not be limited by PLC
max I/O points)
Installation
position
FG
COM
COM
X0
X1
X2
X3
X4
X5
X6
X7
X10
X11
X13
X12
X14
X15
X16
X17
X20
X21
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
PORT1
PORT2
RUN
ERR
0 1 2 3 4 5
6 7
24V
0V
COM0
B
Y0
COM1
COM2
Y1
Y3
Y2
Y5
Y4
Y6
COM3
Y10
Y7
COM4
Y13
Y15
Y11
Y12
Y14
COM4
Y13
Y15
Y11
Y12
Y14
Y10
Y2
COM0
B
0V
24V
VI0+
VI0VI1+
VI1AO0+
AO0AO1+
AO1-
PORT1
FG
COM
PORT2
COM
Y0
X0
X1
COM1
X2
Y1
X3
COM2
X4
Y3
X5
X6
Y4
X7
Y5
X10
COM3
Y6
Y7
ERR
RUN
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
0 1 2 3 4 5
6 7
X11
X12
X13
X14
X15
X16
X17
X20
X21
(2) Connection:
AD signal
PID output
Set value
0CH
ID1000
ID1002
Y1000
QD1002
1CH
ID1001
ID1003
Y1001
QD1003
Channel
DA signal
0CH
QD1000
1CH
QD1001
Notes:
1) 0CH, 1CH are AD input channels; 2CH, 3CH are DA output channels.
2) Kp: proportion, Ki: integral, Kd: differential, Diff: control range
Diff: to do PID control in appointed area.
PID control bit (Y): Y=0, PID control is unable; Y= 1, PID control is able.
Death: to compare the former and the current PID control value, if the difference is less than death area,
the module will abandon the current PID control value and send the former value into the PLC.
5. Working mode
FD8306
HOOOO
0CH
1CH
2CH
3CH
2) One register has 16 bits, every 4 bits can decide one channels working mode.
Register FD8306:
Channel 1
Bit7
Bit6
001/2 filter
01no filter
101/3 filter
111/4 filter
Channel 0
Bit5
Bit4
00~10V
10~5V
-
Bit3
Bit2
001/2 filter
01no filter
101/3 filter
111/4 filter
Bit14
-
00~10V
10~5V
Channel 2
Bit13
-
Bit0
Channel 3
Bit15
Bit1
Bit12
00~20mA
14~20mA
Bit11
Bit10
-
Bit9
-
Bit8
00~20mA
14~20mA
6. AD transformation diagram
The relationship between input analog and transformed digital data:
0~5V analog input
Note: If the output data is more than K1023, D/A result will be 20mA.
7. Example
Read the real time data of 2 channels; write the data in 2 channels.
Explanation:
M8000 is always ON when PLC is running.
When PLC is running, it writes the channel 0 data of model 1to register D0 of PLC.
Module 1
PLC
Channel 1 data
D1
Channel 0
D10
Channel 1
D11
The place to
install the card
COM
FG
COM
X1
X0
X3
X2
X5
X4
X7
X6
X11
X10
X13
X12
X15
X14
X17
X16
X21
X20
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
PORT1
PORT2
RUN
ERR
0 1 2 3 4 5
6 7
0V
24V
2) Connection:
COM0
B
COM1
Y0
COM2
Y1
Y3
Y2
Y5
Y4
Y6
COM3
Y10
Y7
COM4
Y13
Y15
Y11
Y12
Y14
Notes:
(1) TXD, RXD, GND are RS232 communication port.
(2) A, B are RS485 communication port.
(3) RS232 and RS485 can not be used at the same time.
2. Explanation
1) SD card
XC-SD-BD has not been installed the SD card when out of factory, user needs to prepare
MicroSD ( TF card ), the card memory should be not more than 2GB.
Before install the SD card in the XC-SD-BD, please use card reader to format the SD
to FAT16 in the PC.
SD card supports hot plug, but please wait for at least 5 second after hot plug.
2) The file standard in SD card
SD card supports .csv file, these file should be saved in the root directory.
All the .csv files must be named as dataxxx.csv, xxx is the file index number, the range is 001~999, when
xxx is less than 100, add 0 from the left side. For example, if file index number is 1, the file name will be
data001.csv.
3) Data format and type in SD card
SD card supports 4 kinds of data type: single word (W), double word (DW), float(Fm.n), character (Sx).
The data range and space:
Data type
DW
Fm.n(m<=15,n<=15)
Sx(x<=16)
Data range
-32768
32767
-2147483648
2147483647
-18446742974197923840
18446742974197923840
Character occupied
in SD card
11
m+1+n
2*x
WORD number
NOTE:
(1) When the real data length is less than the character length in SD card, add space from the left side. For
example, single word data 454, data type is W, character length is 6, so add 6-3 = 3 spaces. The real
number is 454. ( is space ).
(2) When Fm.n is negative number, the sign bit occupies one character. For example, F5.3, after writing the
number -12345.123 in SD card, the lowest valid bit will be deleted; the number will become -12345.12.
(3) The x of character Sx means word length, but not character length.
3. Operation for the SD
XC series PLC can connect SD card, write and read the data from the SD card.
1) Read the SD card
After installing the SD card successfully, PLC can read the SD card data. Use FROM instruction to read the
appointed data block in .csv file of SD card.
Explanation:
(1) In the data002.csv file, the first line is data type definition; this line is included in the row address.
(2) The number 2471 is W type, -191280 is DW type, so totally 3 words, the same as the read out word
numbers.
2) Write SD card
By TO instruction, PLC can write the data into appointed location in .csv file of SD card. Please note that user
must build a .csv file in the SD card at first, and define the write in data type in the .csv file. If not, the ERROR
LED of XC-SD-BD will be always ON.
Write the appointed data block of PLC in the SD card .csv file. Unit is word.
S1: K7 means the object is XC-SD-BD.
S2~S2+2: appoint the .csv file index number, the column and row address of data block. Operand is D.
In the instruction, D100 is the index number of the .csv file
D101 is the column address of the data block
D102 is the row address of the data block
S3: the word numbers need to write in the SD card. Operand is D.
S4: the PLC register head address need to write into the SD card. Operand is D.
In the instruction, if D100=1, D101=1, D102=2, D110=5, D120=365, D121=10235465, D123=26456. So the
data will be written in data001.csv is in the red color range:
NOTE: the write in data type should be the same as the .csv file data type. If not, the ID1000 will be error.
3) Notice
Character type Sx
A. Sx supports visible character such as letter, number, the same as ASCII code [32,126], but not support
comma ,.
B. Invisible character, Sx supports end character.
Reading and writing word quantity limitation
A. Limited by the RAM capacity of PLC, the reading and writing word quantity should be less than 50.
B. Can not read part of the data. For example, define the data type to be W, DW, S8, if the reading word
quantity is 10 and read from the first column W, the S8 will not be read completely, ID1000 will return
error value. When the program found that the parameters were wrong, it will not read and write the SD
card.
C. When reading or writing data, if one row is over, it will jump to the first column of the next row.
D. .csv file can not have space between data. When writing data into SD card, the address must be
continuous, if not the ID1000 will have error code 20.
E. When reading the data, the address can not over the last data address, if not the ID1000 will produce error
code.
Default operation file
To save the time, after installing the SD card, it will read the data001.csv file, if there is no this file in the SD
card, ID1000 will return code 2. But this will not affect the following operation for data001.csv file.
4. SD card state information ID1000
The SD card state information will show in ID1000. Especially when SD card has error, it can check the error
code in ID1000 to find the solution.
ID1000
Meaning
Reasons
Successful
Initialization failure
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
10
Reserved
11
FAT16 error
12
Reserved
13
Reserved
14
Reserved
15
Reserved
16
Reserved
17
Reserved
18
Reserved
19
20
21
22
23
24
25
26
27
COM
FG
COM
X0
X1
X2
X3
X4
X5
X6
X7
X10
X11
Install the BD
board here
X12
X13
X14
X15
X16
X17
X20
X21
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
PORT1
PORT2
RUN
ERR
0 1 2 3 4 5
6 7
24V
0V
COM0
B
Y0
COM1
COM2
Y1
Y3
Y2
Y5
Y4
Y6
COM3
Y10
Y7
COM4 Y13
Y15
Y11
Y12
Y14
2) Install SD card
LED light
There are three LED lights on the XC-SD-BD, they are Power, Run and Error.
Power: always ON after power on;
Run: blinking when PLC and BD communication is normal
Always ON when PLC and BD communication is abnormal
Error: Off when there is no error
Always ON when there is no SD card, SD card broken or SD card is not formatted.
Blinking when there are other errors.
3) Set the BD board
Open XCPpro V3.2, click configure/BD setting, then select other BD/BD SD, then click OK.
A.
B.
C.
In the tool menu, there is a format changing tool item. That means the tool installation is finished.
When finished the data inputting, click format changing tool.
At last, save the file as .csv format.
8. Example
Write data in data001.csv in SD card, read data from data002.csv.
Process: format the SD cardbuild a csv filemake the programinstall SD card and BD boardconfigure
the BD board, download the program and the datadebug the program, monitor the running result
Step:
1. Transform the SD card format to FAT16 by card reader
(1) Use card reader to connect SD card with PC. (SD card capacity should be less than 2GB).
(2) Right click the SD card disk, choose format.
(3) File system please select FAT.
(4) Click start to format the SD card.
2. Build an empty file data001.csv and a file data002.csv with data in the root directory of SD card.
(1) Open the SD card, build two new Excel files.
(2) Open one of the file, input the following data types:
(3) Save the file as data001.csv. Then open it in txt, make sure it is correct.
(4) Open another Excel file, input the data type in the first line, and input data in each row, the data in each row
should be accord with the data type.
Before
After
Attention: after format changing, if the data length is not enough, it will add space from the left side of the
numbers. Before format changing, the data are out of order.
(7) File data001 and data002 setting are finished. Please delete the disk and pull out the SD card from the
PC.
3. Make program in XCPpro software.
(1) Purpose:
A. write 16 words from D200 to row 1, line 2 of data001.csv.
B. read 25 words from row 2, line 3 of data002.csv to D400.
(2) Process:
M8000
MOV
K1
D0
MOV
K1
D1
MOV
K2
D2
MOV
K16
D100
MOV
K2
D10
MOV
K2
D11
MOV
K3
D12
MOV
K25
D300
M1
TO
K7
D0
D100
D200
FROM
K7
D10
D300
D400
M2
(1) Power on the PLC, check the LED situation. POWER LED is ON, communication LED is flickering,
ERROR LED is OFF.
(2) Connect the PLC with PC to configure the BD board.
(3) Click Online --- download program & data, select BD config in the window:
(4) Click the BD details in the project bar; you can see the BD board information.
B. Read data002.csv
a) The data will be read in data002.csv:
b) when M2 is from OFFON, read the data from data002.csv to D400~D424 of PLC:
S8
D400
D401
D402
D403
D404
D405
D406
D407
space
space
space
space
sd
lg
je
oa
dw
S8
-534007321
f6.2
464.1
14456
D413
D414
D415
D416
D417
D418
D419
D420
space
space
space
space
space
8g
sk
hd
D423 D424
D421 D422
dw
D412
D410 D411
D408 D409
77182
f6.2
7654.65
2. Characteristics
3. System construction
The industrial Ethernet system contains XC-TBOX-BD, PC, XC series PLC, XCPpro software, HMI,
switch, twisted-pair cable, etc.
4. Suitable field
Industrial Ethernet is an electrical network which based on shielded coaxial cable, twisted-pair cable or
optical fiber which based on optical network. It is accord with IEEE802.3 by using ISO and TCP/IP protocol.
As the expansion of Modbus/RTU protocol, Modbus/TCP protocol defines the standard of TCP/IP network
transmission and application. XC-TBOX-BD meets the requirements for industrial network automation control.
It provides complete solution and reliable control method.
The application based on XC-TBOX-BD:
Remote monitor, maintain and debug the PLC program of the IP device
Traditional Modbus communication is one-master-multi-slaver mode, the speed is very slow.
By using XC-TBOX-BD, master station can communicate with other branch stations.
In the following picture, XC-TBOX-BD and TBOX support devices with Modbus/RTU interface
connecting to Ethernet. It can realize multi-master-multi-slaver system; make the devices suitable for
complicated system.
Wire color
Signal
Direction
S1
Orange white
TXD+
Output
S2
Orange
TXD-
Output
S3
Green white
RXD+
Input
S4
Blue
S5
Blue white
S6
Green
RXD-
Input
S7
Brown white
S8
Brown
COM
FG
COM
X1
X0
X3
X2
X5
X4
X7
X6
X11
X10
X13
X12
X15
X14
X17
X16
X21
X20
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
PORT1
PORT2
RUN
ERR
0 1 2 3 4 5
6 7
0V
24V
COM0
B
COM1
Y0
COM2
Y1
Y3
Y2
Y5
Y4
Y6
COM3
Y10
Y7
COM4
Y13
Y15
Y11
Y12
Y14
8. DIP switch
XC-TBOX-BD has four DIP switches:
ON
1
2
3
OFF
The function of DIP switch:
Switch
S1
S2
S3
S4
Status
ON
OFF
ON
OFF
ON
OFF
ON
OFF
Function
SLAVE mode
MASTER mode
Close time log on
Time log on status
IP address configuration
Use static IP address 192.168.0.111
Close DHCP distribution
Use DHCP distribution
There are 3 modes to set the IP address: please select the mode via DIP switch
A. Use static IP address
B. Use DHCP distribution
C. Set by users
The priority of the 3 modes are A>B>C.
A: use static IP address (S3 ON, S4 random)
When using the TBOX-BD at the first time, please use static IP address.
IP address: 192.168.0.111
Subnet mask: 255.255.255.0
Default gateway: 192.168.0.1
Preferred DNS: 192.168.0.1
B: Use DHCP distribution (S3 ON, S4 OFF)
DHCP distribution is similar to the IP distribution in PC.
Note: there must be DHCP server in the net.
Suggestion: youd better not use this mode when having condition
LED
Name
Function
ERO
Error checking
ON: CRC checking error for the data received from serial port(LED is OFF
when the next data are correct)
COM
Serial port
Flicker: connected
IP
IP address
LINK
Ethernet link
ACT
Data receiving
C. Click refresh list to search the XC-TBOX-BD in the network. There are two conditions to edit the
XC-TBOX-BD.
(1) Use XC-TOBX-BD at the first time, S3 is OFF, static IP address; the rest parameters are shown as below:
(2) If there is IP address in the XC-TBOX-BD, S3 is ON, the parameters are shown as below:
D. Double click the TBOX in the device list, you can see the parameters of TBOX1 and TBOX4:
Configure network
When DIP switch S3 is off, user can set relevant parameters in IP device according to actual using,
including IP addresssubnet maskdefault gatewaypreferred DNS(usually the same as default
gateway).After settings are finished, set ON the DIP switch S3 to identify other XC-TBOX-BD with
static IP in the network.
The aim of setting this part of parameters is to connect the XC-TBOX-BD and its device into the WAN, user
can maintain the remote devices via the remote login in function.
Server 1 and 2: the IP address and port part can be modified according to actually using environment, then
click write in XC-TBOX-BD
Login part: MAC and password can be used as the user name and password when XC-TBOX-BD is
remote landing, also can be set according to users demand(only one combination is the best to prevent
from conflicting in the server list)
Additionally, when DIP switch S2 is OFF, XC-TBOX-BD is remote timing landing mode which can save
the bandwidth of network and T-BOX.
Serial parameters
It includes five parts: baud ratedata bitstop bit and protocol type. Baud rate can be modified but its
numerical value must be consistent with that of connecting device.
Comment
It contains device name and comment. User can modify them and click OK to confirm.
E. Click Write into T-BOX, the click OK. The devices will be listed in the TCP-IP device window. Close
this window.
F. It shows select communication mode window, please select UDP for communication mode, network
type can be outer network or inner network. If there are many XC-TBOX-BD, only the target station
works. Now, you can monitor and upload, download program of PLC via Ethernet.
G Click OK to finish the XC-TBOX-BD parameters setting.
11. Example
The following is a Ethernet consisted of three PLC and one HMI.
HMI
Master
T-BOX1
Ethernet
Slave
Slave
Slave
XC-TBOX-BD2
XC-TBOX-BD3
XC-TBOX-BD4
PLC 1
Station 1
PLC 2
Station 2
PLC 3
Station 3
In this system, there are 3 XC-TBOX-BD and 1 T-BOX. T-BOX is master mode, others are slave mode.
HMI is master device, PLC1, PLC2, PLC3 are slave devices.
This systems purpose is to control multi slave devices by multi master devices. Make the industrial
network being used widely.
The steps are as shown as below:
1) Confirm the station number of the 3 PLC via XCPpro software.
2) Connect TBOX1 and XC-TBOX-BD with related devices. If use TBOX1 and XC-TBOX-BD at the first
time, set S3 switch to OFF (static IP address), connect the TBOX1 and XC-TBOX-BD with the Ethernet,
configure them with XCPpro software. After finishing the setting for one TBOX, turn on S3 and continue
setting next XC-TBOX-BD.
(3) Configure the XC-TBOX-BD. Select the BD serial port.
(4) Set the IP address:
T-BOX1: 192.168.0.1
XC-TBOX-BD2: 192.168.0.2
XC-TBOX-BD3: 192.168.0.3
XC-TBOX-BD4: 192.168.0.4
Please see the edit TBOX device window:
T-BOX1 parameters setting:
Then click write to TBOX. The following steps please refer to Using step. Now the TBOX parameters
setting are finished.
2. Specifications
Analog input
DC 0~39.0625mV
Digital output
0~65535
Resolution
Transformation speed
0.596uV
040mA
20ms/channel
Working ambient
No corrosive gas
Ambient temperature
0~60
Storage temperature
-20~70
Ambient humidity
5~95%
Storage humidity
5~95%
3. Terminals
Terminal
Name
EXC+
EXC-
SEN+
SEN-
Meaning
EXC+, EXC- connect to weighing sensor power
terminal
SEN+, SEN- connect to EXC+, EXC-
SIG+
SIG-
Note: for real application, EXC+ connects to SEN+ and sensor power + (DC5V), EXC- connects to SEN- and
sensor power -. SIG+ connects to sensor output +, SIG- connects to sensor output -.
4. Weighing system
A typical weighing system:
5. Pressure sensor
The pressure sensor is based on resistance strain effect, see the following diagram:
R1 and R2 is strain resistor which make bridge circuit with R3 and R4. With the change of R1 and R2, the
bridge circuit will lose the balance, unbalance voltage Uo will be produced as the output of sensor.
U+ and U- are positive and negative point of the sensor power supply. Please select the 5V power of the
module or from outside.
S+ and S- are positive and negative point of the sensor output. Connect the output to the module to test the
weight.
+65535
Digital
Analog
39.0625mV
7. I/O address
XC-WT-BD will not occupy I/O address, the A/D transformed value will be stored in PLC register ID1000.
8. Programming example
Suppose the pressure sensor range is 0~100KG (the sensor output voltage range is 0~20.00mV). Display the
weight (unit is kG) value in the HMI.
Program:
TXsend terminal
RXreceive terminal
Install here
Please keep clean for the fiber optical terminal. Please put on the protection cover to prevent pollution.
(2) Wiring
Connect the TX to RX for all the XC-OFC-BDs, all the PLCs will be a loop.
Please set the suitable parameters, click write to PLC, then download an empty program into the PLC. Finally,
re-power on the PLC to make it effective. (make sure to choose serial port3 when setting)
9.
1. Summarize
XC-PBOX-BD can be the slave station of Profibus DP. It realizes the interconnection between XC series
PLC and Profibus DP system.
Profibus
XC-PBOX-B
D
Modbus
Xinje
Other devices
2. Terminal resistor
Both ends of the Profibus cable should connect terminal resistor. The terminal resistor can clear the signal
reflection in the cable which is caused by resistor discontinuity and mismatching.
FG
COM
COM
X0
X1
X2
X3
X4
X5
X6
X7
X10
X11
X13
X12
X14
X15
X16
X17
X20
X21
0 1 2 3 4 5
6 7
PWR
XC3-32R-E
PORT1
PORT2
RUN
ERR
0 1 2 3 4 5
6 7
24V
0V
COM0
B
Y0
COM1
COM2
Y1
Y3
Y2
Y5
Y4
Y6
COM3
Y10
Y7
COM4 Y13
Y15
Y11
Y12
Y14
(2) Connect the PLC installed XC-PBOX-BD to the XCPpro software. In the software, click configure/BD
settings:
2) Click PLC serial port, choose serial port 3 and modbus num. The modbus num should be the
Profibus slave station number. Here it is set to 5 for example.
4. Wiring
The port of XC-PBOX-BD is the standard Profibus terminal, please see the terminal definition:
XC-PBOX-BD
Profibus DP device
XC-PBOX-BD
Pin
Profibus DP device
Name
Pin
Name
1
2
3
(RxD/TxD P)
D-GND
GND
VP(+)
VCC
(RxD/TxD N)
7
8
9
5GND and 6VCC provide power for terminal resistor. If there is no terminal resistor, please do not
connect them.
Note: Only pin 5, 6, 8, 3 need to be connected.
5. DIP switch
Please set the baud rate of communicating between XC-PBOX-BD and Xinje PLC via DIP switch.
Baud rate
(bps)
DIP1
DIP2
19200
OFF
OFF
9600
OFF
ON
38400
ON
OFF
115200
ON
ON
DIP3
DIP4
Note:
1. The default communication parameter is: data bit=8, stop bit=1, even parity.
2. Only DIP switch 1 and 2 are valid, 3 and 4 are invalid.
6. LED
There are four LED lights on the XC-PBOX-BD.
D4: the light flashes when reading the station No. of PLC serial port3, it always lights when got the station No.
D3: the state of Profibus.
D2: it lights when data is being sent.
D1: it lights when data is being received.
7. Operation steps
Please do the following operations if the master station of XC-PBOX-BD is Siemens Profibus-DP device.
Copy XC-PBOX.GSD to the route of \..\Step7\S7data\gsd\
Copy Xinje_B.bmp to the route of \..\Step7\S7data\nsbmp\
If the master station is not Siemens products, please copy XC-PBOX.gsd and Xinje_B.bmp to the folder of gsd
and bmp.
Now we take Siemens S7-300 series PLC (315-2AH14-0AB0) as an example to explain the debug process.
Suppose the S7-300 sets ON M0-M7 of Xinje PLC via XC-PBOX-BD. And set double word register (D0,D1)
to 12345678, set (D3,D4) to 87654321. And read the value of M20-27 and (D100, D101)(D102, D103).
(1) Open the Siemens simatic manager software, build a new project.
(2) Name the project:
(5) Double click the hardware, you will see below window:
(7) Click SIMATIC 300, then click RACK-300, it will show below window:
(10) Choose the matched power module for the PLC. Here we choose PS307 2A , CPU 315-2DP\6ES7
315-2AG10-0AB0\V2.6:
(11) Click v2.6, it will show below window, choose the master station (S7-300) No. of XC-PBOX-BD,
here we choose 2. Then click New button in the window:
(13) Click
Gateway\ PBOX, double click PBOX, then set the slave station No. of PBOX to 5.
(14) As the chapter 1 said, we copy the file XC-PBOX.GSD to \..\Step7\S7data\gsd\, and copy the file
Xinje_B.bmp to \..\Step7\S7data\nsbmp\, now we can see the Xinje station picture in the below window:
(15) double click the Xinje station picture, it will show below window. Set the data update mode:
At every MD end or At MD scan end.
. Return to
below window:
Programming window:
Program:
(19) After making the program, save and download to the module. Turn On the RUN switch of S7-300. The SF
BF LED is OFF on the S7-300, it means the communication is successful. Then turn off the RUN switch.
Now please open the XCPpro software, connect it to the Xine PLC with XC-PBOX-BD (please configure the
Then turn on RUN switch of S7-300, the monitor data is shown in figB. (M20-M27,D100 D102 are the data
write from S7-300 to XC series PLC.
FigA
FigB
(20) Monitor the data of S7-300. Right click the data needs to monitor:
(21) Choose monitor to see the data. The data are the same to the setting data in XC series PLC.
8. Notes
1. The Xinje PLC only can be slave station with XC-PBOX-BD. XC-PBOX-BD only can be used with Xinje
PLC. Please choose the Xinje PLC which can expand BD module.
2. After configuration of the XC-PBOX-BD, please re-power on it.
3. The station No. in the PLC should be accord to the Profibus slave station No., especially for SCADA
application.