DGUS implements Schneider PLC hardware and software connection guide
[Copy link]
This post was last edited by DWIN_IOT on 2018-12-10 16:09 This article introduces the software and hardware connection instructions for the DWIN DGUSⅡ touch screen and Schneider PLC to communicate through the Modbus RTU protocol. 1Effect display:%MW area read and write Touch screen model: DMT10600T070_A5WTC Schneider PLC: TM208LDA16DRN Resolution: 1024*600 https://v.qq.com/x/page/l0807fksvbx.html?pcsharecode=5lTk34rc The DGUS Ⅱ touch screen model DMT10600T070_A5WTC is used in the video. This product is a 7-inch high-resolution, industrial-grade intelligent HMI with rich interfaces, waterproof and UV-proof, and can be used both indoors and outdoors. It is anti-glare for outdoor use, and the shell does not deform at high and low temperatures. The screen is a capacitive touch screen, which can realize functions such as sliding page turning and gesture adjustment of data. It has good touch effect and high sensitivity, bringing a wonderful human-computer interaction experience. The PLC model is Schneider TM208LDA16DRN. The M208 controller is equipped with two RS-485 serial interfaces and uses industry standard protocols: one is Modbus RTU/ASC Ⅱ (master/slave), and the other is free ASC Ⅱ. Among them, the two RS-485 serial interfaces include an RJ45 interface (SL1) and a removable terminal block (SL2). The default save area of user memory is predefined from %MW0 to %MW499 (1000 bytes), and the unsaved area is from %MW500 to %MW59999. The product performance is stable and reliable, and is widely used in mechanical presses, packaging machinery and other machine tools and metal processing industries, such as sealing machines, baling machines, etc. 2 Connection Guide Detailed Explanation 2.1 Hardware Connection Guide 1 ) As shown in the figure below, the touch screen communication interface uses COM4 RS485, that is, A, B. pin, power supply24VDC, That is V,G feet. file:///C:/DOCUME ~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image002.jpg [al ign=left]2[size= 12pt])PLC Communication interface usageSL2 port, and touch screen[/color ]D1 Connection[ /font]A, D0 Connection B, Power supply =black]24V. [color=bl ack]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image004.jpg[/f ont] 3[ /font])The wiring effect diagram is as follows [align= left][/align ]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/ 01/clip_image006.jpg In summary, The Schneider PLC power supply is directly supplied by 220V AC, and the touch screen power supply is supplied by 24V power supply. The two pins D1 and D0 on the PLC are connected to the A and B pins of the touch screen to connect RS485 communication. ] 2.2 Software Connection Guide [size=12pt ]2.2.1 PLC Software Configuration 1)Configuration9600 Baud Rate8N1, Modbus RTU Communication Mode file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image008.jpg 2) Schneider PLC Modbus communication is all through %MW memory reading and writing and PLC interaction, Modbusaddress is as shown in the figure, %MWis word data. Because Schneider PLC cannot directly operate the relay through Modbus, it is necessary to convert intermediate variables, that is, to operate the %MW area to control it. [size=14 px]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image010.jpg [/ size] M1Auxiliary relay controlQ1The relay output ladder diagram is shown in the figure below file:///C:/DOCUME~ 1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image012.jpg [ color=black]%MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [/ size] [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152807dwvkk6q67knzvkdb.png.thumb.jpg[/ img] [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3 ) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard pops up, enter the number ]1[size= 12pt]Pull the relay on, enter the number2[color =black]Disconnect the relay. file:/// C:/DO CUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [align=left ]2.2.2 Connection logic diagram [/color ]SchneiderPLC[ /font]With Diwen[size= 12pt]DGUSⅡThe logical diagram of successful touch screen connection is as follows. ]RS485Interface Read Get PLC register command, and then process the receivedPLC [/font ]Register data, modify the switch status displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/ Temp/msohtml1/01/clip_image0 18.jpg jpg[/img]jpg[/img]jpg[/img]jpg[/img]jpg[/img]file:///C:/DOCUME~1/ ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image012.jpg [color= black]%MW10 Memory Control[/font ]Q0 The relay output ladder diagram is shown below: [/ size] [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152807dwvkk6q67knzvkdb.png.thumb.jpg[/ img] [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3 ) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard pops up, enter the number ]1[size= 12pt]Pull the relay on, enter the number2[color =black]Disconnect the relay. file:/// C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [ size=14px] [align =left]2.2.2 Connection logic diagram [/color ]SchneiderPLC[ /font]With Diwen[size= 12pt]DGUSⅡThe logical diagram of successful touch screen connection is as follows. ]RS485Interface Read Get PLC register command, and then process the receivedPLC [/font ]Register data, modify the switch status displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/ Temp/msohtml1/01/clip_image018.jpg [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152802vj5xjkd755j6xmi0.png.thumb.jpg[ /img]jpg[/img]file:///C:/DOCUME~1/ ADMINI~1/LOCALS~1/Temp/msohtml1/ 01/clip_image012.jpg %MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [/ size] [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152807dwvkk6q67knzvkdb.png.thumb.jpg[/ img] [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3 ) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard pops up, enter the number ]1[size= 12pt]Pull the relay on, input the number2[color =black]Disconnect the relay. file:/// C:/DO CUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [align=left ]2.2.2 Connection logic diagram [/color ]SchneiderPLC[ /font]With Diwen[size= 12pt]DGUSⅡThe logical diagram of successful touch screen connection is as follows. ]RS485Interface Read Get PLC register command, and then process the receivedPLC [/font ]Register data, modify the switch status displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/ Temp/msohtml1/01/clip_image0 18.jpg /DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image012.jpg%MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard will pop up, enter the number 1 to close the relay, and enter the number 2 to disconnect the relay. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [size= 14px] 2.2. 2 Connection logic diagram SchneiderPLCand DGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image018.jpg /DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image012.jpg%MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard will pop up, enter the number 1 to close the relay, and enter the number 2 to disconnect the relay. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [size= 14px] 2.2. 2 Connection logic diagram SchneiderPLCand DGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image018.jpg jpg%MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [/ size] [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152807dwvkk6q67knzvkdb.png.thumb.jpg[/ img] [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3 ) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard pops up, enter the number ]1[size= 12pt]Pull the relay on, enter the number2[color =black]Disconnect the relay. file:/// C:/DO CUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [align=left ]2.2.2 Connection logic diagram [/color ]SchneiderPLC[ /font]With Diwen[size= 12pt]DGUSⅡThe logical diagram of successful touch screen connection is as follows. ]RS485Interface Read Get PLC register command, and then process the receivedPLC [/font ]Register data, modify the switch status displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/ Temp/msohtml1/01/clip_image0 18.jpg jpg%MW10 Memory ControlQ0 The relay output ladder diagram is shown below: [/ size] [img]https://bbs.eeworld.com.cn/data/attachment//forum/201812/10/152807dwvkk6q67knzvkdb.png.thumb.jpg[/ img] [color =black]file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg 3 ) The touch screen interface control program is shown in the figure below: Click on the corresponding relay area, a keyboard pops up, enter the number ]1[size= 12pt]Pull the relay on, enter the number2[color =black]Disconnect the relay. file:/// C:/DO CUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [align=left ]2.2.2 Connection logic diagram [/color ]SchneiderPLC[ /font]With Diwen[size= 12pt]DGUSⅡThe logical diagram of successful touch screen connection is as follows. ]RS485Interface Read Get PLC register command, and then process the receivedPLC [/font ]Register data, modify the switch status displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/ Temp/msohtml1/01/clip_image0 18.jpg jpg[/img]jpg[/img]jpg3) The touch screen interface control program is shown in the figure below: Click the corresponding relay area, a keyboard pops up, enter numbers1 to close the relay, Enter the number2 to disconnect the relay. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [size= 14px] 2.2. 2 Connection logic diagram SchneiderPLCand DGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image018.jpg jpg3) The touch screen interface control program is shown in the figure below: Click the corresponding relay area, a keyboard pops up, enter numbers1 to close the relay, Enter the number2 to disconnect the relay. file:///C:/DO CUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image016.jpg [align=left ]2.2.2 Connection logic diagram SchneiderPLCand DGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image0 18.jpg jpg[/img]2.2.2 Connection Logic Diagram SchneiderPLCand DWINDGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image018.jpg jpg[/img]2.2.2 Connection Logic Diagram SchneiderPLCand DWINDGUSⅡThe logical schematic diagram of successful touch screen connection is as follows, read the PLC register command through the RS485interface, and then process the received PLC register data, and modify the switch state displayed on the touch screen according to the data. file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image018.jpg
|