Home

MatrikonOPC Modbus Driver

image

Contents

1. Field Description PORT Name of the SA85 Card Serial Port or UDP Port under which the Modbus device appears Not required for Modbus Ethernet DEVICE Name of the Modbus device Modbus register file number Not all devices support all file types File Type Description Size Read Write o Digital Output Coil 1 bit v v y 1 Digital Input Coil 1 bit v 3 Analog Input Register 16 bits v 4 Analog Output Register 16 bits v v 3W Non Standard Analog Input Register 32 bits v 4w Non Standard Analog Output Register 32 bits v v YYYYY Modbus register address Possible range is from 1 to 65535 The actual range depends on the Modbus device configuration for the particular register file type Append a letter D to the end of an item ID to indicate that the 3X or 4X register pairs up D with the next register to form a 32 bit integer For example 4 00000D reads the least significant word from 4 00000 and the most significant word from 4 00001 F Append a letter F to the end of an item ID to indicate that the 3X or 4X register pairs up with the next register to forma 32 bit IEEE floating point real U Append a letter U to the end of an item ID to indicate that the 3X or 4X register should be treated as an unsigned rather than a signed 16 bit integer Append a letter S to the end of an item ID after a D or an F to swap the word order from S the default least significant word in lowest address reverse format most significant word
2. Use this checkbox to enable i e checkbox is selected or disable i e Enabled checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank Hostname The network name of the device IP Address The IP address of the device Port Number The TCP port on which the device is listening MatrikonOPC Modbus Driver v4 5 1 User s Manual 35 MatrikonOPC Component Description The number of milliseconds to wait before a timeout occurs maximum of 30000 milliseconds Retries The number of retries if timeouts occur maximum of 10 Reply Timeout The number of seconds to wait before re trying the connection Reconnect Delay maximum of 3600 seconds Table 17 Create New UDP Port Window Components To create a UDP Port Device 1 On the Configuration window select the Modbus configuration item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the amp icon The Insert New Object window Figure 1 appears From the displayed list select the TCP IP Terminal Server object type Click on the OK button The Create New window appears Figure 14 a ge A Note The item selected in the Insert New Object window will determine which Create
3. MatrikonOPC Modbus Driver User s Manual MatrikonOPC MatrikonOPC Modbus Driver User s Manual This manual is a product of Matrikon Inc Matrikon Inc Suite 1800 10405 Jasper Avenue Edmonton AB T5J 3N4 Canada Phone 1 780 448 1010 Fax 1 780 448 9191 www matrikonopc com Document Revision History Document TOT Date Version Description Author 2006 06 01 1 0 Initial document 2006 10 18 1 1 Merge from old template and update for new CB release 2007 06 29 2 0 Update template general edit update for new CD release i e Omni functionality 2007 11 12 2 1 Updated Item syntax and installed file sections ZA 2008 07 01 2 2 Updates for 4 3 0 0 MH Version updated to 4 3 0 0 Added the following e Creating and Configuring a Redundancy Group Object 2008 07 10 3 0 e Getting Data without Being Connected to a MH LB Device e Appendix E OPC Security Custom Interface e Appendix F Offline Mode Version updated to 4 3 1 0 Appendix E OPC 2008 09 08 3 1 Security Custom Interface replaced with updated LB Appendix E Security Installed Files section updated Modbus Address field description updated in the following Creating and Configuring sections Modbus Ethernet PLC TCP IP Device Serial Device MTL Serial Device Terminal Server PLD Device UPD Device Troubleshooting section updated 2008 09 15 3 3 Version updated to 4 3 2 0 REK MatrikonOPC Modbus Driver v4 5 1 User s Manual 2 200
4. Minimum Oms Maximum Oms Average Oms Where ipaddress is the IP address of the user s Modbus device If it says no response then there are likely network issues between the user s computer and the Modbus device Note Refer to the DCOM Manual to further diagnose any DCOM issues Minimizing communications to the devices Problem I need to minimize communications with my device Solution Consider which items change frequently and which do not Having your OPC client or clients read different items at different rates different OPC group update frequency can result in reduced communications If some items are not needed for a considerable period consider having your OPC MatrikonOPC Modbus Driver v4 5 1 User s Manual 43 MatrikonOPC client either remove them or disable deactivate them MatrikonOPC Modbus will not scan items unless they are actively demanded by at least one OPC client Group items together sequentially Modbus will send one packet to read sequential registers For example Reg 1 Reg 2 1 read because registers are sequential Reg 3 Reg 1 Reg 3 3 reads because registers are not sequential Reg 5 Trouble scheduling poll cycles Problem I need more options to schedule my polls at specific times or better manage the fairness of data access among devices Solution MatrikonOPC SCADA Modbus allows significantly more configuration options and
5. Figure 7 Create New Modbus Serial Slave Port Window Table 12 describes the components of the Create New Modbus Serial Slave Port window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes Use this checkbox to enable i e checkbox is selected or disable i e checkbox is cleared communication for the object Enabled Description This field is optional takes any user defined text 64 character MatrikonOPC Modbus Driver v4 5 1 User s Manual 25 MatrikonOPC Component Description maximum for documentation purposes By default this field is blank From the drop down list select the serial port to which the device is Port connected Default COM1 Define the communication rate by selecting a value from the drop down Baud Rate list Values range between 110 and 256000 Default 9600 Define the number of data bits by selecting a value from the drop down Data Bits list Values range between 4 and 8 Default 8 From the drop down list select the type of parity to be used Options Parity available are None Odd Even Mark and Space Default Even From the drop down list select the number of stop bits Options Stop Bits available are 1 1 5 and 2 Default 1 Table 12 Create New Modbus Serial Slave Port Window Compon
6. for rise delay This option available only when RTS Control is set to Enable Default 20 DTR Control Allows you to select a Data Terminal Ready DTR preset from the drop down list Available options are Disable Enable and Handshake Default Enable RTS drop delay Reply Timeout Allows you to enter the number of milliseconds to a maximum of 1000 for drop delay This option available only when RTS Control is set to Enable Default 20 The number of milliseconds to wait for a device response before a timeout occurs maximum of 30000 milliseconds Note This information stays consistent across both tabs Retries The number of retries if timeouts occur maximum of 10 Note This information stays consistent across both tabs Reconnect Delay The number of seconds to wait before re trying the connection maximum of 3600 seconds Note This configuration will be overridden by the Reconnect Delay of the Serial Device Note This information stays consistent across both tabs Intermessage Delay The number of milliseconds to wait between messages maximum of 60000 milliseconds This delay can help control traffic load on the serial connection Note This information stays consistent across both tabs Table 10 Create New Modbus Serial Port Window Advanced Options Tab Components To create a Modbus Serial Port device 1 On the Configuration window select the Modbus configu
7. i e Enabled checkbox is cleared communication for the object Note This information stays consistent across both tabs This field is optional takes any user defined text 64 character maximum for documentation purposes Description By default this field is blank Note This information stays consistent across both tabs DSR Flow Control This checkbox allows you to enable i e select the checkbox or disable i e clear the checkbox Data Set Ready DSR flow control MatrikonOPC Modbus Driver v4 5 1 User s Manual 20 MatrikonOPC Component Description Default checkbox is cleared CTS Flow Control This checkbox allows you to enable i e select the checkbox or disable i e clear the checkbox Clear To Send CTS flow control Default checkbox is cleared DSR Sensitivity This checkbox allows you to enable i e select the checkbox or disable i e clear the checkbox Data Set Ready DSR Default checkbox is cleared XON XOFF Flow Control This checkbox allows you to enable i e select the checkbox or disable i e clear the checkbox XON XOFF software flow control Default checkbox is cleared RTS Control From the drop down list select a Request To Send RTS preset Available options are Disable Enable Handshake and Toggle Default Enable RTS rise delay Allows you to enter the number of milliseconds to a maximum of 1000
8. 40 LIMITATIONS 2 ccceeeeeeeeeeeeeeeeeeeeeee eee eee eee e aaa eee eee 42 Troubleshooting s sssssssss22555 25 5 551 55511551u05uuunnnnnnnnnnnnn nn 43 Problems and SOlUtIONS vivecesesisestivsusee rsh cide idecenin sows ese E TN EEE EA EAEE DNN 43 Questions and ANSWEMS i iis sevaceea seve cede tees cede seve anda deve cede SESSA ANNASA ANANA EANNAN EANAN Naaa 44 Table of Figures Figure 1 Insert New Object Wind Ow ccsceeeseeeeeeeeeeeeeeeeeeeeeeeeaeeeeaseesaseeeaeeeeeseeeseeenaeennas 13 Figure 2 Create New Modbus Ethernet PLC TCP IP Window c scceeseeeeseeeeseeeeeeeenas 15 Figure 3 Create New Modbus Serial Port Window COMM Port Tab csscseeeeseeeeseeenas 18 Figure 4 Create New Modbus Serial Port Window Advanced Options Tab 0008 20 Figure 5 Create New Modbus Serial Device WindOW ss s s 5 23 Figure 6 Insert New ObDjeCct ccsceeeeceeeeeeeeeeeeeeeeeueeeeeeeeeeaeeeeaseaeaseaeaseeeaseeeaseeuegeessgeansgeanas 24 Figure 7 Create New Modbus Serial Slave Port WindOW sceeeseeeeseeeeseeeeeeeeeeeeeneeennas 25 Figure 8 Create New Modbus SA85 or PCI85 Card Window ccseseeeeseeeeseeeeseeeeeeeenas 27 Figure 9 Create New Modbus Device Window c ccecseeeeseeeueeeeueeeeueeeeueeeeueseeuseeeusgeonas 29 Figure 10 Insert New Object ccccsceeeeceeeeeeeeeeeeeeeeneaseaeaseeeaeeaeaseaeaseesaseeeaseeeaseeeseeenseeana
9. 5 displays the settings available for a connection to a Modbus Serial Device MatrikonOPC Modbus Driver v4 5 1 User s Manual 22 MatrikonOPC w Create new Modbus Serial Device Modbus Serial Device li ga Name Enabled M Description Device Settings Modbus Address 1 ASCII Mode I Confirm Connection Communication Settings af Retries 3 I Reconnect Delay f 0 sec Max Registers and Coil booo blocks per Transmission 0 Figure 5 Create New Modbus Serial Device Window Table 11 describes the components of the Create New Modbus Serial Device window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes Use this checkbox to enable i e checkbox is selected or disable i e Enabled checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank The Modbus address of the device maximum length of 255 If set to O writing to this device will cause a Modbus broadcast message to go out to all devices on the communications port writing to all devices Modbus Address simultaneously When using a Modbus address of 0 you cannot read tags through the device link Change the address to match the address of the Modbus slave fro
10. Matrikon Inc It may not be disclosed or transferred directly or indirectly to any third party without the explicit written permission of Matrikon Inc LIMITATIONS Matrikon has made its best effort to prepare this manual Matrikon makes no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accepts no liability of any kind including without limitation warranties of merchantable quality satisfactory quality merchantability and fitness for a particular purpose on those arising by law statute usage of trade course of dealing or otherwise Matrikon shall not be liable for any losses or damages of any kind caused or alleged to be caused directly or indirectly from this manual LICENSE AGREEMENT This document and the software described in this document are supplied under a license agreement and may only be used in accordance with the terms of that agreement Matrikon reserves the right to make any improvements and or changes to product specifications at any time without notice TRADEMARK INFORMATION The following are either trademarks or registered trademarks of their respective organizations Matrikon and MatrikonOPC are trademarks or registered trademarks of Matrikon Inc OTHER MatrikonOPC is a division of Matrikon Inc MatrikonOPC Modbus Driver v4 5 1 User s Manual 4 MatrikonOPC Table of Contents IMtrOCuctiOn cccccceccceeneeneeeeeeeeeeenseeseeeeeseesees
11. SA85 or PCI85 Card item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the B icon 2 The Insert New Object window Figure 10 appears lt Insert New Object Choose object type ij Modbus Device oo Cancel Figure 10 Insert New Object 3 From the displayed list select Modbus Device Click on the OK button 5 The Create New window Figure 9 appears Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus Device is selected then the Create New Modbus Device window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Click on the OK button The object is created and will appear as a child of the Modbus SA85 or PCI85 Card item Creating and Configuring a Redundancy Group Object For configuration information of a Redundancy Group object refer to the MatrikonOPC Server User s Manual or the MatrikonOPC Universal Connectivity Server User s Manual Creating and Configuring a Server Status List For configuration information of a Server Status List refer to the MatrikonOPC Server User
12. User s Manual 14 MatrikonOPC e TCP IP Terminal Server e UDP Port e Modbus Serial Device e Terminal Server PLC e Modbus UDP Device The following sections contain information on the types of objects available and how to create and configure them Creating and Configuring a Modbus Ethernet PLC TCP IP Device The Create New window Figure 2 displays the settings available for a connection to a Modbus Ethernet PLC TCP IP device Create new Modbus Ethernet PLC TCP IP Modbus Ethernet PLC TCP IP ili TE ili ame Enabled Description Device Settings Hostname localhost or C IP Address foo a 502 Port Number ASCII Mode adhe Adest fo I Confirm Connection Communication Settings Reply Timeout fi 000 msec Retries 3 Reconnect Delay fi 0 sec Max Registers and Coil booo blocks per Transmission 0 Figure 2 Create New Modbus Ethernet PLC TCP IP Window Table 8 describes the components of the Create New Modbus Ethernet PLC TCP IP window Component Description Name of the object which becomes an element of the item ID for data Name items under the object MatrikonOPC Modbus Driver v4 5 1 User s Manual 15 MatrikonOPC Component Description Automatically converted to title case for display purposes Enabled Use this checkbox to enable i e checkbox is selected or disable i e checkbox is cleared communication
13. e ee eee esses essen eee eee eee eee eee eee eee 12 Table 7 Objects Available Under Insert New Object WindOW ccseseeeeeeeeeeeeeeeeeeeeenens 14 Table 8 Create New Modbus Ethernet PLC TCP IP Window Components 00005 16 Table 9 Create New Modbus Serial Port Window COMM Port Tab Components 19 Table 10 Create New Modbus Serial Port Window Advanced Options Tab Components slacsuddeaescessustawsdhusatueesusucuusesesaeusissussecausciandtucscstetswateasuwsscwastusesucceueacsevesessnucdsassenseesesusususacues 21 Table 11 Create New Modbus Serial Device Window Components ccseseseeeeeeeseeenees 24 Table 12 Create New Modbus Serial Slave Port Window Components c seseseeseseeees 26 Table 13 Create New Modbus SA85 or PCI85 Card Window Components 0se000 27 Table 14 Create New Modbus Device Window Components ccseseeeeeeeeeeeeseeeeeeeenees 30 Table 15 Create New TCP IP Terminal Server Window Componentts sscsscseeeeeeneeees 32 Table 16 Create New Terminal Server PLC Window Components ccceeeeseeeeeeeseeenens 34 Table 17 Create New UDP Port Window COMponentsS ssss ss 5 36 Table 18 Create New Modbus UDP Device Window Components sceceeeeeeeeeeeeeeeenees 38 Table 19 Available Item Options ccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeseaeeeeaeeeeeeeeeseeneananens 40 Table 20 Sample Item IDS ccccceeeeee
14. i Communication Settings Reply Timeout 1000 msec p Retries 3 FZ Reconnect Delay f 0 sec Figure 9 Create New Modbus Device Window Table 14 describes the components of the Create New Modbus Device window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes Enabled Use this checkbox to enable i e checkbox is selected or disable i e checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank Modbus Routing This is the node address of the controller itself not the SA85 or PCI85 card Reply Timeout The number of milliseconds to wait before a timeout occurs maximum of 30000 milliseconds Retries The number of retries if timeouts occur maximum of 10 Reconnect Delay The number of seconds to wait before re trying the connection MatrikonOPC Modbus Driver v4 5 1 User s Manual 29 MatrikonOPC Component Description maximum of 3600 seconds Table 14 Create New Modbus Device Window Components To create a Modbus Device 1 On the Configuration window select a previously created Modbus SA85 or PCI85 Card for assistance refer to Creating and Configuring a Modbus
15. is preferable in SCADA environments Noisy communications Problem Iam having interference problems when communication with my SCADA devices Solution MatrikonOPC Modbus has some head and tail squall squelch capabilities Consider using MatrikonOPC SCADA Modbus for enhanced features Reads and Writes time out Problem My device does not seem to want to communicate All of my Reads and Writes time out Solution Check your configuration to make sure it matches the configuration of your Modbus device In particular make sure that the data parity stop settings match serial make sure you are using the correct node number or numbers and make sure you have the correct IP address and port number Ethernet Modbus If your device is a Daniel 32 bit device supporting Modbus like protocol you will need to use the 3W and 4W registers because this device will send and receive twice as much data per register as a normal Modbus device If the time outs are occurring because your connection is slow increase the Reply Timeout field value in the Configuration panel This will increase the amount of time before a time out takes place Questions and Answers What is RS 485 RS 422 and can I connect it to my computer s serial port Question I don t have any familiarity with RS 485 RS 422 Is it similar to RS 232 How can my computer talk to an RS 485 RS 422 device Can I connect it to my computer s serial p
16. 8 09 09 3 2 TNM LB MatrikonOPC Installation and Un Installation sections updated to reflect new installer Installed Files section updated Replaced Security appendix with newest version 2008 09 22 3 4 LB Updated with support information for Modbus SA85 or PCI85 Card il 2008 12 05 3 5 Added View Tags and Security Settings descriptions to Tools menu Replaced Configuration screen graphic with updated screenshot showing View Tags and Security Settings icons Enter Password screen added to Installation section 2008 12 08 3 6 LB 2009 09 10 4 0 Updates for version 4 5 0 of the Modbus driver CHB LB Updated product version to 4 5 1 Removed references to MTL 8000 device 2010 01 08 5 1 Updated Sample Item IDs Table 20 ZB LB 2010 01 04 5 0 SL LB 2010 01 27 5 2 Software Requirements section updated AB LB MatrikonOPC Modbus Driver v4 5 1 User s Manual 3 MatrikonOPC SOFTWARE VERSION Version 4 5 1 DOCUMENT VERSION Version 5 2 COPYRIGHT INFORMATION Copyright 1997 2010 Matrikon Inc All rights reserved No part of this document may be reproduced stored in a retrieval system translated or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without prior written permission of Matrikon Inc CONFIDENTIAL The information contained herein is confidential and proprietary to
17. New window is displayed For example when UDP Port is selected then the Create New UDP Port window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time 8 Click on the OK button The object is created and will appear as a child of the Modbus configuration item Creating and Configuring a Modbus UDP Device The Create New window Figure 15 displays the settings available for a connection to a Modbus UDP Device MatrikonOPC Modbus Driver v4 5 1 User s Manual 36 MatrikonOPC ww Create new Modbus UDP Device Modbus UDP Device li Name Enabled Description Device Settings Modbus Address fi M ASCII Mode Max Registers and Coil 0 M Confirm Connection blocks per Transmission Figure 15 Create New Modbus UDP Device Window Table 18 describes the components of the Create New Modbus UDP Device window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display pur
18. Notes for this driver MatrikonOPC Modbus Driver User Manual pdf User s Manual for this driver OPCModbus exe Driver executable PSTCFGModiconLib ocx Driver ActiveX configuration panel Instructional video demonstrating how to set up Ethernet Modbus Instructional video demonstrating how to set up Serial Modbus Table 3 Files Installed in Modbus Folder For Stand Alone Server Videos Modbus Ethernet wmv Videos Modbus Serial wmv MatrikonOPC Modbus Driver v4 5 1 User s Manual 10 MatrikonOPC The driver specific files listed in Table 4 are installed by default if the driver is installed as a UCS driver module in the following location C Program Files Matrikon OPC UCS Drivers Modbus File Name Description MatrikonOPC Modbus Driver Release Notes pdt Release Notes for this driver MatrikonOPC Modbus Driver User Manual pdf User s Manual for this driver ModbusSIL dll Driver module PSTCFGModiconLib ocx Driver ActiveX configuration panel Videos Modbus Ethernet wmv Instructional video demonstrating how to set up Ethernet Modbus Videos Modbus Serial wmv Instructional video demonstrating how to set up Serial Modbus Table 4 Files Installed in Modbus Folder For UCS Driver Module Licensing Most MatrikonOPC products require some form of licensing criteria be met to ensure that it functions successfully The Matrik
19. Object Window The Insert New Object window Figure 1 displays a different set of options depending on the type of object selected and the types of objects already configured under it Note Use the scroll bar at the bottom of the window to view all available options Figure 1 shows two views of the same window so that you can see all of the available options one view with the scroll bar moved to the left and one with the scroll bar moved to the right Insert New Object Choose object type ij Modbus Ethernet PLC TCP IP Si Server S 4 Modbus Serial Port Sa TCP IP i Modbus Serial Slave Port Saj UDP Por E3 Modbus SA85 or PCIS5 Card i Redundancy Group lt Figure 1 Insert New Object Window Table 7 describes the types of objects that are available for insertion as a child in the Insert New Object window depending on the object currently selected Selected Object Insert New Object Window Options Modbus Ethernet PLC TCP IP Modbus Serial Port Modbus Serial Slave Port Modbus Root Configuration Modbus SA85 or PCI85 Card Redundancy Group Server Status List TCP IP Terminal Server MatrikonOPC Modbus Driver v4 5 1 User s Manual 13 MatrikonOPC Selected Object Insert New Object Window Options UDP Port Modbus Ethernet PLC TCP IP Not available Modbus Serial Port Modbus Serial Device Modbus Serial Slave Port Modbus Serial Device Modbus SA85 or PCI85 Card No
20. Server PLC Click on the OK button 5 The Create New window Figure 12 appears Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Terminal Server PLC is selected then the Create New Terminal Server PLC window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Click on the OK button The object is created and will appear as a child of the TCP IP Terminal Server item MatrikonOPC Modbus Driver v4 5 1 User s Manual 34 MatrikonOPC Creating and Configuring a UDP Port Device The Create New window Figure 14 displays the settings available for a connection to a UDP Port w Create new UDP Port UDP Port ili i it Name Enabled I Description o Communication Settings Hostname localhost or C IP Address z je _ Port Number fi 0051 Reply Timeout 2000 msec Retries Reconnect Delay Figure 14 Create New UDP Port Window Table 17 describes the components of the Create New UDP Port window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes
21. address of 0 you cannot read tags through the device link Change the address to match the address of the Modbus slave from which you wish to read data MatrikonOPC Modbus Driver v4 5 1 User s Manual 33 MatrikonOPC Component Description If this checkbox is selected then a read will occur on register 0 00001 to Confirm Connection verify the connection Retries The number of retries if timeouts occur maximum of 10 The number of seconds to wait before re trying the connection Reconnect pelay maximum of 3600 seconds The maximum number of registers to read write per transmission maximum of 123 Setting this value to O will cause the server to select the optimal size Max Registers and Coil blocks per Transmission Table 16 Create New Terminal Server PLC Window Components To create a Terminal Server PLC device 1 On the Configuration window select a previously created TCP IP Terminal Server device for assistance refer to Creating and Configuring a TCP IP Terminal Server Device item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the amp icon 2 The Insert New Object window Figure 13 appears Insert New Object Choose object type i Terminal Server PLC Cancel Figure 13 Insert New Object 3 From the displayed list select Terminal
22. ardware requirements Refer to the Licensing section for information on how to obtain the appropriate license The Licensing section will refer you to the Licensing Procedures document that was installed along with the driver and this User s Manual The Contacting Support section provides you with contact information for the MatrikonOPC Support team should you have any problems during the installation or licensing of the software System Requirements The software has minimum Software and Hardware system requirements These requirements must be met for the software to function properly Software Requirements The driver requires the following software e Microsoft Windows XP SP2 or e Microsoft Windows 2003 or e Microsoft Windows 2000 SP4 e Microsoft NET 2 0 Framework included with this install program AN Note It is recommended that the most current service packs are installed Hardware Requirements The driver requires the following hardware e Intel Pentium 4 Processor e 512 MB RAM e 40 GB 7200 RPM hard drive The driver requires the additional hardware listed below to make use of the following functionality e For Ethernet communication with Modbus devices Windows compatible Ethernet network card e For Serial communication with Modbus devices Windows compatible Serial Port Modbus Implementation For information about Modbus refer to the documentation found at www modbus org Table 2 lists and describes the
23. d of the Modbus configuration item Creating and Configuring a Modbus Serial Port Device The Create New window Figure 3 displays the settings available for a connection to a Modbus Serial Port The Create New Modbus Serial Port window consists of two tabs e COMM Port e Advanced Options MatrikonOPC Modbus Driver v4 5 1 User s Manual 17 MatrikonOPC COMM Port Tab w Create new Modbus Serial Port Modbus Serial Port li Fa Name Enabled V Description Communication Settings COMM Port Advanced Options Port com gt Baud Rate 0 gt Data Bits jess Parity Even Stop Bits fis Reply Timeout 2000 msec EE A sec Retries 2 z InterMessage Delay 0 msec Figure 3 Create New Modbus Serial Port Window COMM Port Tab Table 9 describes the components of the Create New Modbus Serial Port COMM Port tab Component Description Name of the object which becomes an element of the item ID for data items under the object Automatically converted to title case for display purposes Note This information stays consistent across both tabs Name Use this checkbox to enable i e checkbox is selected or disable i e Enabled checkbox is cleared communication for the object Note This information stays consistent across both tabs This field is optional takes any user defined text 64 character maximum for documentation purposes pescriprhion By default thi
24. e Insert New Object window Figure 1 appears From the displayed list select the Modbus SA85 or PCI85 Card object type Click on the OK button The Create New window appears Figure 8 oY Py E Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Create New Modbus SA85 or PCI85 Card is selected then the Modbus Device window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time 8 Click on the OK button The object is created and will appear as a child of the Modbus configuration item Creating and Configuring a Modbus Device Note A Modbus Device can be created as a child of a Modbus SA85 or PCI85 Card The Create New window Figure 9 displays the settings available for a connection to a Modbus Device MatrikonOPC Modbus Driver v4 5 1 User s Manual 28 MatrikonOPC w Create new Modbus Device Modbus Device ili iak ili alist Enabled V Description Device Settings Modbus Routing fi Jc Jc Jc te
25. e Modbus configuration item Creating and Configuring a Terminal Server PLC Device The Create New window Figure 12 displays the settings available for a connection to a Terminal Server PLC MatrikonOPC Modbus Driver v4 5 1 User s Manual cy MatrikonOPC ay Create new Terminal Server PLC Terminal Server PLC ili Name Enabled ilij nabled Description Device Settings S aee fo I Confirm Connection Communication Settings d Retries 3 eal Reconnect Delay fi 0 sec Max Registers and Coil booo blocks per Transmission 0 Cancel Figure 12 Create New Terminal Server PLC Window Table 16 describes the components of the Create New Terminal Server PLC window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes Use this checkbox to enable i e checkbox is selected or disable i e Enabled checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank The Modbus address of the device maximum length of 255 If set to O writing to this device will cause a Modbus broadcast message to go out to all devices on the communications port writing to all devices Modbus Address simultaneously When using a Modbus
26. eeeeee ee eee eee e eases essen ee eeeee nese eee 41 MatrikonOPC Modbus Driver v4 5 1 User s Manual 6 MatrikonOPC Introduction This MatrikonOPC Modbus Driver is an OPC product that enables data interchange between OPC clients and Modbus compliant devices Each read write with the device is optimized to maximize throughput This driver can be configured with the following connection types e Modbus Serial RS 232 RS 422 or RS 485 as available on the user s computer e Ethernet TCP IP or UDP The limit on the number of connections is determined by the user s computer RAM and the number of physical ports available for use There are no limits built into the OPC driver itself This driver supports the following operations e Modbus This product is commonly used in many industries Modbus is a standard protocol Who Should Use This Manual This manual is intended for use by all users of the MatrikonOPC Modbus Driver This manual explains how to install and configure the software and how to perform common tasks In addition technical information about OPC data items is included along with sections on diagnostics and troubleshooting Overview of Manual This document uses icons to highlight valuable information Remember these icons and what they mean as they will assist you throughout the manual AN This symbol denotes important information that must be acknowledged Font displayed in this color and sty
27. eeeeeeeeeeeee a Eaa asiaa in iana 7 Who Should Use ThiS Manual sisirin rr AERA EEEE EOE EA KALEA TRAE EEE 7 Overview of MANU al iivit eane e E coved vanes E EENE EE ERE 7 References reraman oroa eio E ET EE E E E T AAA 8 DOCUMENT TEMINY ririri inngi eCie EEEa ce ete ve wd CNEA ENRERE EEREN EEOSE ENEC EDE KA Ea 8 Getting Started cccccccceeceeceeeeeeeeeeeseseeeeeeeeeeeeeeeeeeee seen eens eee eee eee eee eee aniani eee eee een eeneeeeeneenennee 9 SYSLEM REQUIFEMENUS sicicuxcawsewwrsiavtank ener iawn enatgawy caw cawrsnweeawk caer oswn enw gas cor eawnaa reas cheTiawreswTonees 9 Software Requirements eiwsi ses caccsssdearesaescatstangeasararenassnardyaassdau sation sfeanaraas EDED NE ERRER ENERE ERNER 9 Hardware Requirement sirere veal aisesetiaisas EEANN EET EERETR TE 9 Modbus Implementation senina E E E E a 9 Installed Files irssi orpine ss onena E E E ae views ca viene oe OAEI ww Pees ave ERA O E AE E A 10 LICENSING esri einna S ARANEA ES ANA A AROEN E S cane eee euee eaneeatianan ye vaenee siempre 11 Contacting SUPPONE s iseirriireenninr inen aa ENEE EEEE ENE Na E ENNEN 11 Configuration ssssss 5 5555 55515555555u10u5uunnnnnnnnnnnnn nnmnnn 13 Driver Config ratiOr sisccrsderrceresesraneticacevss crud ENESENN EEREN NENE EANES ee cena 13 Creating ODJCCUS vz sussrccessusessasenrivaeiaciabesbate EE EEEE EEE E EREE EEEE SEERE EAEE EERE ATERA 13 Creating and Configuring a Modbus Ethernet PLC TCP IP Device sssssssssss
28. ents To create a Modbus Serial Slave Port device 1 oe S On the Configuration window select the Modbus configuration item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the B icon The Insert New Object window Figure 1 appears From the displayed list select the Modbus Serial Slave Port object type Click on the OK button The Create New window appears Figure 7 Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus Serial Slave Port is selected then the Create New Modbus Serial Slave Port window is displayed From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time Click on the OK button The object is created and will appear as a child of the Modbus configuration item MatrikonOPC Modbus Driver v4 5 1 User s Manual 26 MatrikonOPC Creating and Configuring a Modbus SA85 or PCI85 Card The Create New window Figure 8 d
29. erver to select the optimal size Table 8 Create New Modbus Ethernet PLC TCP IP Window Components To create a Modbus Ethernet PLC TCP IP device 1 On the Configuration window select the Modbus configuration item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the ay icon a oes The Insert New Object window Figure 1 appears From the displayed list select the Modbus Ethernet PLC TCP IP object type Click on the OK button The Create New window appears Figure 2 MatrikonOPC Modbus Driver v4 5 1 User s Manual 16 MatrikonOPC Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus Ethernet PLC TCP IP is selected then the Create New Modbus Ethernet PLC TCP IP window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time 8 Click on the OK button The object is created and will appear as a chil
30. for the object Description This field is optional takes any user defined text 64 character maximum for documentation purposes By default this field is blank Hostname The network name of the device IP Address The IP address of the device Port Number The TCP port on which the device is listening The Modbus address of the device maximum length of 255 If set to O writing to this device will cause a Modbus broadcast message to go out to all devices on the communications port writing to all devices Modbus Address simultaneously When using a Modbus address of 0 you cannot read tags through the device link Change the address to match the address of the Modbus slave from which you wish to read data ASCII Mode If this checkbox is selected communication will occur in ASCII mode Confirm Connection If this checkbox is selected a read will occur on register 0 00001 to verify the connection by trying to read the point Reply Timeout The number of milliseconds to wait before a timeout occurs maximum of 30000 milliseconds Retries The number of retries if timeouts occur maximum of 10 Reconnect Delay The number of seconds to wait before re trying the connection maximum of 3600 seconds Max Registers and Coil blocks per Transmission The maximum number of registers to read write per transmission maximum of 123 Setting this value to O will cause the s
31. free regional numbers coming soon Table 5 MatrikonOPC Support Regional Contact Information For after hours support in all regions please use either of the following numbers There is no extra charge from MatrikonOPC for calling their after hours support numbers Region Contact Information 1 780 231 9480 1 780 264 6714 Table 6 After Hours Support All MatrikonOPC Modbus Driver v4 5 1 User s Manual 12 MatrikonOPC Configuration The driver s GUI allows users to view and alter configuration parameters at run time When a user views a configuration parameter the information is retrieved and displayed The updated parameters are sent as a group to the driver when submitted Minimal configuration of the MatrikonOPC Modbus Driver is required for it to function properly but users can customize the driver s behaviour as required This chapter shows you how to configure the driver and describes each component in detail including the windows panels and menu commands The Driver Configuration section describes in detail how to configure the driver Driver Configuration The driver requires minimal configuration for it to run properly You can also customize the driver s behaviour as required This section shows users how to create and edit objects using the Configuration window Creating Objects The Insert New Object and Create New windows are used to create Modbus Device Link objects Insert New
32. iguring a UDP Port Device item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the B icon 2 The Insert New Object window Figure 16 appears Insert New Object Choose object type 4 Modbus UDP Device Cancel Figure 16 Insert New Object 3 From the displayed list select Modbus UDP Device Click on the OK button 5 The Create New window Figure 15 appears Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus UDP Device is selected then the Create New Modbus UDP Device window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Click on the OK button The object is created and will appear as a child of the UDP Port item MatrikonOPC Modbus Driver v4 5 1 User s Manual 38 MatrikonOPC OPC Data Items This section describes the OPC data items used in the MatrikonOPC Modbus Driver Modbus Items The MatrikonOPC Modbus Driver OPC item ID syntax is as follows PORT DEVICE X YYYYY N D F U P A S ZZ Table 19 shows the available item options
33. in lowest address Append a letter P to the end of an item ID to indicate that the 4X register should be written P to using Function 6 This option may be used in conjunction with a U When doing so the P should be placed after the U This option is available only with the Modbus Ethernet PLC and Modbus Serial devices Append a forward slash followed by an integer to the end of an item ID to access an ZZ individual bit in a 3X or 4X register The valid range for the bit index is O to 15 or O to 31 if the D modifier is specified These items are always read only A Append an A to the end of an item ID to indicate that the item should be parsed as an MatrikonOPC Modbus Driver v4 5 1 User s Manual 39 MatrikonOPC Field Description ASCII String Append a N to the end of the item ID to indicate that the item should be an array of N elements starting from register YYYYY Table 19 Available Item Options The syntax does not support items with a combination of D F and U modifiers Although the Tag Studio allows these items to be added the last letter in the combination is all that will be interpreted when reading values For example Port Device X YYYYYDU will act as an unsigned 16 bit value as the D is ignored Registers 3W and 4W are provided in case your unit does not conform to standard Modbus design They should only be used in your Modbus unit uses the non standard larger 32 bit reg
34. isplays the settings available for a connection to a Modbus SA85 or PCI85 Card Create new Modbus SA85 or PCI85 Card Modbus SA85 or PCI85 Card Hg Name Enabled Description Card Settings Card Number D Kau dae e Figure 8 Create New Modbus SA85 or PCI85 Card Window Table 13 describes the components of the Create New Modbus SA85 or PCI85 Card window Component Description Name of the object which becomes an element of the item ID for data items Name under the object Automatically converted to title case for display purposes Enabled Use this checkbox to enable i e checkbox is selected or disable i e checkbox is cleared communication for the object This field is optional takes any user defined text 64 character maximum for Description documentation purposes By default this field is blank Card Number The card number is the device number of the card installed Modbus Address o node address of the SA85 or PCI85 card maximum length of Table 13 Create New Modbus SA85 or PCI85 Card Window Components MatrikonOPC Modbus Driver v4 5 1 User s Manual 27 MatrikonOPC To create a Modbus SA85 or PCI85 Card 1 On the Configuration window select the Modbus configuration item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click onthe aay icon Th
35. isters Since 32 bit register design is not part of the standard Modbus protocol we cannot claim to successfully support his mode for any particular device Examples Consider the configuration shown in Figure 17 Current configuration Server Configuration 5 g Comi go Devicel go Device2 Ma Ethernetple1 ea meis000 Serialslavel U cand a cp terminal server Saj Terminal cig Udpi Devicel Device 2 Alias Configuration Figure 17 Configuration Example The Sample Item IDs shown in Table 20 are examples that could be created from the configuration shown in Figure 18 Sample Item ID Description Com1 Device1 3 1 Analog Input AI register 1 on serial device Device1 communicating using serial port Com1 Analog Output AO register 3 on serial device Device2 Com1 Device2 4 3P communicating using serial port Com1 All writes to this register will be done with Function 6 Ethernetpic1 3 7FS AI register 7 on device Ethernetplic1 as a 32 bit IEEE MatrikonOPC Modbus Driver v4 5 1 User s Manual 40 MatrikonOPC Sample Item ID Description float point real with the words swapped register 8 contains the least significant word Ethernetplic1 4 8UP AI register 8 on device Ethernetpici as an unsigned 16 bit integer and using Function 6 to write Serialslave1 Slave1 4 231F AO register 231 on device Slave1 communicating on serial sla
36. le indicates a hyperlink to the BOLD applicable associated information within this document or if applicable any external sources The User s Manual has been designed so that you can click on references in the document to jump to that referenced point without having to scroll through several pages in some cases For example if you were to see the sentence Refer to Figure 1 for more information pressing the CTRL key and clicking your mouse on the text Figure 1 will automatically take you to the location of Figure 1 within the document This manual consists of several sections and is structured as follows e Introduction this introductory chapter e Getting Started provides information on the minimum system requirements and how to contact MatrikonOPC s Support team e Configuration shows how to configure the driver and describes each component in detail including windows screens panels tabs and menu commands e OPC Data Items describes the driver s items e Troubleshooting provides solutions for common problems that may be encountered and answers to frequently asked questions MatrikonOPC Modbus Driver v4 5 1 User s Manual 7 MatrikonOPC References This document references information found within the following documents sites e www opcfoundation org e www matrikonopc com e Wwww opcsup port com e www modbus org e Modicon Modbus Protocol Reference Guide e Modb
37. m which you wish to read data MatrikonOPC Modbus Driver v4 5 1 User s Manual 23 MatrikonOPC Component Description ASCII Mode If this checkbox is selected communication will occur in ASCII mode If this checkbox is selected a read will occur on register 0 00001 to Cann Conneckion verify the connection by trying to read the point Retries The number of retries if timeouts occur maximum of 10 The number of seconds to wait before re trying the connection maximum of 3600 seconds Note This configuration will override the Reconnect Delay of the Serial Port Reconnect Delay The maximum number of registers to read write per transmission maximum of 123 Setting this value to O will cause the server to select the optimal size Max Registers and Coil blocks per Transmission Table 11 Create New Modbus Serial Device Window Components To create a Modbus Serial Device 1 On the Configuration window select a previously created Modbus Serial Port device for assistance refer to Creating and Configuring a Modbus Serial Port Device item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the B icon 2 The Insert New Object window Figure 6 appears lt Insert New Object Choose object type 4 Modbus Serial Device Cancel Figure 6 Insert Ne
38. messages maximum of 60000 milliseconds This delay can help control traffic load on the serial connection Note This information stays consistent across both tabs Intermessage Delay Table 9 Create New Modbus Serial Port Window COMM Port Tab Components Advanced Options Tab The Create New Modbus Serial Port Advanced Options tab Figure 4 displays the advanced settings available for a connection to a serial port MatrikonOPC Modbus Driver v4 5 1 User s Manual 19 MatrikonOPC w Create new Modbus Serial Port Modbus Serial Port li gt Name Enabled V Description Communication Settings COMM Port Advanced Options M DSA Flow Control P DSR Sensitivity M CTS Flow Control P XON XOFF Flow Control RTS Control DTR Control Enable Enable RTS rise delay RTS drop delay 0 msec 0 msec Reply Timeout 2000 msec Become Daal sec Retries 2 B InterMessage Delay 0 msec Cancel Figure 4 Create New Modbus Serial Port Window Advanced Options Tab Table 10 describes the components of the Create New Modbus Serial Port Advanced Options tab Component Description Name of the object which becomes an element of the item ID for data items under the object Automatically converted to title case for display purposes Note This information stays consistent across both tabs Name Use this checkbox to enable i e checkbox is selected or disable
39. onOPC Modbus Driver supports both hardware and software licensing IMPORTANT TO NOTE The following licensing information is described in detail within the Licensing Procedures document which accompanies the MatrikonOPC Modbus Driver software and User s Manual AN e Hardware and software key licensing information e Information about the MatrikonOPC Licensing Utility that is used to license driver software and the variety of ways in which licenses can be obtained e g Internet Connection Web Page Email e Licensing Q amp A and Troubleshooting Contacting Support The MatrikonOPC Customer Services department www opcsupport com is available 24 hours a day seven days a week Contact MatrikonOPC Support using the information below or send an email support MatrikonOPC com For Monday to Friday daytime support requests contact MatrikonOPC Support using the regional phone numbers provided in Table 5 Region Office Hours Contact Information North A i eee 8 00 am 5 00 pm 1 877 OPC 4 ALL UTC GMT 7 hours MST Europe Africa 9 00 am 5 00 pm 49 221 969 77 0 MatrikonOPC Modbus Driver v4 5 1 User s Manual 11 MatrikonOPC Region Office Hours Contact Information UTC GMT 1 hours CET Request OPC Support R 9 00 am 5 00 pm 973 174 65363 UTC GMT 3 hours oe Australia Asia 61 2 4908 2198 9 00 am 5 00 pm UTC GMT 10 hours AEST Request OPC Support Toll
40. orts Solution Computers come standard with RS 232 serial ports RS 485 serial ports must either MatrikonOPC Modbus Driver v4 5 1 User s Manual 44 MatrikonOPC be specially purchased or an RS 232 RS 485 converter must be purchased RS 485 and RS 422 allow you to serially chain all of the devices to a single communications port The devices then take turns on the communication port This allows reduced cost due to having to provide only a single communication port Also results in reduced bandwidth since the total bandwidth provided to all devices cannot exceed the bandwidth of the communications port Should I be using the 3W and 4W registers or the 3 and 4 registers Question What should I be using 3W and 4W registers or the 3 and 4 registers Solution The difference between 3W and 4W registers is the assumption as to the width of one register point For example in standard Modbus devices register 4 1 will send and receive 16 bits of data Daniel devices using a variant of the Modbus protocol 9 also called Daniel Modbus use 32 bit registers and send and receive 32 bits for each register requested or sent The actual protocol is different and they are mutually incompatible A standard Modbus device will not correctly accept data fed to it using the 3W and 4W registers and a Daniel Modbus device will not correctly accept data fed to it using the 3 and 4 registers Your Modbus device U
41. ponent Description Reply Timeout The number of milliseconds to wait before a timeout occurs maximum of 30000 milliseconds Table 15 Create New TCP IP Terminal Server Window Components To create a TCP IP Terminal Server device 1 oP ee On the Configuration window select the Modbus configuration item and either e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the ay icon The Insert New Object window Figure 1 appears From the displayed list select the TCP IP Terminal Server object type Click on the OK button The Create New window appears Figure 11 Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when TCP IP Terminal Server is selected then the Create New TCP IP Terminal Server window is displayed From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time Click on the OK button The object is created and will appear as a child of th
42. poses Enabled Use this checkbox to enable i e checkbox is selected or disable i e checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank The Modbus address of the device maximum length of 255 If set to O writing to this device will cause a Modbus broadcast message to go out to all devices on the communications port writing to all devices Modbus Address simultaneously When using a Modbus address of 0 you cannot read tags through the device link Change the address to match the address of the Modbus slave from which you wish to read data MatrikonOPC Modbus Driver v4 5 1 User s Manual 37 MatrikonOPC Component Description The maximum number of registers to read write per transmission maximum of 123 Setting this value to O will cause the server to select the optimal size Max Registers and Coil blocks per Transmission ASCII Mode If this checkbox is selected communication will occur in ASCII mode If this checkbox is selected then a read will occur on register 0 00001 Contin Connection to verify the connection Table 18 Create New Modbus UDP Device Window Components To create a Modbus UDP Device 1 On the Configuration window select a previously created UDP Port device for assistance refer to Creating and Conf
43. ration item and either MatrikonOPC Modbus Driver v4 5 1 User s Manual val MatrikonOPC e Right click your mouse and select Define New from the menu that appears or e Select the Define New menu option from the Edit menu or e Click on the B icon The Insert New Object window Figure 1 appears From the displayed list select the Modbus Serial Port object type Click on the OK button The Create New window appears Figure 3 a a ee Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus Serial Port is selected then the Create New Modbus Serial Port window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional 7 Edit the configuration components as desired Note For the object to be used for communication it must be enabled i e the Enabled checkbox is selected This can be done at any time 8 Click on the OK button The object is created and will appear as a child of the Modbus configuration item Creating and Configuring a Modbus Serial Device Note A Modbus Serial Device can be created as a child of a Modbus Serial Port device or a Modbus Serial Slave Port device The Create New window Figure
44. s 30 MatrikonOPC Modbus Driver v4 5 1 User s Manual 5 MatrikonOPC Figure 11 Create New TCP IP Terminal Server WiIndOW cceeseeeeseeeeseeeeseeeeeeeeneeeenas 31 Figure 12 Create New Terminal Server PLC Window s ssss 5 33 Figure 13 Insert New Object ccccsceeeseeeeeeeeeeeeeeeeeeeeeeaueeeeuaeeauaseauageauageauageauageeusgeausgeanas 34 Figure 14 Create New UDP Port WindOW ccsccecsceeeseeeeeeeeeeeeeeeeeeeaeeaeaeeeeaeeeuaeeeeseeensgeonas 35 Figure 15 Create New Modbus UDP Device WindOW sssssss 5 37 Figure 16 Insert New Object ccccsceeeseeeeeeeeeeeeeeeeeauaeeeeaeeeuaeeeeaseauaseeuageauageeuageasageauageonas 38 Figure 17 Configuration Example ccsccccsceeeseeeeeeeeeeeeeeeeeeeeeeeuaseeuaeeeuaseeuaeeeuaeeaeseeonsgeonas 40 Table of Tables Table 1 Terms and Definitions ccccsceeesceeueeeeeeeeeeeeeeuaeeeeaeeeuaeeeuaeeesageauaeeauaseeuaeeoseneaneneas 8 Table 2 Supported Features c cceccceececeeeeeeeeeeeeeaeeeeaseeeaeeeeeeaeeaueeeaueeeauaeeeuaeeasaueauansananens 10 Table 3 Files Installed in Modbus Folder For Stand Alone Server sc csseseseeseeenees 10 Table 4 Files Installed in Modbus Folder For UCS Driver Module cssssessseeseeeeees 11 Table 5 MatrikonOPC Support Regional Contact Information cccscsseseeseeseeseeeeeeeeeees 12 Table 6 After Hours SUpport cccceeeeeeeeee eee
45. s Manual or the MatrikonOPC Universal Connectivity Server User s Manual MatrikonOPC Modbus Driver v4 5 1 User s Manual c10 MatrikonOPC Creating and Configuring a TCP IP Terminal Server Device The Create New window Figure 11 displays the settings available for a connection to a TCP IP Terminal Service Device ay Create new TCP IP Terminal Server TCP IP Terminal Server ili Nime ili ame Enabled Description Device Settings Hostname localhost or C IP Address i B Port Number 502 Communication Settings Reply Timeout fi 000 msec Figure 11 Create New TCP IP Terminal Server Window Table 15 describes the components of the Create New TCP IP Terminal Server window Component Description Name of the object which becomes an element of the item ID for data Name items under the object Automatically converted to title case for display purposes Use this checkbox to enable i e checkbox is selected or disable i e Enabled checkbox is cleared communication for the object This field is optional takes any user defined text 64 character Description maximum for documentation purposes By default this field is blank Hostname The network name of the device IP Address The IP address of the device Port Number The TCP port on which the device is listening MatrikonOPC Modbus Driver v4 5 1 User s Manual 31 MatrikonOPC Com
46. s field is blank Note This information stays consistent across both tabs Port From the drop down list select the serial port to which the device is connected MatrikonOPC Modbus Driver v4 5 1 User s Manual 18 MatrikonOPC Component Description Default COM1 Define the communication rate by selecting a value from the drop down Baud Rate list Values range between 110 and 256000 Default 9600 Define the number of data bits by selecting a value from the drop down Data Bits list Values range between 4 and 8 Default 8 From the drop down list select the type of parity to be used Options Parity available are None Odd Even Mark and Space Default Even From the drop down list select the number of stop bits Options Stop Bits available are 1 1 5 and 2 Default 1 The number of milliseconds to wait for a device response before a Reply Timeout timeout occurs maximum of 30000 milliseconds Note This information stays consistent across both tabs The number of retries if timeouts occur maximum of 10 Retries Note This information stays consistent across both tabs The number of seconds to wait before re trying the connection maximum of 3600 seconds Reconnect Delay Note This configuration will be overridden by the Reconnect Delay of the Serial Device Note This information stays consistent across both tabs The number of milliseconds to wait between
47. ser s Manual should indicate whether the device registers are standard 16 bit or Daniel 32 bit Generally if one type does not work try the other Search the MatrikonOPC Support Knowledge Base at www opcsupport com to find the answers to other commonly asked MatrikonOPC Modbus Driver questions MatrikonOPC Modbus Driver v4 5 1 User s Manual 45
48. sssssssssnsrerrressnss 15 Creating and Configuring a Modbus Serial Port Device sssssssssssssssssrrrsrsnnrrrrrrrnnnrrrrrrrsnens 17 Creating and Configuring a Modbus Serial D VICC ciiciccescenenneene nen e nee n ene e nH EEDA E DEEDS EEE BEES 22 Creating and Configuring a Modbus Serial Slave Port Device cicsscsscenceneeneeneentensensensennennens 25 Creating and Configuring a Modbus SA85 or PCI85 Card ucscsscsscsscsnceneeneeneeneennensensensensensees 27 Creating and Configuring a MOGDUS Device witsciccecceneenene tent nen ented nnn EEDA EEE DEED EEDA EEE E DEED E EEE 28 Creating and Configuring a Redundancy Group Object s s ssssssssrsssrrssrrrsrrrrnenrrnnrrrnernrnnnnns 30 Creating and Configuring a Server Status LiSt cciceccecceseeceenenn teen enn nee ene n nH EEE E EEDA E EE EEE EEE 30 Creating and Configuring a TCP IP Terminal Server Device csscsscescenceneeneeneennentensensensensens 31 Creating and Configuring a Terminal Server PLC D VICC ccsscssceneeneeneeneentensententennensennennees 32 Creating and Configuring a UDP Port D VICC cicicceccentene ene n enn e ene n nnn n DEER DEED E DEAE EEE EEE DEED E EEE 35 Creating and Configuring a Modbus UDP D VICE cticiccescenteenn ene n nen n enn e nnn E EEE E DEED E EEE E EEE EEE 36 OPC Data ItCMS ccceeceeeeeeneeeeeeeeeeeeeeeeeeeeneeee eee eee eee eee eee ee 39 MOOUDUS teM Segir enon a her ine AAE EE E E EAE REE E bert aweeier eres A 39 DEN NET E A E E ears ied easenene aes
49. supported features Function Code Description Supported 01 Read Coil Status YES 02 Read Input Status YES MatrikonOPC Modbus Driver v4 5 1 User s Manual 9 MatrikonOPC Function Code Description Supported 03 Read Holding Registers YES 04 Read Input Registers YES 05 Force Single Coil 06 Preset Single Register YES 07 Read Exception Status 11 Fetch Communications Event Counter 12 Fetch Communications Event Log 15 Force Multiple Coils YES 16 Present Multiple Registers YES 17 Report Slave ID 20 Read General Reference 21 Write General Reference 22 Mask Write 4X Register 23 Read Write 4X Registers 24 Read FIFO Queue Table 2 Supported Features Installed Files The MatrikonOPC Modbus Driver may be installed as a UCS driver module or as a stand alone OPC server The installation program copies all necessary files to the target computer and creates short cut icons in the Start menu For information on non driver specific files that are installed on the system please refer the MatrikonOPC Universal Connectivity Server User s Manual or the MatrikonOPC Server User s Manual The driver specific files listed in Table 3 are installed by default if the driver is installed as a stand alone server in the following location C Program Files Matrikon OPC Modbus File Name Description MatrikonOPC Modbus Driver Release Notes pdf Release
50. te Modbus Device This option will only be available if driver of the card is installed Redundancy Group Not available TCP IP Terminal Server Terminal Server PLC UDP Port Modbus UDP Device Table 7 Objects Available Under Insert New Object Window To insert a new object 1 On the Configuration window either select the Define New menu option from the Edit menu or click on the amp amp icon 2 The Insert New Object window Figure 1 appears From the displayed list select the type of object to be created Note Different objects may be available depending on which object is currently selected in the tree view Click on the OK button The Create New window appears To create a newly inserted object 1 From the Create New window enter a name for the object This name is part of the item ID that globally identifies data items from under the object Users may also choose to enter a description of the object Edit the configuration components as desired Click on the OK button The object is created Note For the object to be used for communication it must be enabled i e Enabled checkbox is selected This can be done at any time Create New Window A device specific window is displayed for each Modbus device Modbus Ethernet PLC TCP IP Modbus Serial Port Modbus Serial Slave Port Modbus SA85 or PCI85 Card Redundancy Group Server Status List MatrikonOPC Modbus Driver v4 5 1
51. untered and questions asked while using this OPC product Please check the following Problems Solutions and Questions Answers sections before contacting the MatrikonOPC Support team Problems and Solutions This item is set to broadcast address 0 error message Problem While configuring Modbus I get an error stating This item is set to broadcast address 0 Solution If the Modbus address is set to O this indicates that the device link is configured for writing to all Modbus slaves that are available When using a Modbus address of 0 you cannot read tags through the device link Change the address to match the address of the Modbus slave from which you wish to read data Trouble communicating through a network Problem Problems communicating to the Modbus device through a network Solution Make sure users can ping the device 1 Use Start gt Run with the command CMD to bring up a command window 2 In the command window enter Ping ipaddress e g C temp gt ping 127 0 0 1 Pinging 127 0 0 1 with 32 bytes of data Reply from 127 0 0 1 bytes 32 time lt l0Oms TTL 128 Reply from 127 0 0 1 bytes 32 time lt 10ms TTL 128 1 Reply from 127 0 0 1 bytes 32 time lt 10ms TTL 128 1 Reply from 127 0 0 1 bytes 32 time lt 1l0ms TTL 128 Ping statistics for 127 0 0 1 Packets Sent 4 Received 4 Lost 0 0 loss Approximate round trip times in milli seconds
52. us Application Protocol Specification Document Terminology The terms screen and window and tab and panel are used interchangeably throughout this document Table 1 provides a list of definitions for terms used throughout this document Term Abbreviation Description ACL Access Control List Component Object Model A method for organizing software specifying how to som build components that can be dynamically interchanged DA OPC Data Access Provides access to real time process data DCOM Distributed Component Object Model An extension of COM that allows communication between COM components over a network DDE Dynamic Data Exchange Allows the transfer of data between two running applications FIFO First In First Out The way data stored in a queue is processed HDA OPC Historical Data Access Matrikon Matrikon Inc MatrikonOPC Matrikon s brand name for its OPC servers and clients OPC A communication standard Refer to www opcfoundation org for more information PLC Programmable Logic Controller Table 1 Terms and Definitions MatrikonOPC Modbus Driver v4 5 1 User s Manual 8 MatrikonOPC Getting Started This chapter contains important information about configuring the driver and how to contact Matrikon s Support team The System Requirements section shows how to avoid future problems by ensuring that the system meets the minimum software and h
53. ve connection Serialslavei as a 32 bit IEEE float point real Tcp terminal server Terminal1 1 3DS DI coil 3 on device Terminal1 communicating on TCP IP connection Tcp terminal server as a 32 bit integer with the words swapped register 4 contains the least significant word Udp1 Device1 0 4 3 Bit 3 of Digital Output DO coil 4 on device Device communicating on UDP connection Udp1 Note Although the DO register file is normally writable since this ItemID specifies a bit it is read only Udp1 Device1 1 4U DI coil 4 on device Devicei1 communicating on UDP connection Udp1 as an unsigned integer Udp1 Device2 1 9D 31 Udp1 Device2 1 9DS 31 Bit 16 of DI coil 9 on device Device1 communicating on UDP connection Udpi as a 32 bit integer actually bit 15 of register 10 Bit 16 of DI coil 9 on device Device1 communicating on UDP connection Udp1i as a 32 bit integer actually bit 15 of register 9 since the words are reversed Table 20 Sample Item IDs MatrikonOPC Modbus Driver v4 5 1 User s Manual MatrikonOPC Limitations MatrikonOPC Modbus Driver has the following limitation 1 Array data type OPC items OPC items with a data type of Array are read only Refer to the MatrikonOPC Modbus Driver Release Notes for known issues MatrikonOPC Modbus Driver v4 5 1 User s Manual 42 MatrikonOPC Troubleshooting The following section addresses some of the most common problems enco
54. w Object 3 From the displayed list select Modbus Serial Device Click on the OK button 5 The Create New window Figure 5 appears Note The item selected in the Insert New Object window will determine which Create New window is displayed For example when Modbus Serial Device is selected then the Create New Modbus Serial Device window is displayed 6 From the Create New window enter a name for the device link Note An error message is displayed when a valid name is not entered If the entered name is a duplicate of an existing device link the new device link will not be created The Description field is optional MatrikonOPC Modbus Driver v4 5 1 User s Manual 24 MatrikonOPC 7 Click on the OK button The object is created and will appear as a child of the Modbus Serial Port item Creating and Configuring a Modbus Serial Slave Port Device Note A Modbus Serial Device can be created as a child of a Modbus Serial Port device or a Modbus Serial Slave Port device For more information refer to Creating and Configuring a Modbus Serial Device The Create New window Figure 7 displays the settings available for a connection to a Modbus Serial Slave Port ay Create new Modbus Serial Slave Port Modbus Serial Slave Port li Af Name Enabled Description Communication Settings COMM Port Port com Baud Rate 3600 Data Bits fa z Parity Even v Stop Bits 1 sd Cancel

Download Pdf Manuals

image

Related Search

Related Contents

DDX8017 - Kenwood  JVC RX-5060S User's Manual  APC J25B uninterruptible power supply (UPS)  HP 255 G3    2300W G - Toolstream  Stamina Products 35-1625DW User's Manual  

Copyright © All rights reserved.
Failed to retrieve file