Home
details in the instruction manual for BD2 boards
Contents
1. 2 Connect the XMH3 30 or XP3 16 with PC open XCPpro software Right click PLC1 in the project menu click change PLC model Then select XMH3 30 or XP3 16 Then click Configure BD setting Now you can configure the BD1 and BD2 see from the back cover of XMH3 30 or XP3 16 left position is BD1 right position is BD2 File Edt Search View Online Configure Option Window neh DEHA p 6 c Eg a zen Ins sIns Del Del FEE EDD RIS Edit PLC name PLC aio lebih Mode Add PLC pon PLC 3 Select BD board type and configure each channel in below window After configuration click OK Then download program and re start the XMH3 30 or XP3 16 to make the configuration effective BD Config write to PLC when Ei PLC Config 2 Password downloading BD 3AD2DA P Config amp amp PLC Serial Port 1 BD BD AD Channel 1 Voltage 0 10
2. e To install SD card and expand the XC memory PLC can read and write the data of SD card XP SD BD2 e Support 4 data formats single word double word float character e Software and hardware version must be V3 3 and above 2 Explanation 1 SD card e XP SD BD2 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 e Before install the SD card in the XP SD BD2 please use card reader to format the SD to FAT16 in the PC 2 The file standard of SD card e SD card supports csv file these file should be saved in the root directory 6 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 of SD card 6 SD card supports 4 kinds of data type single word W double word DW float Fm n character Sx e The data range and space Data type Fm n m lt 15 n lt 15 Sx x lt 16 TN 2147483648 21 18446742974197923840 9 47483647 18446742974197923840 Character occupied in SD m 1 n card WoRDnume i 2 2 NOTE 1 When the real data length is less than the character length in SD card add space from the left side
3. 2 Install the SD card Insert the SD card into the slot on XP SD BD2 mm Installation position n BD board has a LED lamp LED is always ON when PLC and BD communicate well LED is OFF when PLC and BD communicate error LED lamp 0 XP SD BD2 3 Configure the BD board Please refer to chapter1 BD configuration 7 Format changing tool When there are data in the Excel please use format changing tool to transform the Excel format to csv The tool will be attached with this manual Please see the operation steps Open Excel click Tool Add Ins Browse then select the format changing tool click ok Add I ns Add Ins available Analysis ToolPak Analysis ToolPak VBA Conditional Sum wizard Euro Currency Tools Format Changing Tool E Internet Assistant VBA Lookup Wizard Solver Add in 1 Browse Look in 23 XC BD a ormat changing tool Recent Documents 19 Add Ins available Analysis ToolPak Analysis ToolPak Conditional Sum Wizard Eura Currency Tools v Format Cha ngin g Tool C Internet Assistant VB Lookup wizard Solver Add in ient Format Changing Toal A In the tool menu there is a format changing tool item That means the tool installation is
4. __ 5 E Saye Hold Mun No Config AD Channel 1 Filter 1 2Fiter fi Module C BD Serial Port ol 0 AD Channel 2 Voltage OV 100 MA Module Other BD Motion AD Channel 2 Filter 1 2Fiter d BD 2AD2PT P AD Channel 3 Voltage o OV AD Channel 3 Filter 1 2Fiter BD 2AD2PT1DA P BD A4AD P BD 2AD2DA P BD SD XP 3AD3PT P BD HI XP 3AD2DA P BD2 XP 3PT P BD2 XP 3TC P ED2 DA Channel 1 Voltage 0 10V DA Channel 2 Voltage o 10V Chapter2 BD board precision The analog input or output of BD board is related to the precision Next we will take some examples to explain it Example analog input precision is 14 bit range is 0 5V 0 10V The analog transforms to digital range is 0 16383 Please see below diagram 16383 0 5V 10V If the pressure sensor range is 0 15MPa analog signal is 0 10V 0 I5MPa 0 16383 X Z K ID lt current pressure value ID is BD board AD value Please use float calculation in the PLC Chapter3 XP 4AD2DA BD2 1 Characteristics 12 bit analog input 8 bit analog output 4 channels 0 10V voltage input 2 channel 0 20mA 0 10V analog output XP 4AD2DA BD2 00 AO 1 A2 A00 00 C1 A01 VOI C2 Ba Aa B
5. 2 Specification Voltage input Current voltage output Analog input 0 10V inputresistor300kKQ Analoa output DCO0 20mA external load resistor below 5000 or DCO 10V 1 4095 12Bit the t f d estensione 1 255 8Bit the transformed value is Resolution value is stored in PLC in Hex l stored in PLC in hex 12Bit Digital output 12 bit binary value 0 4095 Digital input Bit binary value 0 255 Integrated accuracy 15ms 1 channel 3ms 1 channel PID output o ooo o o O There is no insulation between the channel 3 Wiring and installation 1 Installation Open the cover of BD 1 insert the BD board into the pins Then close the cover Please note XP 4AD2DA BD2 only can be installed in BD 1 ZA 0 8 of full scale 2 Wiring onus ime mans Note 1 The first 4 channels are analog input the input signal is 0 10V AO connec
6. CO connects to voltage 2 AO A1 A2 are temperature input channel For example AO connects to Pt100 CO connects to Pt100 4 address BD module doesn t occupy I O units the value will store in PLC register The following is the related PLC register address BD 1 Channel Voltaae PID parameter Kp Ki Kd 9 bit E Diff Death ID1000 ID1006 Y1000 QD1000 Kp Ki QD1007 QD1001 001008 Diff QD1009 Death QD1010 Channel Temperature OCH ID1003 ID1009 Y1003 oD1003 P BD 2 Channel Voltage PID parameter Kp Ki Kd 9 output md bit nd Diff Death ID1050 ID1056 Y1020 QD1050 Kp Ki QD1057 ID1051 ID1057 Y10214 QD1051 Kd QD1058 Diff QD1059 ID1052 01058 1022 oD1052 Peath QD1060 Channel Temperature Kp OCH ID1053 ID1059 Y1023 OD1053 ID1059 5 101054 101060 Y1024 001054 2CH ID1055 ID1061 1025 QD1055 Explanations 1 Kp proportion parameter Ki integral parameter Kd differential parameter 2 Diff control range make PID control in certain range 3 PID ON OFF signal Y Y 0 PID is OFF Y 1 PID is ON 4 Death death range if the difference between the last and current PID value is less than the death range the current PID value will be abandoned the last PID value will be stored in the PLC 13 Chapter6 XP SD BD2 1 Features
7. For example single word data 454 data type is W character length is 6 so add 6 3 spaces The real number is L L L 454 L is space 2 3 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 The x of character Sx means word length but not character length 3 Operation for SD card XMH3 30 and XP3 16 can connect XP SD BD2 and write read the data from SD card 1 Read the SD card After installing the XP SD BD2 PLC can read the data in SD card FROM instruction can read the appointed data in csv file of SD card M1 SI 60 83 li FROM K7 D200 D210 D220 e Read the data from SD card to PLC register the unit is word e S1 K7 means the XP SD BD2 in BD 1 position If it is installed in BD 2 position the operand is K8 352 5272 the index number column and row number of data block in the designated csv file Operand D e Inthe example D200 is the csv file index number D201 is the column head address of the data block D202 is the row head address of the data block e 53 the data quantity you want to read word quantity Operand D e D1 the PLC register to store the read data Operand D e in this example if 0200 2 D201 1 D202 3 D210 3 The instruction will do like this read 3 numbers start from column 1 row 2 of the fi
8. bit binary value 0 1023 Integrated 0 8 of the full scale accuracy 15ms 1 channel 3ms 1 channel PID output 0 07 O There is no insulation between the channel 3 Wiring and installation 1 Installation Open the back cover of XMH3 30 or XP3 16 insert the BD board into the pins close the cover 7 m Note XP 3AD2DA BD2 be installed in BD 1 or BD 2 2 Wiring pales Note 1 The first 3 channels are analog input accept 0 5V 0 10V signal AO connects to analogt signal CO connects to analog signal 2 The last 2 channels are analog output can output 0 20mA 4 20mA or 0 5V 0 10V The ammeter and voltmeter are used to test the output current and voltage they are not needed in real connection For analog output AO is current output VO is voltage output It can be configured in the software 3 It is no need to connect 24V power supply for analog cu
9. finished B When finished the data inputting click format changing tool C At last save the file as csv format 8 Application Write data in data001 csv in SD card read data from data002 csv Process format the SD card build a csv file make the program install SD card and BD board configure the BD board download the program and the data debug 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 data0O2 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 do dw 5 3 sT 2 3 Save the file as data001 csv Then open it in txt make sure it is correct datao01 Notepad Fle Edit Format View Help w dw f5 3 s 7 w 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 A B C D l iw 59 dw f6 2 2 245 hfiw 1254567890 543631 32 3 415 sdlgjeoa 534007321 464 1 4 14456 Sgskhd T1192 1654 65 5 26654 nd90311p 6945 3563 6 12356 484111 1 9054873 13251 98 T 97 ey6T 326483
10. in BD 1 position If it is installed in BD 2 position the operand is K8 Operand K7 K8 52 52 2 the index number column and row number of data block in the designated csv file Operand D e Inthe instruction D100 is the index number of the csv file D101 is the column number of the data block D102 is the row number of the data block e 53 the write in data quantity word quantity operand D e 3S4 PLC register address which needs to write in operand D If D10021 0101 1 D102 2 D110 5 D120 365 0121 10235465 0123 26456 the instruction means write 5 words data from D120 to column1 row2 of data001 csv The write in data is shown as below red area 769 467894 630 26683 Note the write in data type should be coincidence with data type definition otherwise ID1000 and ID1050 will report the error 3 Notice e 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 e 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 Cannot 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 ID1050 will return error value When the program found that the p
11. 02 csv br s8 dw 6 2 245 i afin za a PL Seskhd 77182 7654 65 266594 ndJO3jlp 58945 T 12356 4841111 9054873 13291 08 97 eyOT 326483894 645 8 2 7658 e2l 89490 15 54 4579 k nlw 737328923 3105 J b When M2 is from OFF to ON the read instruction worked the data in D400 D424 is shown as below 58 dw 58 D400 word ASCII D401 Word ASCII 0402 Word ASCII D403 ward ASCII D404 sd Ward ASCII D405 lg word ASCII D406 je Word ASCII D407 na Word ASCII D408 534007321 DWard Dec D410 464 1 Float Dec D412 14456 word Dec D413 Word ASCII D414 word ASCII D415 Word ASCII D416 Word ASCII D417 Word ASCII D418 8g Word ASCII D419 sk ward ASCII D420 hd Ward ASCII D421 77182 DWard Dec D423 7654 65 Float Dec C When reading the csv file the data is from SD card to PLC register D400 D401 D402 D403 D404 D405 D406 D407 space space space space sd lg Je oa D408 D409 D410 D411 D412 534007321 f6 2 464 1 W 14456 D413 D414 D415 D416 D417 D418 D419 D420 space space space space space 8g sk hd D421 D422 D423 D424 77182 f6 2 7654 65 dw 25 Chapter7 Example Input the pressure sensor signal to AD channelO ID1000 p
12. 894 645 8 8 21658 21 69490 15 54 9 4579 k nlw 131528923 3165 3 5 Transform the data via format changing tool il 59 6 2 2 245 hfiw 1234567890 543631 32 3 415 sdlgjeoa 534007321 7 464 1 a 14456 Sgskhd 77182 7654 65 5 26654 nd903jlp 8945 3563 6 T 12356 48411351 9054873 13251 98 7 97 ey67 326483894 645 8 8 21658 e21 89490 15 54 9 4579 k nlw 737328923 3165 3 6 Save as data002 csv Then open it in txt file 21 IB dataoo Notepad Edit Format View Help 58 dw f6 2 245 415 14456 26654 1234567890 543631 32 9054875 13251 98 IB data002 Notepad File Edit Format View Help 58 dw 6 2 245 hfiw 1234567890 543631 32 Wu 415 sdlgjeoa 534007321 464 1 465 14456 8gskhd 77182 7654 65 26654 490331 8945 3563 12356 48dj1j3 j 9054873 13251 98 hfiw sdlgjeoa 534007321 Sgskhd 77182 nd903j1p 8945 48431 326483894 e21 89490 kinlw 737328923 Before EG 97 ey67 326483894 645 8 3165 3 27658 e21 89490 15 54 4579 731328923 3165 3 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
13. 999 Illegal column index Column index gt file max column number Illegal row index Row index 0 or 1 22 23 24 25 26 17 II d writ d 2 i cabin wr iii Word quantity gt 50 quantity 5 Type definition in csv file Before writing data into csv file you need to define the data type in the Excel table A Build a new Excel file define the data type in the first row B Save the file and named as dataxxx csv For example data003 csv C After saving the file open it in txt file you will see the following things each data type is divided by automatically In that way PLC can recognize it easily Data003 csv opens in notepad w dw f3 2 s5 dw 6 Install and configure XP SD BD2 1 Installation Open the cover of BD 1 insert the BD board into the pins fix it with the screw then close the cover Installation position
14. C2 CO A1 C1 2 02 4 a 2 General specifications Voltage input Temperature input EN input O 10V 0 5V optional input resistor Pt resistor Pt100 2 wire range is 300 range Recoon 1 16383 14Bit AD transformed d value is stored in PLC in hex Digital output SEE 14 bit binary value 0 16383 1000 5000 range Integrated 9 0 8 of the full scale precision Transformin 15ms per channel 3ms per channel PID output 0 K4095 O K4095 No insulation between each channel of PLC 3 Wiring and installation 1 Installation Take XMH3 30 as an example Open the back cover for BD insert the BD into the pins Close the cover amp x 2 Note XP 3AD3PT BD2 can be installed at BD 1 BD 2 The BD address is different for each location 2 Wiring 1 AIO AH Al2 are voltage input channel For example AIO connects to voltage
15. XINJE XMH XP3 16 Expansion BD board User manual Xinje Electronic Co Ltd Data NO PC14 20091124 3 2 Catalog CHAPTER1 BD CONFIGURATION 1 3 CHAPTER2 BD BOARD PRECISION 2 2 2 11 1 nana nana 4 CHAPTERS XP 4AD2DA BD2 nana nana 6 2 2 5 8 CHAPTERS AP SADSPT BD2 11 CHAP TERG AP SD BD 2 5 EF eTR EAr 14 CHAP TERT EXAMPLE visiirisi iei eaea Eraird araara ae 26 Chapter1 BD configuration BD board configuration steps 1 Install the BD board on XMH3 30 or XP3 16 which can expand 2 BD boards But XP 4AD2DA BD2 only can install in BD 1 position and no need to configure XMH3 30 XP3 16 e 020200000020 EEE como YO 1 Y2 4 YS Y6 AB 24V OV xo X2 X4 X5 X6 7 yes poo ooo O O O O O O O O GO
16. arameters 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 cannot have space between data When writing data into SD card the address must be continuous if not the ID1000 and ID1050 will have error code 20 E When reading the data the address cannot over the last data address if not the ID1000 and ID1050 will produce error code e 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 and ID1050 will return code 2 But this will not affect the following operation for data001 csv file 4 SD card state BD 1 is ID1000 BD 2 is ID1050 The SD card state is shown in ID1000 and ID1050 ID1050 SD card damaged or did not install well The file doesn t exist Read write error SD card is not formatted to FAT16 14 SD card is not inserted SD card is not inserted l Check the file index column row number 20 Read write parameter error word number Read write data is not Uninstall the SD card when reading writing N coincidence with format Illegal characters in character Sx definition File data type error Data type is not included in w dw Sx Fm n Data t d t match rank d oe j Illegal characters in character Sx when reading file Illegal file name index gt
17. le data0O2 csv in SD card and save it in 0220 of PLC e If the data002 csv is shown as the following then the numbers in the red color area will be read Data002 csv opens in notepad w dw s8 fd 15 dw w dw 2980 178605 HFASDFNQWEJFN 769 467894 1321240 330 180240 2471 191280 JESAHDEFHAELS 830 26683 2615275 29182 665320 628 39984 jakjfkdakl 387 56305 458388 7728 884013 9045 251190 testh 949 899791 417510 39600 195264 1824 141351 hellbaby 408 248854 2644828 1836 558904 22300 70153 testh 570 088499 583542 6534 1095926 1742 271975 HSDELJDF 162 57849 1238233 25761 125260 1636 201536 JSEDJFDSALF 135 422261 293940 2400 345495 9962 37107 HDJNFCJDSNC 860 864485 538920 24660 827472 Explanation 1 The first line is data type definition the row address in FROM instruction should include the data type definition row 2 The data type of second row where 2471 is in is w word the second column where 191280 is in is dw double words The two numbers occupy 3 words 15 2 Write the SD card TO instruction can write data from PLC register to the csv file of SD card But user has to build the csv file in the SD card and define the write in data type If not the LED of XP SD BD2 will be OFF M2 SD 2 5 80 TO K7 D100 D110 D120 e Write the PLC data to SD card the unit is word e S1 K7 means the XP SD BD2
18. recision 14 bit of XP 3AD2DA BD2 Suppose the pressure sensor range is 0 15 We enlarge the range to 15000 to simplify the calculation in the program According to the AD curve we can calculate the actual pressure value D7 D6 2 15000 16383 ID1000 16383 ID1000 D7 D6 15000 ID1000 D0 pressure AD value EMEN Transform D0 to float type 02 03 B4 D5y 15000 16585 mE D6 D7 D4 D5 D2 D3 actual pressure value Transform the float type to integral D10 actual pressure value XINJE Xinje Electronic Co Ltd 4th Floor Building 7 Orignality Industry park Liyuan Development Zone Wuxi City Jiangsu Province 214072 Tel 86 0510 85134136 Fax 86 0510 85111290 27
19. rrent output 4 address This BD board doesn t occupy I O space the value is stored in PLC register Each channel has related PLC register BD 1 PID parameter Kp Ki Kd h AD PID ON OFF 101000 ID1003 Y1 vi QD1002 Kp ID1001 101004 Y1001 QD1003 Kd 1 H ID1002 ID1002 ID1005 ID1005 Y14002 Y14002 OD1004 004 001004 Death ab 009 z QD1000 000 a BD 2 PID parameter Kp Ki Kd PID ON OFF ID1050 ID1053 Y1050 001052 Ki QD1056 QD1053 Kd QD1057 Diff QD1058 idle Channel DAsigalj PP TI Lm awe _ Explanation 1 Kp proportion parameter Ki integral parameter Kd differential parameter 2 Diff control range make PID control in certain range 3 PID ON OFF signal Y Y 0 PID is OFF Y 1 PID is ON 4 Death death range if the difference between the last and current PID value is less than the death range the current PID value will be abandoned the last PID value will be stored in the PLC Note if QD DA signal is over 1023 DA output will maintain at the max value 10V 5V or 20mA Chapter5 XP 3AD3PT BD2 1 Features e 14 bit analog input e channels voltage input O 10V 0 5V optional XP 3AD3PT BD2 e 3 channels Pt100 2 wire temperature sensor input AIO CO AI1 C1 AI2
20. the PC 3 Make program in XCPpro 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 K1 DO D0 1 writing file index no MOV K1 D1 D1 1 the row no of the writing file MOV E se D2 2 the line no of the writing file MOV K16 D100 D100 16 write in 16 words MOV K2 D10 D10 2 reading file index no MOV K2 D11 D11 2 row no of the reading file MOV K3 D12 D12 3 line no of the reading file MOV K25 D300 D300 25 read 25 words M1 lj TO K7 DO D100 D200 Write 16 words from D200 to data001 csv M2 FROM K7 D10 D300 D400 Read 25 words from data002 csv to D400 4 Installation and configuration 1 Install the SD card in the XP SD BD2 install the BD on the XMH3 30 or XP3 16 The LED of BD board is ON when power on the product otherwise please check BD board or SD card 2 Connect XMH3 30 or XP3 16 with PC then open XCPpro software Click File change PLC model gt select XMH3 30 or XP3 16 Click configure BD setting gt see below window select BD SD click OK PLC1 BD Set Ei PLC Config e Password PLC Serial Port X BD Config write to PLC when downloading 5 so BD BD1 BD2 tay CAN E No Confi Sa
21. ts signal CO connects to signal 2 The last 2 channels are analog output the output signal is 0 20mA or 0 10V In up diagram the power supply of analog input channel is the actual voltage supply The ammeter and voltmeter are used to test the output current and voltage They are not necessary for actual use 3 It is no needs to serial connect 24V power supply in analog output circuit 4 address This BD board doesn t occupy space the value is stored PLC register Each channel has related PLC register AD A OCH a Note 1 This BD board has no PID function 2 If QD gt 255 DA output value will maintain at 20mA or 10V Chapter4 XP 3AD2DA BD2 1 Characteristic 14 bit analog input 10 bit analog output 3 channels 0 5V 0 10V input 2 channels 0 20mA 4 20mA or 0 5V 0 10V output XP 4AD2DA BD2 CO AO A1 A2 A00 00 01 A01 01 C2 a Ba 2 Specification Voltage input Current voltage output 0 10V 0 5V selectable input resistor 300kQ 0 20mA 4 20mA external load Analog output resistor below 500Q or 0 10V 2 10V Resolution 1 16383 14 bit the transformed 1 1023 10 bit the transformed value is stored in PLC in hex 14 bit value is stored in PLC in hex Analog input Digital output 14 bit binary value 0 16383 1 Digital input LO 10
22. ve Hold Memory mg 000 Module C BD Serial Port 09 vol IO 000 MA Module 6 Other BD i n MJ Motion O BD 2AD2PT P BD 2AD2PTIDA P BD 2TC P BD 4AD P BD 2AD2DA P XP 3AD3PT P BD2 XP 3AD2DA P BD2 XP 3PT P BD2 XP 3TC P BD2 Read From PLC Cancel 3 click Online download program amp data gt select BD config Download User Data x Reg Init Value Serial Port Contig ud CAN Contig BIN e Module Config I Config Select ALL Mam 4 Click BD details in the project bar to check the BD information PLE Status AB CPU Detail Details tun Expansion Details t Scan Cycle nj Clock Details Al rm moval 5 Run the program A write data001 csv 23 a D200 D215 in the PLC tee 1 Free Monitor dd Edit Del Upward Downward Monitor value Word length Mum Format o wm pam Dd be O m be O pam O Med pam JJ w Md wm e d NOC NI 00 Wi oM pa sme 0 seed b When M1 is from OFF to ON the write instruction worked please see the result in data001 csv w dw f5 3 sf w 12335 555881125 78545 227 ghd59j34t lt 5v 4 6786 23412 474321809 B read data002 csv a The read area in data0
Download Pdf Manuals
Related Search
Related Contents
Zanussi ZHC 955 Owner's Manual PROGRAMME SAISON 2012-2013 BALLET «CASSE COMBILINER - Interempresas MANUALE - quintiavio.com Multimedia Devices and Mass Storage Conceptronic Shoulder Bag 14" Black Plutonium V2 Motor User Manual XSz 8 XSz 50 Válvula de seguridad contra fallos - to site Copyright © All rights reserved.
Failed to retrieve file