1 / 24

NX Protocol Training Feb 27, 2007 ~ Mar 2 , 2007

NX Protocol Training Feb 27, 2007 ~ Mar 2 , 2007. Ki Joon Kim RAK OBB Strategic Marketing. Simple Demo with PLC + HMI + OPC Server. In H/W point, this Simple demo consists of PLC and PC. In S/W point, PC has Serial Port, OPC Server and HMI Software. OPC : OLE for Process Control.

casta
Télécharger la présentation

NX Protocol Training Feb 27, 2007 ~ Mar 2 , 2007

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NX Protocol TrainingFeb 27, 2007 ~ Mar 2 , 2007 Ki Joon Kim RAK OBB Strategic Marketing

  2. Simple Demo with PLC + HMI + OPC Server • In H/W point, this Simple demo consists of PLC and PC. • In S/W point, PC has Serial Port, OPC Server and HMI Software. • OPC : OLE for Process Control. • HMI : You can use every HMI software such as RSView32, InTouch, iFix , WinCC and etc which support OPC. • Through this simple demo, we will show basic concept of communication with NX-Series PLC. OPC Server WinOPC or KepServer Serial Port HMI RSView32 or iFIX or InTouch Windows XP/2K

  3. Setup OPC Server - WinOPC • WinOPC is a kind of OPC Server for NX-Series PLC but current is Version 1.0. So, it is inconvenient, yet. • You can use this one freely after download. • To define tag to read or write, user have to modify XML file. • In near future, GUI will be changed. • Configuration of Device.xml • Also, you can use help file to setup.

  4. Setup OPC Server - KepServer • This is came from KepWare. Also, you can download from www.kepware.com freely and you are able to use during 3 hours for each execution. (Ver.4 is able to use 2 hours.)) • KepServer has 2 version. One is KepServer Enterprise for RA products such as RSView32, RS-SQL,etc and another is KepServerEX for general customer. • Let’s see procedure of setting up. (Application Note)

  5. Simple Demo with PLC + HMI + OPC Server • We will show simple demo which • are one of real applications. • One is an example of “Gas Engine • Steam Supply and Power • Generator” • The other is an example of • controlling AC Drive with PLC.

  6. PLC Communication Protocol • Communication Specification

  7. How to Connect PLC (9 Pin D-Sub Male) PC (9 Pin D-Sub Female) RS-232C and RS-485 Cable

  8. Function Codes

  9. Communication Frame (2-Steps) 1~255 Byte (01~FF) 0 : 256 Byte Source Address CRC-16 Code Destination Address See Function Code • Error Frame Data Size Source Address CRC-16 Code Destination Address Error #1 : Invalid Function Error #2 : Overflow Error #3 : Invalid Frame Structure Error #4 : Invalid CPU Operation Error #5 : Too Long Frame Function Code

  10. Communication Frame (2-Steps) • Communication Frame Example • Read Bit : Read 5 Bits from K0000.0 to K0000.4 • Command • Answer • Write Bit : Write 3 Bits to M0000.0 to M0000.2 • Command • Answer • Read Word : Read 3 Words from M0010 to M0012 • Command • Answer • Write Word : Write 3 Word from M0000 to M0002 • Command • Answer

  11. Calculate CRC CRC Calculation Scope 2 Byte CRC CRC = 65535 For i = 0 To PL - 1 CRC = Int(CRC / 256) Xor CRCTable((CRC Xor DATABLOCK(i)) And 255) Next i

  12. Protocol (1/4) – Read Bit • Request Frame • Response Frame • Only for R, L, M, K, F, TC Register • Example • Read Bit : Read 5 Bits from K0000.0 to K0000.4 • Command • Answer PLC ID PC ID Function Code Data Size The length of bits to read CRC Absolute Register Address $21 OR $80 PC ID PLC ID Function Code Data Size CRC Data: ON=$FF,OFF=$00 * * * * *

  13. Protocol (2/4) – Write Bit • Request Frame • Response Frame • Only for R, L, M, K, F, TC Register • Example • Write Bit : Write 3 Bits to M0000.0 to M0000.2 • Command • Answer PLC ID PC ID Function Code The length of bits to write Absolute Register Address CRC $22 OR $80 PC ID PLC ID Function Code Data Size CRC * * * * *

  14. Protocol (3/4) – Read Word • Request Frame • Response Frame • All Register • Example • Read Word : Read 3 Words from M0010 to M0012 • Command • Answer PLC ID PC ID Function Code Data Size The length of bits to read CRC Absolute Register Address $23 OR $80 Data Size L = N * 2 PC ID PLC ID CRC Function Code

  15. Protocol (4/4) – Write Word • Request Frame • Response Frame • All Register • Example • Write Word : Write 3 Word from M0000 to M0002 • Command • Answer PLC ID PC ID Function Code Absolute Register Address CRC Data Size L = N * 2+2 $24 OR $80 PC ID PLC ID Function Code Data Size CRC

  16. Hand On Lab • Materials • Hardware : PC, PLC (NX7 / 70), AC Drive or Servo Drive, Motor • Software : WinGPC, OPC Server, HMI Software

  17. Modbus RTU – Inverter/Servo Control EOI or HMI SW (OPC server) Speed and Status NX7 or NX70 or NX700 PLC COM1 COM2 Modbus RTU Master Slave Slave • Inverter (AC Drive) or Servo • Speed/Torque Output Reference using Modbus RTU • Speed/Torque Input Feedback using 4-20mA Analog Inputs • EOI Monitors Feedback and Status OEMax G5 AC Drive Yaskawa Servo

  18. Custom Protocol – Inverter/Servo Control EOI or HMI SW (OPC server) Speed and Status NX7 or NX70 or NX700 PLC COM1 COM2 Modbus RTU Master and CSD* Protocol Modbus RTU Slave CSD* Slave • Inverter (AC Drive) or Servo • Speed/Torque Output Reference using Modbus RTU • Speed/Torque Input Feedback using 4-20mA Analog Inputs • EOI Monitors Feedback and Status OEMax CSD* Servo OEMax G5 AC Drive

  19. Success Stories

  20. Tianjin Sailing OEMax protects China’s Environment! • Hengshui Haijiang Filter Press • Sludge Filtering under High Pressure • NX7-28ADR + NX7-28EDR digital I/O • 30 Sets sold to Customer • Also E-View EOI • Replaced LG Master-K PLC • Keys to Win • Tianjin Relationship and Experience • Offered Low Price similar to LG (but not lower) • Tianjin Engineer programmed and integrated PLC • Next Targets are expected Wins • Shanghai Dazhang Filter Press • 2 NX7 sets sold – Verbal commitment to use OEMax • Shanghai Coal Mining Application • NX70 – Verbal commitment to use OEMax • Dezhou Filter Press

  21. Shanghai Hands (actually Wuxi Vanpoo Siemens branch) • Wuxi BD Flocking (bdflocking.com) • Textile – Pattern/Screen Printing on Cloth • NX70 Digital I/O and Analog 1-Axis Motion • 1 set sold – Machine sold at Guangzhou Textile Exhibition • 100 sets projected • Also Proface EOI + Siemens AC Microdrives • Replaced Siemens S7-200 or S7-300 PLC • Keys to Win • Vanpoo DI Relationship and Experience • Vanpoo DI Makes Higher Margin selling OEMax PLC than Siemens • NX70 price is similar to S7-200 but functionally between S7-200 and S7-300 • 2-3 Vanpoo Engineers and OEMax Strategic Marketing programmed and integrated PLC

  22. Shenzhen Sanding • MingSang Industrial (mingsang.com) • Assembly – Ornament (Bracelet) Assembly Machines • NX7(S) Digital I/O and PTO 2-Axis Motion • 20-30 sets sold so far to DI/SI • Also Eview EOI + Low Cost Steppers • Replaced Siemens S7-200 • Keys to Win • Shenzhen DI is Siemens System Integrator • Probably higher margin for System Integrator using OEMax PLC over Siemens S7-200 PLC • SOBB Engineering (BD Kim + JY Bae) modified NX7(S) FW to provide 32-bit PTO support • Shenzhen Engineers programmed and integrated PLC

  23. Question ?

  24. TM SM Maximum Value for OEMs

More Related