Home

KEPServer Users Manual

image

Contents

1. 2 78 e Copyright O 1998 KEPware IncErreur Style non d fini 8 Nexthit Ctrl Shift Enter on the keyboard to execute the formula N Microsoft Excel 1 iS 9 Next we going to look at an array of data form a server running on another on our local network Copyright O 1998 KEPware Inc Communicating with the Server e 79 10 Select the range of cells for your array In our example it is cells A6 D7 11 Enter the following formula PC100 NDDE Device_1 RO 2 4 X Microsoft Excel Book1 Iof xi 158 File Edit View Insert Format Tools Data Window Help la lt D 5 3 9 4 FO 10 B 8 5 d 4 9 ce n fer gt ER 8 Ja su v 6 Device 15 RO 2 AT br E Il z 1 10538 E 19461 9605 9605 9605 4 9605 9605 9605 9605 ES 6 RO 2 A i ES 10 11 12 13 14 15 16 19 4 M NSheeti Sheet Sheet3 Edit T F NM f z 12 Be sure to place single quotes around the application and topic because Excel does not recognize the as part of the formula 13 This tells Excel to look f
2. Configuring the Receive Modem Modem Cabling Configuring the Initiate Modem Setting the Client up to Use the Modem Modem Tag EXGELIMAS A MODEM CLIENT 5255256 ds o rp Hn edema duni ae Connecting to the Server from Excel and 94 TROUBLESHOOTING ossis tses euin oE Eees oS EEE ers SESS aSr SURE EAE SEEE e S VOS EE OS eSI US SEOS oea 97 ERROR CODES IN THE DDE SERVER nie eere tinte errare 97 COM AS already lise ii 97 Invalid device ate uses Suge su 97 The device name 97 Device ID network ID is already assigned to device device name nennen 98 Cannot multidrop model name 1 lt and model name 2 devices on the same channel ess 98 device ID italiani oon aetatis a P a E e eene t edid bn Rd 98 Device not found device name gt Invalid channel 7 11 The channel name channel name gt is already in use Charnnelnotfound channel names e e Ie eti be RUN RENNES ape AEEA RH ERI Modem Line line name gt is already in 99 Unable to write to tag lt tag name tag address gt on device device name seen 99 Device device name gt not responding 99 Unable to write to lt address gt on
3. 105 OVERVIEW ihe eoe en Pei an 105 MN INDOWS 05 la du e RW RETI e ER te x ne IN d ee ERE te I e A EO Re he 105 15 WINDOWS N 107 Making KEPServer Auto Start in Win 107 APPENDIX A AT COMMANDNYSET iedieieestotete be Sel e eee a ERES REI oe PES cose sesesseeccdand suas SEE SU VES TER ricaricata 1 SUMMARY AND ACKNOWLEDGEMENTS eene enne eaten en 1 Summary Of COMMONS ven d dee e to erbacea elle 1 DIP Switches Modems with DIP Switches Only 7 S Reglistets e pe p RN sea OE D om da ene o D Keats EIS 8 Copyright 1998 KEPware Inc Getting Started iii Getting Started Overview This Users Manual is designed for first time users of KEPware s KEPServer Once set up the DDE Servers can communicate with any OTS Off the Shelf Product that uses DDE Advanced DDE or Fast DDE These products include but are not limited to KEPware HMI Rockwell Software RSView Wonderware Intouch Cimplicity Microsoft Excel and Access and Lotus 1 2 37 After being properly configured the KEPServer should look similar to this before connecting to the driver KEPServer Server Example kdp OF x File Edi View Mode Channels Devices Tags Tools Help Dis see lle 3 4 EHE Koyo Tagnam id Address Datatype Scaniate 3 4btnStop xD B
4. Mode Wi Line 5 Ae ey eE EPF el b li n 5 L 0 p 06 03 1998 11 21 25 3 Device Manager KEPware 32 Bit Device Manager 1 50 10 Mode Menu 1 Off Line Take the DDE Server off line or disconnect it 2 OnLine Place the Server on line or connect it Copyright O 1998 KEPware IncErreur Style non d fini KEPServer Server Disia xi K ovo Feeder 06 03 1998 11 21 25 3 Device Manager KEPware 32 Bit Device Manager V 1 50 10 Channels Menu 1 Add Channel Add a new Channel to the project 2 Remove Channel Remove Delete an existing channel from the project 3 Channel Properties View Edit an existing channel in the project Copyright O 1998 KEPware Inc Inside The DDE Server 5 i KEPServer Server Example kdp File Edi View Mode Channels Tags Tools Help Add Device Diew 9 E H Koyo Device Properties 5E 5 Lise Wizard 06 03 1998 11 21 25 3 Device Manager KEPware 32 Bit Device Manager 1 50 10 n Project unlocked Server is offline 7 Devices Menu 1 Add Device Add a new device to an existing channel 2 Remove Device Remove Delete an existing device from a channel 3 Device Properties View Edit an existing Device 4 Use Wizard When checked allows the user to use the Device Wizard to enter devices Copyright O 1998 KEPware IncErreur Style non d
5. Cancel Apply Quotes are needed because of 4 The Target will be as follows the space between Program and C Program Files KEPware KEPDDe kepdde exe run myproject kdp Files in the path 5 Start in directory will be the directory in which the server project is saved C Program Files KEPware KEPDDe Projects 1998 Kessler Ellis Products Automatically Running a Server at Startup e 105 6 Inthe Run list box select Minimized KEPServer Properties KEPwareXKEPDDE kepdde exe run myproject kdp C Program Files KE Pware KEPDDE Projects Mined 10 0 gl 7 Click Apply to accept the shortcut and click OK to exit the dialog 106 Automatically Running a Server at Startup Windows NT Making KEPServer Auto Start in Win NT The only difference between setting up shortcuts in Windows NT and Windows 95 is that Windows NT has an extra tab for share permissions The default is for everyone to have access 1 Copy the shortcut from the KEPware Products folder to the Startup folder 2 Select Properties from the shortcut menu 3 Select the Shortcut tab KEPServer Properties General Shortcut Security E KEPServer Target type Application Target location KEPDDE Target D Program Files KE Pware KEPDDE kepdde exe Ronin Seperate Menon Space Start in D Progiam Files KEPwareSKEPDDE Projects Shortcut Key None Bun Norma
6. Address Cancel Data type Boolean Help Scan time 1000 milliseconds Privilege Read only Comment 3 Enter your tag information and then press OK when finished 1 Tag Name A tag name is used to identify a piece of data associated with a location on a given device The name you assign a tag should indicate something about what the data means i e EventTimerl FlowRate etc This name will be used as the item name in subsequent DDE conversations involving the data the tag represents Address tag address refers to the location in the device that supplies the data Refer to the driver s on line help to determine valid address locations for the device in question Data Type The data type assigned to a tag indicates the format that will be used when referencing data at the device address The data types allowed are dependent upon the driver being used and the driver specific address that has been entered Scan Time The scan time determines the rate at which data will be requested from the device If a 1000 ms scan time is entered data will be requested from the device for this tag once every second Privilege Every address in the device has a Read Write privilege assigned within the driver The user cannot set Write privilege for a read only address but he can set read only privilege on a read write address Copyright O 1998 KEPware IncErreur Style non d fini 6 Comments Th
7. Dae Time Level Souce Messa PE Driver Help Boolean 1 Technical Support About the server 11 21 25 3 Device Manager KEPware 32 Bit Device Manager 1 50 10 Di Project unlocked Server is offline 4 Help Menu 1 Contents F1 Displays the contents of the KEPServer help file 2 Search Search for help on a particular item that may not be in the area of focus 3 Driver Help Displays a dialog box from which you can select the help file of any KEPware 32 bit driver you have loaded 4 Technical Support Displays a dialog box which lists the ways to contact KEPware Technical Support 5 About the Server Displays a dialog box containing information about the server and a button for accessing driver version information Driver Help x Universal Protocol Help Driver Help Allows the user to open the help files of any KEPware 32 bit driver that is installed Copyright 1998 KEPware IncErreur Style non d fini Technical Support HelplTechnical Support Displays the different avenues available to the user for contacting KEPware Technical Support About KEPServer HelplAbout the Server Displays the Version number of the currently loaded server and allows the user access to the same information for the Installed drivers 1 Versions Displays a dialog box which indicates the Version and Ser
8. 100 ii e Copyright O 1998 KEPware IncErreur Style non d fini Communications error on COMn error mask 100 Bad address in block lt start address to end address gt on device device name esse 100 Only one ERROR tag may be defined per device 101 Device address lt address gt 101 101 Device address lt address gt is not supported by model lt model name gt 101 Unable to load driver lt driver name gt 101 No device driver DLLs found in 102 NO device driver DELS loaded or REUNIR RARE RIXA TRE RE RR ARIA AER 102 The driver for device type gt devices is not loaded iii 102 The requested operation could not be completed due to an internal memory allocation error 102 Memory allocgtion rior cagliari RU E ERN 102 Unable t load device map informatiofi t TORA 103 Unable to save device Map infOFmatiOf a aeo rte EDU ERE XR ER VS EN AE P RR eh at 103 Device device name 1s fiotdefined i t A ORY as rers e AN 103 COMns in use by another applications iit RN ERR EUR UE ERR RA 103 Unable 104 COMn does notieXisl cose 104 Error opening COMn ev E RI ee IRE UH a seite ans 104 AUTOMATICALLY RUNNING A SERVER AT STARTUP
9. Boolean Read write Read write Read write 18 Copyright 1998 KEPware IncErreur Style non d fini Edit Tag Properties The Tag properties consist of one page for identifying and configuring a KEPServer Internal Tag database associated with a specific device All white areas can be edited grayed out areas cannot These fields will be explained in detail later in Creating a DDE Project NOTE Use of the KEPServer Internal Tag database is OPTIONAL Most applications use Dynamic Tag addressing to access driver specific data Tag Properties Copyright O 1998 KEPware Inc Inside The DDE Server 19 The Button Bar The button bar provides access to the primary menu bar functions without the need to select a menu bar or shortcut item elete Existing ave Current dit Existing Tags i Spem Ap Eang b TR i dit Existing Devices isconnect The Server rom A Device Driver elete Existing Devices 20 Copyright 1998 KEPware IncErreur Style non d fini OPC Settings KEPServer can automatically open and run a project when invoked from an OPC client To invoke the OPC Settings dialog box select Settings OPC Settings 1 Inthe OPC Settings dialog check Auto Start 2 From the Project select dialog box select the project you wish to run when the OPC client starts OPC Settings OPC Settings When Auto Start is selected the project di
10. 1 amp F1 Z5 Resets modem to factory default profile 2 amp F2 amp Displays a list of ampersand amp commands amp A Enables disables additional result code subsets see Xn amp A0 ARQ result codes disabled amp A result codes enabled amp A2 V 32 modulation indicator added amp A3 Protocol indicators added LAPM MNP NONE error control and V42bis MNP5 data compression amp Bn Manages modem s serial port rate amp BO Variable follows connection rate amp Bl Fixed serial port rate amp B2 Fixed in ARQ mode variable in non ARQ mode 4 Appendix A AT Command Set amp Cn amp Dn amp amp amp Hn Controls Carrier Detect CD signal amp C0 CD override amp Cl Normal CD operations Controls Data Terminal Ready DTR operations amp DO override 621 DTR toggle causes online Command mode amp D2 Normal DTR operations amp D3 Resets on receipt of DTR Loads a read only non programmable factory configuration amp FO Generic template amp Fl Hardware flow control template amp F2 Software flow control template Sets Guard Tone amp GO No guard tone U S and Canada amp G1 550 Hz guard tone some European countries requires BO setting amp G2 1800 Hz guard tone U K requires BO setting Sets Transmit Data TD flow control see also amp Rn amp HO Flow control disabled amp HI Hardware flow control Clear to Send CTS amp
11. 33600 External Properties r To connect at this speed Copyright 1998 KEPware Inc Using Modems with KEPServer e 89 12 The next section Connection allows you to configure Data Bits Parity and Stop Bits Once again we recommend that you configure these settings to match the target device settings The other options on this page can be left at their defaults Sportster 28800 33600 External Properties 13 At the bottom of the Connection page is the Advanced button Click this button The Advanced Connection dialog allows you to configure error correction and flow control for the initiating modem Consult your KEPServer driver help for the recommended settings In most cases we recommend that you enable error correction and data compression Flow control can go either way we did enable it during testing and development Once the settings on the Advanced Connections page have been set you can finish the initiating modem configuration by clicking the OK button on each dialog until you are back at the modem list within KEPServer Aldiviainicieldi ICloInIniel 90 e Copyright O 1998 KEPware IncErreur Style non d fini 14 Once you are back at the modem list in KEPServer you can click the OK button seen when editing an existing project or the Next button when editing a new project Assuming at this point you have just edited an existing direct connect project your KEPServer project is now re
12. 8800 Sportster 2 Dialing Properties Cancel Help The device shortcut provides yet another way to edit the properties add or delete device Clicking the right mouse button while a device is selected accesses the shortcut Commands that are not valid will not be displayed For example if you have not copied a device you will not see the paste command 16 Copyright 1998 KEPware IncErreur Style non d fini KEPServer Dnet240 tests kdp oee Sa osi EEG Coml oan 5 V41200 0 Boolean 1000 Read Wiite V0 0 Boolean 1000 Read write V7620 0 Boolean 1000 Read write Copyright 1998 KEPware Inc Inside The DDE Server 17 Edit Device Properties The Device properties consist of one or more pages identifying the device and its channel white areas can be edited grayed out areas cannot The fields will be explained in detail later in Creating a DDE Project There can be more than one device on a channel E dit Device Properties Tag Shortcut The tag shortcut provides yet another way to edit the properties add or delete a tag Clicking the right mouse button while a tag is selected accesses the shortcut Commands that are not valid will not be displayed For example if you have not copied a tag you will not see the paste command KEPServer Dnet240 tests kdp V41200 0 V0 0 V7520 0 1000 1000 1000 Boolean Boolean
13. Add On is designed to allow communications with remotely located devices via a modem connection Because KEPServer makes use of the Windows TAPI functions you can use any modem that can be attached or installed into your PC Additionally you will be familiar with its functionality as it is a standard Windows interface KEPServer 32 Bit Device Drivers The drivers are designed specifically for use with 32 bit KEPware products running on either Windows 95 or the Windows NT operating system using Intel microprocessor based computers The drivers use device specific protocols to communicate with their PLCs Descriptions of the different data types and the addressing scheme should be understood before attempting to use the drivers in any project Information specific to each driver can be found in its associated online help Any errors or questions concerning drivers should be addressed to the technical support division of KEPware at the telephone numbers or e mail addresses provided KEPServer 32 Bit Helps The help files for the DDE server and the 32 bit drivers will provide you with all the information you need to get a specific server package up and running The help files support full content and index searching and allow you to print their contents Getting Started vii KEPServer Features e Supports OPC e Supports AdvancedDDE FastDDE XL Table and Text e Supports NetDDE e Supports Modem Connectivity Configurati
14. Bit mapped register Select the bit s you want on and set 13 to the total of the values in the 1998 Kessler Ellis Products Value column For example ATS13 17 enables bit 0 value is 1 and bit 4 value is 16 Bit Value Result 0 1 Reset when DTR drops 1 2 Reset non MNP transmit buffer from 1 5K to 128 bytes 2 4 Set backspace key to delete 3 8 On DTR signal auto dial the number stored in at position 0 Bit Value Result 4 16 At power on reset Auto Dial the number stored in at position 0 5 32 Reserved 6 64 Disable quick retrains 7 128 Disconnect on escape code The 1 5K byte non ARQ buffer allows data transfer with Xmodem and Y modem type file transfer protocols without using flow control The 128 byte option lets remote users with slower modems keep data you re sending from scrolling off their screens When remote users send your computer an XOFF Ctrl S and you stop transmitting the data in transit from your modem s buffer doesn t exceed the size of their screen This is also very helpful in situations when a remote modem printer application is losing characters Appendix A AT Command Set e A 9 Register Default Function S15 0 Bit mapped register setup To set the register see instructions for S13 Bit Value Result 0 1 Disable ARQ MNP for 22 1 2 Disable ARQ MNP for V 22bis 2 4 Disable ARQ MNP V 32 V 32bis V 32terbo 3 8 Disable MNP handshake 4 16 Disable
15. DTR If the modem receives the ATH command it ignores S38 and immediately hangs up Bit mapped register setup To set registers see instructions for 13 Bit Value Result 0 1 Distinctive ring enabled 1 7 2 128 Reserved Users Guide KEPware Form 5130 3 To Register a KEPware OPC DDE Server fill out this form and Fax to Call With Mail to 207 846 5947 207 846 5881 KEPware 81 Bridge St E mail to Yarmouth ME 04096 Teksuprt kepware com Serial Number Computer ID Registrant Information all information is required for driver registration Contact Name Company Name Street City State Province Postal Code Phone Fax E Mail Where was the software purchased from This is a single user registration and should be unlocked for the final user only T The Computer ID is unique to the machine that the software is being unlocked on Copyright O 1998 KEPware Inc e T I 260 0000 T 2 Appendix A AT Command Set KEPware Form 8130 3 Trouble Feedhack Report Email teksuprt kepware com Fax 1 207 846 5947 Product Serial Number s Company Name Contact Name Address Phone Fax E mail If KEPware If the KEPServer Version NO Server Version NO Driver Version NO Driver Name If our are using Modbus is your device a Modicon PLC or Other Operating Platf
16. Excel is using regular DDE rather then Advanced like KEPware does every link to the server is its own and takes up ram After about 200 links you will start to bog the system down 4 Connecting to the server and reading an array of data will get around this problem as long as the server you are using supports arrays See the individual help files for each server to verify array support 76 e Copyright O 1998 KEPware IncErreur Style non d fini 5 Select a range of cells to house your array of data We have selected cells A3 to D4 for an array that is 2x4 N Microsoft Excel 1 lt 1 File Edit View Insert Format Tools Data Window Help 5 lt JOSH o 5 Aria 10 Ji 8 3 5 4 gt T IAA i DIO Fi 191 B 5 jae Sheet2 Sheet3 506661 NM f z Ready Copyright O 1998 KEPware Inc Communicating with the Server e 77 6 While the cells are still selected enter the following formula kepddelDevice 2 RO 2 4 This will be one link that gets addresses RO R7 in a 2x4 array 7 Do not forget to put the single quotes around the address Excel does not recognize the brackets as valid components of a DDE formula and will give you an error N Microsoft Excel Book1 Paol 200
17. H2 Software flow control XON XOFF amp H3 Hardware and software flow control Users Guide amp In Sets Receive Data RD software flow control see amp Nn Sets connect speed If connection cannot be also amp Rn established at this speed the modem will hang up amp IO Software flow control disabled Sets ceiling connect speed if amp Un is greater than 0 811 XON XOFF signals to your modem and remote See amp Un system amp NO Variable rate amp D XON XOFF signals to your modem only amp N1 300 bps amp N2 1200 bps amp Kn Enables disables data compression amp N3 2400 bps amp KO Data compression disabled amp N4 4800 bps amp Kl Auto enable disable amp NS 7200 bps amp K2 Data compression enabled amp N6 9600 bps amp K3 5 compression disabled amp N7 12 000 bps amp Mn Sets Error Control ARQ for connections at 1200 amp N8 14 400 bps bps and higher amp N9 16 800 bps amp MO Normal mode error control disabled amp NIO 19 200 bps amp MI1 Reserved amp N11 21 600 bps amp M2 Reserved amp N12 24 000 bps amp M3 Reserved amp N13 26 400 bps amp M4 Normal ARQ amp N14 28 800 bps amp M5 ARQ mode amp N15 31 200 bps amp N16 33 600 bps 1998 Kessler Ellis Products Appendix A AT Command Set e 5 amp Pn amp Rn amp Sn amp Sets pulse rotary dial make break ratio amp PO U S Canada ratio 3990 61906 amp 1 U K ratio 33 67 Sets Receive Data RD hardware flow control Re
18. IncErreur Style non d fini FIX32 Untitled opc PowerT ool 17 Enter a Group Name and Description to identify the tag group in Fix32 18 Make sure you check the Enable box Otherwise you will be unable to communicate with the group or any items attached to it 19 Select Synchronous or Asynchronous as an I O Type 20 Select Cache as a Data Source type Cache reads are typically faster and recommend 21 Set the Update Rate Deadband and Poll Rates as your project requires See the Intellution OPC Help file for more information 22 Next click the Add Item button located at the bottom left hand side of the OPC Power Tools window third from the left Copyright 1998 KEPware Inc Communicating with the Server e 49 7 CAFIX32XUntitled opc PowerT ool Device 1 Tag 1 No Access Path seve H 23 Enter a Item Name and Description to identify the tag group in Fix32 24 Make sure you check the Enable box Otherwise you will be unable to communicate with the item 25 Click on the Browser Server button to select a Item Id or Static tag within KEPServer 50 o Copyright 1998 KEPware IncErreur Style non d fini Browse OPC Server E KEPServer gt Device 2 gt Device 3 Device 4 Device 5 gt Device E Device 1 Tag 1 Device 1 Tag 1 Copyright O 1998 KEPware Inc 26 27 28 29 Select an ItemID from the server
19. KEPware IncErreur Style non d fini Creating A DDE Project There are 3 steps in creating a DDE project in the KEPware KEPServer First add and name a channel for a comm port Modem or PC card Second add and name a device i e a PLC or other control device Third add a tag either directly into the project or dynamically from an attached client Adding a Channel In KEPServer a channel 1 Double click on the DDE Server icon on your desktop or in your start menu You refers to the coinm nications should get an untitled project that is ready to be configured driver you select to gather data In this example we used Note The version specific information which appears in your Message Log may not the KOYO Direct Net driver match what is represented here KEPServer Untitled X File Edit View Mode Channels Devices Tags Tools Help 24 Dae Time Leve Souce Message 0 06 03 1338 11 21 25 3 Device Manager KEPware 32 Bit Device Manager V1 50 10 2 Project unlocked Server is offline 4 2 Click the Add Channel icon in the button bar to start the Add Channel Wizard Copyright 1998 KEPware Inc Creating A DDE Project e 25 channel name can be from 1 to 31 characters in length It must begin with a letter but the remaining characters can be any combination of letters numbers and the underscore character Ehannel Name Untitled At any time you may click
20. Server Connection 9 Inthe I O Driver Server Connection Window click the Use Local Server radio button then click Connect to connect to the OPC Power Tool 7 C FIX32 Untitled opc PowerT ool OPCDrv OLE for Process Control Client Version 7 11 10 In the OPC Power Tool window you will add the Servers that you wish to connect to Tag Groups related to those servers and Tags within each Tag Group To start you will need to add a Server 11 Click the Add Server button located in the lower left hand corner of the OPC Power Tool window located first from the left 46 e Copyright 1998 KEPware IncErreur Style non d fini Select an OPC Servet KEPServer 12 Select an OPC Server from the browser window and click OK In our example the only local server we have loaded on our machine is KEPServer Copyright 1998 KEPware Inc Communicating with the Server 47 7 CAFIX32XUntitled opc PowerT ool 13 Enter a Server Name and Description to identify the server within Fix32 14 Make sure Enable is checked otherwise you will not be able to communicate with any devices in this server 15 Leave the Save on Disconnect box unchecked KEPServer does not support this function Leave the Client Settings at their default 16 Next click the Add Group button located at the bottom left hand side of the OPC Power Tools window second from the left 48 e Copyright O 1998 KEPware
21. Tools Edit tag Database from the Main Menu Click New to enter a new tag Copyright O 1998 KEPware IncErreur Style non d fini Tag Database 6 Tag Lom Security Help Address binSton Scon rate ues Beet Iu I 238 Data Type Discrete 7j yp n Delete New 8 Close Log data laJ Script 8 Alarms 2 gt 9 Above is an example of a local DDE tag referencing a tag already added to the KEPware DDE Server m FlowRate Security Read write Node Local M DDE Security Readony v Address 0 Scan rate msec Add pdate Data Type Use deadband A Use linear scaling lete I New y Close Log data laJ script 8 Alarms E 2 gt Clamp eng values 10 Above is an example of a local DDE tag being dynamically added to the KEPware DDE Server Copyright O 1998 KEPware Inc Communicating with the Server e 73 Tag Database Is ACBlowerSpeed Security Read write M Help Node Network M DDE Security Read only Address 0 Scan rate 1000 wies Add 3 Update Data Type m ni Use linear scaling elete Clamp eng values 8 Close _ Log data 8 Alarms 2 11 Above is an example of a NetDDE tag being dynamically added to the KEPware DDE Server Address AC Stop Scan rate 1000 El me Add Data Type Discrete Y yp E Delete New 8 Close Le script e Alarms 2 12 Above is an example
22. X3 or higher Displays a list of Dial commands En Sets local echo Echo OFF El Modem displays keyboard commands Fn Sets online local echo of transmitted data ON OFF FO Local echo ON Modem sends a copy of data it sends to the remote system to your screen Fl Local echo OFF Receiving system may send a remote echo of data it receives Hn Controls ON OFF hook HO Hangs up goes on hook HI Goes off hook In Displays the following information 10 Four digit product code 1 Results of checksum D Results of RAM checksum I3 Product type I4 Current modem settings I5 Nonvolatile memory NVRAM settings I6 Link diagnostics I7 Product configuration 2 Appendix AT Command Set Ln Mn Controls speaker volume internals only LO Low volume L1 Low volume L2 Medium volume L3 High volume Operates speaker MO Speaker always OFF MI Speaker ON until CONNECT M2 Speaker always ON Speaker ON after dial until CONNECT Returns online O0 Returns online Ol Returns online and retrains Sets pulse dial for phone lines that don t support touch tone dialing Displays suppresses result codes QO Displays result codes QI Quiet mode no result codes Q2 Displays result codes only in Originate mode Users Guide Sr b n Sets bit b of register r to n 0 OFF or 1 ON Sr n Sr S T Vn Sets register r to n Displays contents of S Register r Displays a list of the S
23. e 33 New Device Model The device you are defining uses a device driver that supports more than one model The list below shows all supported models Select a model that best describes the device ou are defining Device Model lt Back Depending on the driver used in 3 If you are defining a device that supports more than one model select the model your application you may not need that best describes the device you are defining from the list box Click Next when to select a device model In some you are done instances your exact device may not be listed When this occurs pick the device model which most closely matches yours New Device ID The device you are defining may be multidropped as part of a network of devices In order to communicate with the device it must be assigned a unique ID our documentation for the device may refer to this as a Network ID or Network Address Device ID en 34 Copyright 1998 KEPware IncErreur Style non d fini The Device ID is another parameter 4 If the device you are defining supports multi dropping then the spin button which can cause communications control provides an ID that should be used when addressing the device The ID Janure should be the same as the Node ID you assigned when configuring the device in the device manufacturer s programming software Click Next when done New Device Summary If t
24. fini i KEPServer Server Example kdp IE XI File Edit View Mode Channels Devices Tools Help Sle se Remove Tag EHE Koyo Feeder Datatype S Boolean 1 Dae Time Leve Souce Message 1 06 03 1338 11 21 25 3 Device Manager KEPware 32 Bit Device Manager V1 50 10 2 Project unlocked Server is offline A KEPServer provides its own internal database for tag definition This feature can be useful when you need to create an alias for a driver specific data item The tag database allows you to enter a tag name and define the driver specific information for the tag Once created this tag can be referenced from DDE applications Use of KEPServer s Internal Tag database is OPTIONAL Most applications will access driver specific data such as register memory or I O using Dynamic Tag addressing Use of Dynamic Tags or Internal Tags for accessing data from the KEPServer will be covered in following sections Tags Menu 1 Add Tag Add a new tag to an existing device 2 Remove Tag Remove Delete a tag from an existing device 3 Tag Properties View Edit an existing tag Copyright O 1998 KEPware Inc Inside The DDE Server 7 KEPServer Dnet240 tests kdp Tools Menu 1 Password Allows you to protect or lock the server project Once entered the project cannot be edited without entering the proper password Password Lock P
25. have provided the complete Quick Reference guide to a USRobotics Sportster 33 6 kbps modem in Appendix A of the Users Guide Use the quick reference to set the desired profile for your receiving modem Remember some modems have dip switches which can be very important in configuring your modem application Consult your KEPServer driver help file for modem dip switch settings The Quick Reference also covers these dip switch settings Once you have your receiving modem configured you should save your new settings by issuing a write command to the modem This can be done by typing AT amp WO followed by the enter key Finally it s always a good idea to test the receiving modem s configuration after you have issued the write command To do this simply turn your receiving modem off for a moment then turn it back on After a small pause enter ATIA followed by the enter key The modem should display its current profile which should now include any changes you have made Once you are satisfied with the receiving modem configuration place dip switch 8 back into the DUMB UP OFF mode Setting the modem to DUMB mode prevents the modem from ever interpreting device communications as modem commands Be aware however that you will need to place the modem back in SMART mode if further configuration is required Copyright O 1998 KEPware IncErreur Style non d fini ttt HyperT erminal Bill E File Edit View Cal Transfer Help Dis 5 8 ala sl a
26. of a NetDDE tag referencing a tag already added to the KEPware DDE Server 74 Copyright 1998 KEPware IncErreur Style non d fini Excel as a DDE Client Connecting to the Server from Excel and Displaying Data Connecting to the server with Microsoft Excel is very simple To display the value of an address or an array addresses in a cell or range of cells you only need to reference the address or addresses by entering the ApplicationITopic Item DDE link reference 1 This example of a local DDE link to a dynamically created tag in the KEPServer Simulator Enter KEPddelDevice_1 RO in cell A1 We are telling Excel to set Al equal to the Simulator address RO in the KEPServer N Microsoft Excel 1 n 5 s 8 Jat gt 4 2 gt ca sw 1 kepddelDevice 1 RO DO Copyright O 1998 KEPware Inc Communicating with the Server e 75 2 After entering the formula hit enter and data will appear in the cell If you are using an actual PLC you might see N A which indicates that you are not getting data from the device Check the KEPServer message window and see Troubleshooting X Microsoft Excel Book1 O TL T MM T Z 3 Because
27. on Back 3 Enter the name that you wish to identify this channel with in the edit box and E M prius click Next Channel names are used purely for reference within KEPServer t SIA Each Channel name must be unique Select the device driver you want to assign to the channel The drop down list below contains the names of all the drivers that are installed on your system Device Driver Simulator Partlow Siemens 5 Simulator We have selected the Koyo Direct 4 The wizard will select the KEPware DDE Simulator by default Use the list box Nei arver for demonstration button and navigation keys to select your device driver and click Next Configuring the Channel for a Comm Port or Modem Because of KEPware s Modem Add On you may now configure the Server Channel for a standard comm port or a modem We will discuss the procedures for setting up both The server will currently support up to 16 separate comm ports Which means that each port could have its own modem You will find that you are more limited when it comes to internal modems because each modem card will need its own IRQ 26 Copyright 1998 KEPware IncErreur Style non d fini New Channel Communications Communications Port settings are the primary cause of most driver communication issues One of the easiest ways to configure a KEPServer driver is to match its settings with the programming software used for your device Copyrigh
28. store pickup a PC modem cable This will go from your PC to your initiating modem To summarize the cables you will need are your existing device communication cable for direct connection a null modem adapter and a null modem cable With the cables in place you are now ready to use a modem in your application Configuring the Initiate Modem KEPServer uses the Windows TAPI interface to access modems attached to your computer The TAPI interface was designed to provide Windows programs with a common interface to the wide range of modems which may be installed in a computer The TAPI interface does require that the manufacturer of your modem provide a set of drivers for Windows95 NT These drivers need to be installed before KEPServer can use the modem in a KEPServer project The Windows Control Panel allows you to install new modems Consult your Windows and Modem documentation on how to install and set up your modem if you have not already done so Once you have your modem properly installed you re ready to begin using it in a KEPServer project Copyright 1998 KEPware Inc Using Modems with KEPServer 87 88 Setting the Client up to Use the Modem Once your modems have been properly configured and installed you are now ready to enable their use with KEPServer Let s start with the direct connect project you did earlier when testing your device configuration and communications 7 After loading your direct connect project dou
29. tag value LastEvent StringLastEvent 1 blank no events have occurred yet 0 Initialized with TAPI 1 Line closed 2 Line opened 3 Line connected 4 Line dropped by user 5 Line dropped at remote site 6 No answer 7 Line busy 8 No dial tone 9 Incoming call detected 10 User dialed 11 Invalid phone number 12 Hardware error on line caused line close 13 Unable to dial 9 StringStatus Contains a textual representation of the Status tag value Status value StringStatus text 0 Uninitialized channel is unusable 1 Initialized no line open 3 Idle 7 Connected 11 Calling 19 Answering 16 dial scripting must be handled in the Client application If you are using a DDE connection the modem enabled Channel will act as a Topic Thus the Channel name in your KEPServer project will be the Topic name of your DDE node in your Client If your are using excel the formula would be KEPddel lt Channel Name Tag Name 17 Once you have your connection established in your client you actually only need 3 tags to be able to control your modem Dial Hangup and PhoneNumber 18 After adding these three tags to your client run the client Copyright O 1998 KEPware Inc Using Modems with KEPServer 3 19 20 21 22 Write the number of the line that the receive modem is connected to into the PhoneNumber tag in canonical format Write a positive number to the Dial tag This will instruct TAPI to dial the number that was writt
30. the Select button and choose a project OPC Settings 10 o Copyright 1998 KEPware IncErreur Style non d fini Select Project Lookin 3 Projects amp ex zx H dfl kdp E Server Example kdp simdemo kdp super kdp A Files of type Project Files kdp Cancel OPC Settings x Project ESLagoon kdp Select Cancel ToolslSettings Menu 1 Enable NetDDE Services When checked allows the server to create a NetDDE Share for all devices and start NetDDE when you connect the server 2 Single Bit Booleans When the Single Bit Booleans menu option is checked the default condition KEPServer will treat all writes to boolean tags as a single byte When the Single Bit Booleans menu option is not checked KEPServer will treat all writes to boolean tags as a 16 bit unsigned integer Any non zero value in this integer will result in a TRUE poke 3 Require Offline Confirmation KEPServer can provide confirmation when the server is set to offline mode This can prevent the server from being shutdown unintentionally 4 Run Minimized KEPServer provides the ability to make the server minimize when entering On line mode Copyright O 1998 KEPware Inc Inside The DDE Server 11 12 E H Koyo Feeder 06 03 1998 i KEPServer Server Example kdp CE XI File Edit View Mode Channels Devices Tags Tools
31. tree list and click OK You will notice that the information shown here matches the device names and tag names defined in your KEPServer application As shown select the Tag tag from KEPServer under the Device 1 branch This tag contains changing data that will allow you to confirm your connection You will notice that the Access Path was left blank If you did not add tags to the server then you can add them dynamically from here as well the proper format is lt Topic gt lt Item gt Remember in KEPServer the Topic is the device name and Item is the static or dynamic tag Click Save to save the server setup you have just created Once you have saved you can click Start and then click Statistic to be able to verify your connection to the server At this point the addition of more tags from your KEPServer application is simply a matter of repeating the steps covered here Communicating with the Server 1 RSView32 as an OPC Client In addition to being able to connect to RSView via OPC Connecting to KEPServer from RSView32 KEPServer speaks Advanced Rockwell s RSView32 is another HMI application that works well with KEPServer DDE which is what older The following steps will show you how to create an OPC connection to KEPServer versions of RSView use from RS View32 1 Open RSView32 and start a new project RSYiew32 Works File View Project Window Help mi OPC DEMO Project Channel oe Node IW
32. 207 846 8671 Write valuet Write value2 a 1 207 846 8671 Press here to set _ 9 the PhoneNumber The two data registers above will be added together sd and the result will be placed in the data register below gt 11 Result Note Once the KEPServer project is in On Line mode press the After setting the PhoneNumber 14 Press here Press here The timer and counter below demonstrate data that is ra as uf to Hangup changing in the PLC 18 idle Line opened 18 19 4 4 I Modem Demo Ready esa NUM sep E 13 Once the Excel project is open and running feel free to examine all of the macros used to perform the dial and hangup functions Additional sample KEPware HMI and Visual Basic modem projects can be downloaded from KEPware s website at http www kepware com Copyright 1998 KEPware Inc Using Modems with KEPServer e 95 Troubleshooting Error Codes in the DDE Server Copyright O 1998 KEPware Inc The following list contains most of the Error Codes that that could be displayed in the Message log window Each error lists a type possible cause and the most probable solution COM n is already in use Error Type Warning Possible Cause The selected COM ID for the channel you are defining is already being used by another channel Solution Select a different COM ID for the channel Hint You can swap COM IDs for two channels by changing the IDs for both ch
33. KEPServer for Windows 95 98 and NT KEPServer Users Manual Copyright 1998 KEPware Inc KEPWARE LICENSE AND WARRANTY The software accompanying this license agreement the Software is the property of KEPware Inc and it is protected by copyright law Your rights and obligations in its use are described as follows You may use and display this software on a single computer You may make one copy of the software for archival purposes You may copy the software onto your hard disk and hold the original for archival purposes You may not make copies of materials that accompany the software including instruction manuals promotion materials and labels 5 You may not modify or attempt to reverse engineer the software or make any attempt to change or even examine the source code of the software 6 KEPware has an aggressive software upgrade policy You may not use copies of any parts of this software with other parts whose serial numbers do not match For instance you cannot use an upgraded runtime system with any development system whose serial number does not match 7 You may physically or electronically over a network transfer the software to another computer However the software must be used on only a single computer at one time 8 You may not give or distribute copies of the software or written materials associated with the software to others 9 You may not sub license sell or lease the software to any person or bus
34. MNP level 4 5 32 Disable MNP level 3 Bit Value Result 6 64 MNP incompatibility 7 128 Disable V 42 operation To disable V 42 detect phase select the total of the values for bits 3 and 7 16 0 Bit mapped register setup To set the register see instructions for S13 Bit Value Result 0 1 Reserved 1 2 Reserved 2 4 Touch tone test 4 8 Use internal test pattern S18 0 Test timer for amp T loopback testing Sets the time in seconds of testing before the modem automatically times out and terminates the test When set to 0 the timer is disabled Valid range is 1 255 A 10 Appendix A AT Command Set 519 521 522 523 525 10 17 19 20 Sets the duration in minutes for the inactivity timer The timer activates when there is no data activity on the phone line at time out the modem hangs up S19 0 disables the timer Sets the length in 10 millisecond units of breaks sent from the modem to the computer applies to MNP or V 42 mode only Stores the ASCII decimal code for the XON character Stores the ASCII decimal code for the XOFF character Sets the duration in hundredths of a second that DTR must be dropped so that the modem doesn t interpret a random glitch as a DTR loss Most users will want to use the default this register is useful for setting compatibility with older systems running under older operating software Users Guide Register Default Function S28 0 527 0 Bit mapped reg
35. Port or Modem Configuring a Serial Communication Channel eene eene nennen trennen eren Configuring a Modem Communication Channel ADDING Ai DEVICE ETE EIS ADDING PLC TAGS CONNECTING TO THE DRIVER OR ADD ON FOR THE FIRST TIME 5 REGISTERING THE DRIVER OR ADD ON 39 CONNECTING TO THE DRIVER OR ADD ON AFTER REGISTERING eese crei 40 DISCONNECTING FROM THE DRIVER re ERE Re e REP re eR CURES ENER HE e EC A YER PET sea Sega a TE n ETE 40 COMMUNICATING WITH THE SERVER 41 ACCESSING KEPSERVER Ue Ee XP vette Gb RUE EE INTELLUTION FIX32 AS AN OPC CLIENT Connecting to KEPServer from Fix32 RSVIEW32 AS AN OPC CLUENT eee Connecting to KEPServer from RSView32 GENESISS2 AS CLIENT ise vr RUN GU ORI REN A Connecting to KEPServer from Genesis32 Components CIMPLICITYQ AS AN OPC Connecting to KEPServer from KEPWARE HMI AS AN ADVANCED DDE entitas Connecting to KEPServer From the KEPware HMI Client EXCEL AS A DDE CLIENT i Connecting to the Server from Excel and Displaying Data Writing Data from Excel to the DDE Server USING MODEMS WITH KEPSERVER USING THE MODEM WITH CLIENTS etcetera ea I Ia 10105 MM
36. Registers Sets tone dial Displays verbal numeric result codes VO Numeric codes VI Verbal codes 1998 Kessler Ellis Products Xn Sets result code displayed Default is X4 Result Codes 0 OK 1 CONNECT 2 RING 3 NO CARRIER 4 ERROR 5 CONNECT 1200 6 NO DIAL TONE T BUSY 8 NO ANSWER 9 Reserved 10 CONNECT 2400 11 RINGING 13 CONNECT 9600 18 CONNECT 4800 20 CONNECT 7200 21 CONNECT 12000 25 CONNECT 14400 43 CONNECT 16800 85 CONNECT 19200 91 CONNECT 21600 99 CONNECT 24000 103 CONNECT 26400 107 CONNECT 28800 151 CONNECT 31200 155 CONNECT 33600 Adaptive Dialing Wait for 2nd Dial Tone W Wait for Answer Fast Dial 2 X3 X4 e e e e e e e e e e e e e e e e e e e e e e Requires in dial string replaces NO CARRIER Appendix A AT Command Set e 3 Selects power on reset default configuration YO Default is profile 0 setting in NVRAM YI Default is profile 1 setting in NVRAM 7 Resets modem Z0 Resets modem to NVRAM profile selected by Y command or dip 7 71 Resets modem to profile 0 Z2 Resets modem to NVRAM profile 1 Z3 Resets modem to factory default profile 0 amp FO ZA Resets modem to factory default profile
37. Scan Class Tag Database Tag Monitor User Accounts Security Codes amp Activity Log Setup Activity Log Viewer w Startup BJ Command Line Graphics Alarms Data Log Logic and Control 2 In RSView32 click on the System folder and then click on Node in the Project Control Panel The node is like a traffic sign to RSView it tells it where to find the data it is looking for 52e Copyright O 1998 KEPware IncErreur Style non d fini Node PI ES Data Source Direct Driver OPC Server DDE Server CES Name v Enabled Channel i lt Unassined gt 0000000000 Discard Station oO PLC 5 Enhanced Timeout i0 seconds 3 First we will select a Data Source for the Node in this case it will be OPC Server 4 Next you will assign a name by which RSView will refer to the node In this case we called it KEPServer but it can be called anything you like 5 Inthe Server section you will click on the browse button and select a valid local or remote server from the list in the OPC Server Browser If you have your server running on a Win 95 or Win 98 box you will have to have DCOM installed configured and running in order to allow access to the server Copyright O 1998 KEPware Inc Communicating with the Server e 3 PC Server Browser 3 KEPServer Local RSI RSView320PCT agServer Local RSI RSView320PCT agServer Remote Intellution OPCNIO In Process 6 RSView a
38. ady for modem operation Save the project KEPServer Dnet240 modem tests kdp File Edi View Mode Channels Devices Tags Tools Help 314 31415 Tagname Datatype Privilege Initialdata ua Dial Long Read Write DialNumber String Read only Hangup Long Read Write LastE vent Long Read only Mode Long Read write PhoneNumber String Read Write Status Long Read only StringLastE vent String Read only E StringStatus String Read only Source Message 09 03 1998 09 46 38 3 Device Manager KEPware 32 Bit Device Manager V2 00 11 Project unlocked Server is offline 15 When you enabled modem operation for your driver you may have noticed that a list of predefined tags became available in your driver s tag window These special modem tags are contained under the channel name Modem Tag Definitions Unlike earlier versions of KEPServer where all tags are related to individual devices with the Modem Add On we now have tags that are directly related to the device connections They are as follows 1 Dial Writing any value to this tag initiates dialing of the current PhoneNumber The write is ignored unless the current Status is 3 An error is reported if the is current phone number has not been initialized 2 DialNumber DialNumber shows the phone number that is actually dialed after any dialing preference translations have been applied This t
39. ag is intended for debugging purposes 3 Hangup Writing any value to this tag hangs up the current connection The write is ignored if the Status lt 3 Copyright O 1998 KEPware Inc Using Modems with KEPServer 1 92e 4 5 LastEvent Whenever the Status changes the reason for the change is set in this tag as a number LastEvent StringLastEvent 1 blank no events have occurred yet 0 Initialized with TAPI 1 Line closed 2 Line opened 3 Line connected 4 Line dropped by user 5 Line dropped at remote site 6 No answer 7 Line busy 8 No dial tone 9 Incoming call detected 10 User dialed 11 Invalid phone number 12 Hardware error on line caused line close 13 Unable to dial Mode Allows for configuring the line for calling only answering only or both Set the mode to 1 to for outgoing calls only incoming calls are not answered Set the mode to 2 for incoming calls only requests to dial out are ignored The default setting is 0 which allows for both outgoing and incoming calls This value can only be changed when the Status is lt 3 PhoneNumber This is the current phone number that will be dialed You can write to this value at any time but the change is only effective if Status is lt 3 If you write to the phone number while the status is greater than 3 the number is queued and as soon as the status drops to 3 or less the new number will be transferred to the tag The queue is of size 1
40. already in use Device ID Number is already assigned to device Device Name Valid network IDs for Driver Name devices range from Number to Number Invalid device ID Device not found Device Name Invalid channel name The channel name Channel Name is already in use Channel not found Channel Name Device names cannot be changed at run time Channel names cannot be changed at run time No more channels may be defined Cannot multidrop Driver Name and Driver Name devices on the same channel Inside The DDE Server e 23 MU mM 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3T 24e rror Messages Device Manager run time login failed Use simple writes rejected by ICToolkit Enable immediate requests rejected by ICToolkit Device Manager run time logout failed Memory allocation error Unable to save device map information Driver Name is in use by another application Log in attempt failed because the selected driver is already in use Invalid log in data Initialization failure Initialization data is invalid Imported function Function Name could not be found Unable to set comm parameters on COM d OS Error Code Unable to load device map information No tags will be scanned by this driver Unable to create timer thread Device Device Name is not defined Internal drive
41. annels to None and then selecting the desired ID for each channel Invalid device name Error Type Warning Possible Cause You entered a blank device name Solution Enter a valid device name The device name device name gt is already in use Error Type Warning Possible Cause The device name you entered is already defined Solution Enter a different device name that doesn t conflict with one that is already defined Troubleshooting e 97 Device ID lt network ID gt is already assigned to device lt device name gt Error Type Warning Possible Cause The network ID you assigned to the device you are defining is already defined Solution Choose a different network ID for the device You may need to create another channel definition if all possible network IDs for the current channel have been exhausted Cannot multidrop model name 1 and model name 2 gt devices on the same channel Error Type Warning Possible Cause 1 You are attempting to add a device to channel that already contains a non multidroppable device 2 You are attempting to add a non multidroppable device to a channel that already contains one or more devices Solution You may be able to access two or more non multidroppable devices by assigned each device to its own channel having separate comm ports Invalid device ID Error Type Warning Possible Cause The device network ID you have entered is either blank or the
42. arted DIRECT NET Number of blocks read 0 DIRECT NET Number of timeouts 0 DIRECT NET Transmission errors 0 KEPServer Peak DDE queue usage 0 0 KEPServer Average DDE queue usage 0 0 KEPServer Peak active items 0 E Project unlocked Server is offline 7 Messages in the log window appear preceded by icons Oir which give the user a quick reference as to what the message pertains to For instance a message preceded by e indicates that the server has completed a specified function and warns that it was unable to perform a function The icon indicates status messages at disconnection The icon indicates an error that can keep the server from functioning properly The Messages The following is a list of the most likely messages that could appear in the Message Log window As new drivers are added to the existing line more messages could be added that are not covered here Information Messages KEPware 32 Bit Device Manager Version Number KEPware 32 Bit DDE Server Version Number KEPware 32 Bit Driver Name Device Driver Version Number NetDDE services started PRONTO Copyright 1998 KEPware IncErreur Style non d fini Copyright 1998 KEPware Inc Statistics Messages NMED NY E ole Peak queue usage lt Percentage gt Peak queue depth lt Percentage gt Peak active items lt Number gt Number of blocks read lt Number gt Number of timeouts lt Number gt Transmission err
43. as removing the machine level knowledge from the client application and keeping it at the server level where it belongs This alias while useful for DDE is a necessity for OPC clients For OPC clients static tags take on a greater role Like the DDE example static tags allow you to create aliases for your device data and keep the configuration of those tags at the server OPC clients have a major advantage over their DDE brethren OPC clients can browse the static tags you define in your KEPServer application allowing you to simply point and click on a tag to add it to your OPC client For more information on static tags see either your KEPServer help or manual Copyright 1998 KEPware Inc Communicating with the Server e 41 Intellution Fix32 as Client Connecting to KEPServer from Fix32 Intellution s Fix32 supports OPC client capability through an OPC client plug in that conforms to their existing I O driver model The following steps will show you how to create an OPC connection to KEPServer from Fix32 Although Fix32 will run on any 32bit operation system it is very important to note that the OPC Client driver for Fix32 will only run on a Windows NT operation platform 1 Open your copy of Fix Draw and start a new project 1815 Intellution FIX Draw File Edit Tools View Arange Database Dynamos Window Apps Font Help Untitled 2 InFix Draw select Apps System Configuration from the Main Menu This will start t
44. ble click on the Channel Name The first thing you should be presented with is the current direct connect settings of Baud Rate Parity etc At the bottom of this dialog there is a checkbox selection called Use Modem 8 Click this checkbox you will notice that the settings on this page now become unavailable Edit Channel Properties 9 With the Use Modem checkbox set now click on the Modem Tab at the top of this dialog The dialog will change to show you a list of modems available on your computer If you don t see any modems in the list you will need to exit KEPServer and attempt to reinstall your modem using the modem configuration tools supplied with the operating system Copyright O 1998 KEPware IncErreur Style non d fini Edit Channel Properties 10 With the modem list displayed select the modem you intend to use with your KEPServer project Once you select a modem you will notice that the Dialing and Properties buttons become available Click on the properties button At this point you will be presented with a new dialog that allows you to configure the characteristics of your initiating modem 11 This new dialog has three sections available The first General allows you to set connection speed and speaker volume We recommend that you set the connection speed to match the speed used by your target device Simply set this to match the setting used when this was a direct connect project Sportster 28800
45. e Copyright O 1998 KEPware IncErreur Style non d fini Device Manager Remaining time 10 days 00 hours 00 minutes 3 Until you have entered your password the registration form and a message box will appear every time you connect to the driver If you do not get the driver registered before the 10 day period has expired you will need to re install it Click OK to acknowledge the message Registering the Driver or Add On Once you have received your password you can finish the registration process by connecting to the driver again 1 Open your project and connect to the driver DIRECT NET Driver Registration Form x Please contact KEPware technical support at 1 888 KEPWARE to obtain a password that will unlock this device driver Cancel Driver S N 10010 3205 Computer ID 617411 270678183 Password 2 You will notice that the Registration form has remembered the S N and Computer ID Enter the password that was sent to you in the password field and click OK Device Manager G The DIRECT NET driver has been successfully unlocked 3 You have now unlocked the driver Click OK to acknowledge the message With the driver unlocked you will no longer be presented with the driver registration dialog box Copyright O 1998 KEPware Inc Creating A DDE Project e 39 Connecting to the Driver or Add On After Registering Now that you have registered your driver you can run it on that PC with no time limit S
46. e comment field be used to record up to forty characters of user information about the tag KEPServer Server Example kdp OF x File Edit View Mode Channels Devices Tags Tools Help oea tee Sos E m Hee Hie loss icon Pr Boolean 100 Re Dae Time Level Souce Messa e 06 03 1938 11 21 25 3 Device Manager KEPware 32 Bit Device Manager 1 50 10 Project unlocked Server is offline 7 4 you have completed the entry of your tag and clicked OK button you should now be able to see your tag in the Tag window Our example shows the detail view but you may be viewing one of the other views 5 The last step before you are able to connect to the driver is to save the project Click the Save icon on the button bar and assign a name to the project and save it By default KEPServer will attempt to save your settings in the c Program Files KEPware KEPdde Projects directory While not required we do suggest that you use this default directory The project name can be any name you choose Copyright 1998 KEPware Inc Creating A DDE Project e 37 Connecting to the Driver or Add On for the First Time Once your project has been saved you are ready to connect to the driver Remember that the DDE Server acts like a waiter in a restaurant He waits for orders from the client passes them to the device and returns the results to the client If there are no clients the KEPServe
47. e dialing If Xn is set to X2 or X4 this is the time out length if there isn t a dial tone Sets the number of seconds the modem waits for a carrier May be set for much longer duration if for example the modem is Originating an international connection Users Guide Register 98 59 510 511 512 513 Default 2 70 50 Function Sets the duration in seconds for the pause option in the Dial command Sets the required duration in tenths of a second of the remote modem s carrier signal before recognition by the Sportster modem Sets the duration in tenths of a second that the modem waits to hang up after loss of carrier This guard time allows the modem to distinguish between a line disturbance from a true disconnect hang up by the remote modem While we don t recommend connecting the modem to a line with call waiting if you have it you may wish to adjust this setting upward to prevent the modem from misinterpreting the second call signal as a disconnect by the remote modem A better alternative is to ask your phone company how to temporarily disable call waiting usually 70W For example ATDT 70W phone number Note If you set 510 255 the modem will not hang up when carrier is lost Dropping DTR hangs up the modem Sets the duration and spacing in milliseconds for tone dialing Sets the duration in fiftieths of a second of the guard time for the escape code sequence
48. e this information could not be found Solution Verify the project path and file name are correct If the project name gt DirectNet DEV file was deleted from the project directory you may be able to restore it from the Windows Recycle Bin Unable to save device map information Error Type Fatal Possible Cause The DEV file the driver uses to store device information could not be created or updated Solution 1 Verify that only one copy of the current project is open 2 Verify that the disk you are saving to is not full Device device gt is not defined Error Type Recoverable Possible Cause The project name gt DirectNet DEV file is corrupted or incorrect for the project you are editing Solution If the project name gt DirectNet DEV file was deleted from the project directory you may be able to restore it from the Windows Recycle Bin is in use by another application Error Type Fatal Possible Cause The serial port assigned to a device is being used by another application Solution 1 Verify that you have assigned the correct port to the channel 2 Verify that only one copy of the current project is running Copyright 1998 KEPware Inc Troubleshooting e 103 Unable to set comm parameters on COMn Error Type Fatal Possible Cause The serial parameters for the specified COM port are not valid Solution Verify the serial parameters and make any necessary changes COMn does not e
49. ed to communicate to a device i e SA 85 card use a modem because i uses sed to connect to the Modbus Plus Network or a modem that may be attached to special interface card your PC internally or externally The Channel properties consist of three or more pages all drivers have Identification Communications and Modem where the user can change the identity of the channel or the communications settings All white areas can be edited grayed out areas cannot The fields will be explained in detail later in Creating a DDE Project Copyright O 1998 KEPware Inc Inside The DDE Server 15 Edit Channel Properties i2 x Identification Communications Modem Channel Name Comi Device Driver DIRECT NET v Cancel Help Edit Channel Properties Identification Communications Modem A none Baud Rate E Data Bits dj Parity pas 7 Stop Bits 1 57 Flow Control None Y Cancel Device Shortcut Edit Channel Properties 2 x Identification Communications Modem va 5 z Baud Rate 3600 Data Bits Parity None Stop Bits 1 C2 Flow Control None h Use Modem OK Cancel Help He Edit Channel Properties 2fx Identification Communications Modem Modem Practical Peripherals PC288MT 11 34 The following modems are setup on this computer erals PC2BBMT II V 33600 External eri
50. em that you will be using to dial out with Click Dialing to verify the dialing parameters Dialing Properties 2 x My Locations am dialing from Bemove Where am The area code is 207 in United States of America Howl dial from this location To access an outside line first dial 9 9 for local 3 for long distance Dial using Calling Card Hone Direct Dial Change This location has call waiting To disable it dial 7 The phone system at this location uses Tone dialing Pulse dialing OK Apply 9 Verify the information for dialing out from your PC You will notice that in this example we need to dial a 9 wait for the initial dial tone and dial 9 again to access the outside line Press OK or Apply to accept any changes and OK to exit the dialog box Copyright O 1998 KEPware Inc Creating DDE Project e 29 Sportster 28800 33600 External Properties s DRIP atte speed 10 Clicking Properties will open the Properties dialog for the selected modem Setting the connection speed 11 Starting with the General Tab you will notice that the connection speed is set to 57600 rather than letting the modem baud and have unchecked Only connect at this speed Set the Maximum speed to the adjust itself is a check incase PLC s connection speed 9600 for our device and check Only connect at this
51. en to PhoneNumber Once the number is dialed Dial will be reset to 0 Once the modems connect and your are communicating with the target device all device tags will change from question marks to data When you want to disconnect from the remote device write a positive number to the Hangup tag Once the line is disconnected Hangup will be reset to 0 Excel as a Modem Client Connecting to the Server from Excel and Displaying Data from a Remote Device Now that you have connected to a device that is directly connected to your PC you may want to try connecting to a remote device We have provided a sample Excel project that will allow you to communicate with an Idec PC attached to a modem at KEPware s Offices Follow the next instructions exactly 1 10 11 12 94 e First because the example used an Idec PLC you will need to install the Idec driver from the Server Super Pack or Licensed Driver install disk if you purchased an Idec driver Once the driver is installed start a new project Create a new channel called Modem select the Idec driver On the Comm parameters page click on Use Modem Click Next Select the Modem that is connected to your machine Click the Properties button On the General Tab set the Maximum speed to 9600 On the Connection Tab set the connection parameters to 7 data bits Even parity and 1 stop bit Click OK on each dialog box until you get back to the Modem Selection page Click Ne
52. eneath the highlighted device 6 Invert Selection Reverse the selection If seven of nine tags were selected then deselect them and select the two tags that were previously unselected Copyright O 1998 KEPware IncErreur Style non d fini KEPServer Untitled DI Xx Ele Edit Mode Channels Devices Tags Help Dic w Status Bar Toolbars Clear Messages v Show Statistics Large Icons Small Icons List Details Dae Time Leve Souce Message 1 06 03 1338 11 21 25 3 Device Manager KEPware 32 Bit Device Manager V1 50 10 gt Project unlocked Server is offline A View Menu 1 Status Bar Show the Status bar at the bottom of the DDE Server Window 2 Tool Bar Show the Tool Button Bar below the Menu Bar 3 Clear Messages Clear the messages from the Event Logger Window 4 Show Statistics Show the link statistics when the Server is disconnected 5 Large Icon Displays a large icon for each tag belonging to the selected device in the Tag Window when checked 6 Small Icon Displays a small icon for each tag belonging to the selected device in the Tag Window when checked 7 List Displays a list of tags belonging to the selected device in the Tag Window when checked 8 Details Displays a detailed list of tags belonging to the selected device in the Tag Window when checked Copyright O 1998 KEPware Inc Inside The DDE Server 3 KEPServer Server
53. esult becomes 1 8 0 1 10 Bits Now a normal modem can be used to transmit data to the Modbus device From these examples you may be wondering if there are some drivers which simply cannot use a normal modem connection and that is truly the case Some devices do not allow you to configure them to use a 10 bit or less data format These devices simply cannot use standard off the shelf modems There are manufacturers who provide modems that can handle transmitting 11 data bits If your driver falls into this category please consult your device manufacturer for recommendations on an appropriate modem vendor Modem operation will be enabled for all KEPServer serial drivers regardless of their suitability for modem operation See your driver s help file for more specific information regarding modem support the Receive Modem The easiest way to configure your receiving modem is to use the Hyperterminal program that is included with Windows95 NT You start by connecting the modem you plan to use on your device as the receiving modem to your PC via an available serial port Assuming that you have a USRobotics modem check dip switch 8 and make sure it is in the SMART Down ON position then power cycle the modem 2 Start Hyperterminal and open a new connection Give this new connection a name like ModemSetup Connection Description i21 x New Connection Enter a name and choose an icon for the connection Name 3 Once y
54. format is incorrect Solution Check the format of the ID you are entering You may need to consult the help file for the device driver to obtain valid ID settings Device not found device name gt Error Type Serious Possible Cause The specified device name is no longer part of the project you are working with Solution Verify the driver for the device is correctly installed and that a device map DEV file exists for that driver in the project directory Invalid channel name Error Type Warning Possible Cause You have entered a blank channel name for the channel you are defining Solution Enter a valid channel name Copyright O 1998 KEPware IncErreur Style non d fini Copyright 1998 KEPware Inc The channel name lt channel name gt is already in use Error Type Serious Possible Cause The specified channel name is no longer part of the project you are working with Solution Verify the driver for the device is correctly installed and that a device map DEV file exists for that driver in the project directory Channel not found channel name Error Type Serious Possible Cause The specified channel name is no longer part of the project you are working with Solution Verify the driver for the device is correctly installed and that a device map DEV file exists for that driver in the project directory Modem Line lt line name gt is already in use Error Type Warning Possib
55. gt Error Type Fatal Possible Cause No device drivers have been installed or they have been deleted Solution Reinstall the device drivers you have purchased from their original distribution disks No device driver DLLs loaded Error Type Fatal Possible Cause No device drivers have been installed or they have been deleted Solution Reinstall the device drivers you have purchased from their original distribution disks The driver for device type devices is not loaded Error Type Serious Possible Cause The project you are using references a device driver that has not been loaded Solution Verify the project is correct and if necessary install the appropriate driver The requested operation could not be completed due to an internal memory allocation error Error Type Fatal Possible Cause Insufficient system RAM to support the number of tags and or devices that you are trying to define Solution Increase the amount of system memory or reduce the number of loaded applications Memory allocation error Error Type Fatal Possible Cause Insufficient system RAM to support the number of tags the driver is being asked to scan Solution Increase the amount of system memory or reduce the number tags being scanned Copyright O 1998 KEPware IncErreur Style non d fini Unable to load device map information Error Type Fatal Possible Cause The DEV file the driver uses to stor
56. he System Configuration Utility SCU Copyright O 1998 KEPware Inc Communicating with the Server 43 File Help SCADA Paths Alarms Network Security Sql Tasks Modem Local Startup 3 Inthe SCU select Configure Scada from the Main Menu SCADA Configuration SCADA Support Database Definition C Enable Disable Database Name DATABASE E IO Driver Definition VO Driver Name 2 Configured I O Drivers Add Configure Setup Delete 44 e Copyright O 1998 KEPware IncErreur Style non d fini 4 Inthe SCADA Configuration window click on the Enabled radio button This will activate the Database Definition section and the I O Driver Definition 5 Forour example we will accept the default Database Definition and click on the driver selection button to see a list of available drivers 6 Select the OPC Client driver and click OK Drivers available OPC OLE for Process Control Client 7 11 SIM Simulation Driver 7 Click Add to place the OPC Client to the list of configured drivers for this project SCADA Configuration DATABASE OPC OLE for Process Control Client 7 11 OPC OLE for Process Control Client 7 11 8 Highlight the driver in the list and then click on Configure to set it up Copyright 1998 KEPware Inc Communicating with the Server 5 170 Driver
57. he following settings are correct click Finish to begin using the new device Channel Assignment Koyo Driver DIRECT NET DirectNet dll 5 You should now see the New Device Summary page Verify that all the information is correct and then click Finish to end If the driver you are using supports multi dropping like the Direct Net used here you can continue to add additional devices for this channel Remember each device name must be unique The device ID number must be unique for this channel but not across multiple channels Copyright 1998 KEPware Inc Creating A DDE Project e 35 Adding PLC Tags 36 e You should now have defined a Channel and Device for your project Now it is time to add some tags There are two ways to add tags to a KEPServer Project First you can use the Tag Properties dialog to add an Internal Tag to the KEPServer tag database Second you can add tags dynamically from the client application by what is known as Dynamic Tag addressing In order to demonstrate all the features available in KEPServer the remainder of this project creation example will cover entry of Internal Tags Use of Internal Tags is purely OPTIONAL Most applications use Dynamic Tag addressing 1 Select the device name to which you want to add tags from the channel device browser window 2 Once a device name is highlighted click on the Add Tag icon The following dialog box should appear Tag Properties Tag name
58. ht hand pane of the browser 6 Select Tag 1 and click OK to close the browser OPC Tag Browser x File Opec View Help Item Id KEPServenDevice 1 Tag 1 Filter El My Computer KEPServer E Device 5 E Device 5 E Device 4 C3 Device 3 E Device 2 i C3 Device 1 HP RSIL RSView320PCTagSe Spi Intellution OPCNIO Ea Network Neighborhood Refresh Iv Browse Ahead Copyright 1998 KEPware Inc Communicating with the Server e 59 7 Now that you have your tag you will want to set the Pont Type For this example we selected a simply display type point 8 Next you need to set the Data Type This particular tag in the KEPServer is a Word Property Inspector KEPServer Device 1 Tag 1 woro fon l To ange GUT High e 60 e Copyright O 1998 KEPware IncErreur Style non d fini 9 Now click the Text tab to define how you with the point to display 10 Select the properties you want for your object then click OK Property Inspector Copyright 1998 KEPware Inc Communicating with the Server 61 11 In the GraphWorX32 window you will see the new object on the window Click Runtime to run the window and connect to the server yj Display GraphWorX32 by ICONICS 12 Adding more tags is simply a matter of repeating the steps described here 62 Cop
59. ial numbers of the installed drivers Copyright O 1998 KEPware Inc Inside The DDE Server 13 Version Information KEPware OPC DDE Server KEPware 32 Bit Device Manager KEPware 32 Bit DF1 Device Driver Demo KEPware 32 Bit Koyo DirectNet Device Driver 10020 KEPware 32 Bit Universal KEP Protocol Driver Demo KEPware Simulator Device Driver Demo HelplAbout the ServerlVersions Displays the name of every driver that is installed for use with the KEPServer as well as its Version and Serial Numbers 14 Copyright 1998 KEPware IncErreur Style non d fini The Shortcut Menu s Channel Shortcut The channel shortcut provides yet another way to edit the properties add or delete a channel Clicking the right mouse button while a channel or device is selected accesses the shortcut Commands that are not valid will not be displayed For example if you have not copied a device you will not see the paste command e KEPServer Dnet240 tests kdp File Edit View Mode Channels Devices Tags Tools Help je ele Slat Add Channel Add Device Cuts the selection and puts it on the Clipboard Project unlocked Server is offline Edit Channel Properties The exception will be the A channel defines the communications driver and the communication port such as Modbus Plus driver It cannot your RS 232 port a plug in card us
60. iness pop Return Policy The original licensee of the software can return it within sixty 60 days of purchase Please call us for a Return Material Authorization Number Warranty KEP does not guarantee that the software will satisfy your application needs nor that the software will be error free Disclaimer of Damages Even if the software does not satisfy the customer s needs or is viewed as failing to perform in no event will be liable to you for any direct or indirect damages including lost profits or lost data KEPware s liability shall never exceed the purchase price for the software Trademarks Microsoft and Microsoft Excel are registered trademarks Windows is a trademark of Microsoft Corporation 32 Bit DDE Server Users Manual KEPware Inc 81 Bridge Street Yarmouth Maine 04096 Sales 207 846 5881 Technical Support 207 846 5881 Fax 207 846 5947 E mail kepware 6 kepware com or teksuprt kepware com Home Page http www kepware com Copyright O 1998 KEPware Inc Table of Contents LI V WELCOME TO THE KEPSERVER 5 cp oce SYSTEM 7 SETTING UP KEPSERVER IN WINDOWS 95 98 NT i SETTING UP KEPSERVER 32 BIT DRIVERS FOR WINDOWS 95 98 OR NT SETTING UP KEPSERVER 32 BIT ADD ONS FOR WINDOWS 95 98 OR NTTM KEPSERVER PROGRAMS r Deae deer e UR Oe eR eR e Een KEPServer 32 Bit DDE Server Applica
61. ister setup To set the register 8 see instructions for S13 255 Bit Value Result 0 1 Enables ITU T V 21 529 20 modulation at 300 bps for overseas calls in V 21 mode S30 the modem answers both overseas and domestic U S S31 and Canada calls but only originates V 21 calls Default 532 2 Bell 103 1 2 Enables unencoded non trellis coded modulation in V 32 mode 2 4 Disables V 32 modulation 3 8 Disables 2100 Hz answer tone to allow two V 42 modems to connect faster 4 16 Enables V 23 fallback mode 5 32 Disables V 32bis mode 6 64 Disable V 42 selective reject 7 128 Software compatibility 1998 Kessler Ellis Products mode This setting disables the codes and displays the 9600 code instead The actual rate of the call can be viewed on the ATI6 screen Used for unusual software incompatibilities Some software may not accept 7200 12 000 and 14 400 bps or greater result codes Eliminates the V 32 answer tones for a faster connection Default item all times are in tenths of seconds Disables all connections except V 32 at 9600 bps Sets the duration in tenths of a second of the V 21 answer mode fallback timer Reserved Reserved Bit mapped register setup To set the register see the instructions for S13 Bit Value Result 0 1 V 8 Call Indicate enabled 1 2 Enables V 8 mode 2 4 Reserved 3 8 Disable V 34 modulation 4 16 Disable 34 modulation 5 7 32 128 Reserved Appendix A AT Comma
62. ject for setup 2 Open Ctrl O Opens an existing project for use or modification 3 Save Ctrl S Saves the current project for later use The project must also be saved to allow the user to enter user defined item tags or connect to the driver 4 Save As Same as save except that it allows the user to save the currect project with a different name 5 Export as CSV file Generates a CSV comma separated variable text file containing driver channel and device data for the current project See Importing and Exporting CSV Files Inside The DDE Server 1 6 Most Recent File The most recent file section keeps track of the 4 most recently accessed files 7 Exit Exit allows the user to exit the current project Unsaved projects will be queried for save at this time KEPServer Server Example kdp i DE XI Eie EQ View Mode Channels Devices Tags Tools Help Ii Unde ef Cut Copy Ctrl C Paste etl Ay Select All Ctrl Invert Selection 11 21 25 06 03 1998 3 HE See sal AD Boolean Device Manager KEPware 32 Bit Device Manager 1 50 10 Project unlocked Server is offline 4 Edit Menu 1 Undo Undo or reverse the last action 2 Cut Cut the selected item to the clipboard 3 Copy Copy the selected item to the clipboard 4 Paste Paste the contents of the clipboard to the server 5 Select All Select all of the tags b
63. ke sure that the channel names are unique Remember that KEPServer supports up to 16 Com ports or cards channels but you should ensure that they are available in your PC before trying to use them 32e Copyright O 1998 KEPware IncErreur Style non d fini Adding a Device Devices represent PLCs or other 1 Click on the channel to which you want to add a device and then click on the Add hardware that the server will Device icon from the button menu communicate with Device selection is restricted by the device driver assigned to the channel New Device Name device name can be from 1 to 31 characters in length It must begin with a letter but the remaining characters can be any combination of letters numbers and the underscore character Device Name Feeder lt Back Next gt Cancel Help The device name is a user defined 2 Enter the unique name that will be used to identify the device and click Next The logical name for the device This name must start with a letter The remaining characters can be any combination Li of up to 30 letters numbers and the underscore conversations and the AccessPath used in OPC conversations when np accessing data from this device Note device names used in KEPServer must be unique this includes device names on multiple channels KEPServer will prompt you with a warning if a duplication occurs Copyright 1998 KEPware Inc Creating A DDE Project
64. l window m Find Target Change Icon Quotes are needed because of 4 The Target will be as follows the space between Program and D Program Files KEPware KEPDDe kepdde exe run myproject kdp Files in the path 5 Start in directory will be the directory in which the server project is saved D Program Files KEPware KEPDDe Projects 6 Inthe Run list box select Minimized 1998 Kessler Ellis Products Automatically Running a Server at Startup e 107 KEPServer Properties KEPwareKEPDDE Kkepdde run myproject kdp Runin separate Tema space D Program Files KE Pware KEPDDE Projects end Mis 7 Click Apply to accept the shortcut and click OK to exit the dialog 108 Automatically Running a Server at Startup Appendix A AT Command Set Summary and Acknowledgements The following information is taken with permission directly from the 3Com US Robotics Sporster modem instruction manual Summary of Commands Type commands in either upper or lower case not a combination Use the Backspace key to delete errors You cannot delete the original AT command since it is stored in the modem buffer e facommand has numeric options and you don t include a number zero is assumed For example if you type ATB the command ATBO is assumed Every command except and must begin with the AT prefix and be entered by pressing ENTER e The maximum com
65. le Cause The selected Modem for the channel you are defining is already being used by another channel Solution Select a different Modem for the channel Unable to write to tag lt tag name gt tag address gt on device device name gt Error Type Warning Possible Cause A write request could not be processed by the device driver responsible for communication with the indicated device A driver may stop scanning a block of tags because one or more addresses in the block is not supported by the target device Solution If the location referenced by the tag address is valid for the specified device retry the operation Device lt device name gt not responding Error Type Serious Possible Cause 1 The serial connection between the device and the host PC is broken Troubleshooting e 99 100 e 2 The communications parameters for the serial connection or incorrect 3 The named device may have been assigned an incorrect network ID Solution 1 Verify the cabling between the PC and the PLC device 2 Verify the specified communications parameters match those of the device 3 Verify the network ID given to the named device matches that of the actual device Unable to write to lt address gt on device device name gt Error Type Serious Possible Cause 1 The serial connection between the device and the host PC is broken 2 The communications parameters for the serial connection or i
66. llows you to create the node with or without an Access Path The Access Path is simply the topic where the data is located If you leave it blank OPC conventions allow you to identify it at the tag level For this example we will leave the Access Path empty 7 Set your Update Rate to match the requirements of your application Node of X Data Source Direct Driver OPC Server DDE Server foo Name KEPServer Enabled Prev r Server Name KEPServer Next In Process Local C Remote Computer EE Access Path Update Rate 1 000 seconds rame ata L KEPServer OPC Server KEPServer 8 Click Accept and Close in the Node dialog box 9 Next in RSView32 click on the System folder and then click on Tag Database in the Project Control and open the Tag Database dialog box 54 Copyright 1998 KEPware IncErreur Style non d fini Tag Database Jab x ETE a system 10 In the Tag Database enter the tag description information as you would for any Rockwell driver 11 In the Data Source section Click on the Device radio button 12 Click on the Node Browser button to select a Node Name In our example we have only the KEPServer node that we added Node Browser OPC Server KEPServer Local Copyright 1998 KEPware Inc Communicating with the Server 55 Some clients sup
67. loppy drive letter followed by a colon a backslash V and the word setup For example a setup Follow the on screen instructions NOTE The KEPServer program must be installed first The Add Ons will automatically find the location of the KEPServer and install to its directory KEPServer Programs m 78 KEPServer 32 Bit DDE Server Application X KEPware has developed this DDE server interface to allow users to read data from or write data to external devices using DDE clients such as Microsoft Excel or HMI software packages such as KEPware HMI RSView Cimplicity and Wonderware Intouch A client will establish a DDE link with the KEPware DDE server through the following convention vie Copyright 1998 KEPware IncErreur Style non d fini Copyright 1998 KEPware Inc application l topic item where application KEPdde topic device name A DDE link may also be established across a PC network using NetDDE Use the following convention to establish a NetDDE link from a remote client application Application lt computer name gt NDDE Topic device name appended to indicate a DDE share Item item name Note The item name in the above examples can represent either a Dynamic Tag or a user defined Internal Tag entered in KEPServer s built in tag database The uses for Dynamic and Internal tags will be covered in the following sections KEPServer 32 bit Modem Add On The Modem
68. mand length is 58 characters The modem doesn t count the AT prefix carriage returns or spaces 1998 Kessler Ellis Products Use in conjunction with D S or amp commands or just to display a basic command list online help A A Any key AT Manual Answer goes off hook in answer mode Pressing any key aborts the operations Re executes the last issued command Used mainly to redial This does not require the AT prefix or a Carriage Return Aborts off hook dial answer operation and hangs up Required command prefix except with A and Use alone to test for OK result code Bn U S ITU T answer sequence BO ITU T answer sequence Bl U S answer tone Dials the specified phone number Includes the following L Dials the last dialed number P Pulse rotary dial R Originates call using answer reverse frequencies Sn Dials the phone number string stored in at position n n 0 3 Phone numbers are stored with the amp Zn s command T Tone dial Comma Pause See S8 definition which it s linked to Semicolon Return to Command mode after dialing Dials the letters that follow in an alphabetical phone number Appendix A AT Command Set e 1 Exclamation point Flashes the switch hook Delays for 125 ms before proceeding with dial string W Wait for second dial tone X2 or X4 linked to 96 register Dials waits for quiet answer and continues
69. meouts 0 06 03 1998 154239 4 DIRECT NET Transmission errors 0 E 06 03 1998 15 42 39 4 KEPServer Peak DDE queue usage 0 0 E 06 03 1338 15 42 39 4 KEPServer Average DDE queue usage 0 0 8 06 03 1998 154239 4 KEPServer Peak active items 0 Project unlocked Server is offline 2 2 You will notice that several lines appear in the Message Log window These messages are connection statistics for the time that you were connected to the driver These messages will only appear if View Show Statistics is selected 40 o Copyright O 1998 KEPware IncErreur Style non d fini Communicating with the Server Accessing KEPServer OPC Tag Browsing allows you to see a list of the static tags you have defined in your KEPServer application directly within your OPC client A server application like KEPServer has little purpose without client applications to which it can supply data In this section we will cover the basics of connecting KEPServer with a number of common OPC and DDE clients While we can t possibly cover every client application that exist we believe that after reviewing this section you should be able to deal with most client applications Whether you are using OPC or DDE you will find there is common terminology for both technologies Once you have reviewed this section and understand that terminology you should have little trouble dealing with just about any OPC or DDE client The intention of this section is not to co
70. n to at 9600 baud It sounds crazy but this is just the nature of modems If there is a point where getting a modem application to fail is high this is it The easiest thing to do is look at the KEPServer project you did that uses a direct cable connection and simply match the settings Once you have the port settings entered click the OK button and now you should be ready to configure your receiving modem Copyright 1998 KEPware Inc Using Modems with KEPServer 85 ttt Properties 2 x Connect To Settings e ttt Country code United States of America 1 Enter the area code without the lona distance prefix Area code 2 0 Phone number Connect using comi Configure Iv Use County Gue ahd area Code Bedialion busy OK 5 Atthis point you should be able to issue commands to your receiving modem You can test this by typing ATI4 followed by the enter key If the modem is properly attached to your PC it should respond by displaying its current profile settings Once the profile is displayed compare it with the profile provided by the KEPServer driver you are using Remember these profiles are for USRobotics modems If you are using a modem other than USRobotics the profiles may differ considerably You may find that some of the settings in your modems profile need to be changed At a minimum you will need to set the modem into AutoAnswer mode To aid in changing your settings we
71. ncorrect 3 The named device may have been assigned an incorrect network ID Solution 1 Verify the cabling between the PC and the PLC device 2 Verify the specified communications parameters match those of the device 3 Verify the network ID given to the named device matches that of the actual device Communications error on COMn error mask Error Type Serious Error Mask Definitions B Hardware break detected F Framing error I O error Character buffer overrun R RX buffer overrun P Received byte parity error T TX buffer full Possible Cause 1 The serial connection between the device and the host PC is bad 2 The communications parameters for the serial connection are incorrect Solution 1 Verify the cabling between the PC and the PLC device 2 Verify the specified communications parameters match those of the device Bad address in block start address gt to end address gt on device device name gt Error Type Serious Possible Cause An attempt has been made to reference a nonexistent location in the specified device Solution Verify the tags assigned to addresses in the specified range on the device and eliminate ones that reference invalid locations Copyright 1998 KEPware IncErreur Style non d fini Copyright 1998 KEPware Inc Only one ERROR tag may be defined per device Error Type Recoverable Possible Cause More than one ERROR tag was define f
72. nd Set 1 Register Default Function 33 0 Bit mapped register setup To set the register see the instructions for S13 Bit Value Result 0 1 Disable 2400 symbol rate 1 2 Disable 2743 symbol rate 2 4 Disable 2800 symbol rate 3 8 Disable 3000 symbol rate 4 16 Disable 3200 symbol rate 5 32 Disable 3429 symbol rate 6 64 Reserved 7 128 Disable shaping 934 0 Bit mapped register setup To set registers see instructions for S13 Bit Value Result 0 1 Disable 8S 2D trellis encoding 1 2 Disable 16S 4D trellis encoding 2 4 Disable 32S 2D trellis encoding 3 8 Disable 64S 4D trellis encoding 4 16 Disable non linear coding 5 32 Disable TX level deviation 6 64 Disable Pre emphasis 7 128 Disable Pre coding A 12 Appendix A AT Command Set 535 938 939 540 541 Reserved Bit mapped register setup To set registers see instructions for 13 Bit Value Result 0 2 1 7 Limit back channel rate 1 28800 max 2 2 26400 max 3 24000 max 4 21600 max 5 19200 max 6 16800 7 14400 3 8 Force RBS operation 4 7 12 128 Reserved Sets an optional delay in seconds before a forced hang up and clearing of the Transmit buffer when DTR drops during an ARQ call This allows time for a remote modem to acknowledge receipt of all transmitted data before it is disconnected The modem immediately hangs up when DTR drops This option only applies to connections terminated by dropping
73. nel Summary page Verify the entries and click Finish to end At this point you could add additional channels if you wished Each channel can be configured to use a different KEPServer driver You do need to make sure that the channel names are unique Remember that KEPServer supports up to 16 Com ports or cards channels but you should ensure that they are available in your PC before trying to use them New Channel Communications r Channel Parameters omi dj Baud Rate Data Bits dl Parity None z Stop Bits 61 C2 Flow Control None Iv Use Modem Communications Port settings are the primary cause of most driver communication issues One of the 7 easiest ways to configure a KEPServer driver is to match its settings with the programming software used for your device EUER Configuring a Modem Communication Channel Select Use Modem for the channel Notice that all of the other parameters are now grayed out Now click Next Note The comm parameters for a modem connection are controlled by the modem connected to the PLC or PLCs you are dialing out to 28 e Copyright O 1998 KEPware IncErreur Style non d fini New Channel Select Modem Modem Sportster 28800 33600 External The following modems are setup on this computer Dialing Properties lt Back Cancel 8 Now you will need to select and possibly configure the mod
74. ome things to remember now that you have registered the driver 1 The driver is a single installation driver This means that you can only have it installed on one machine If you upgrade the driver to a new version it will check to see if it is registered so that you will not be asked to register it again 2 Ifyou have to move the driver or for some reason have to re install it call KEP ware for instructions Once the driver is installed the Computer ID is regenerated Therefore the password that you just used will not work again For this reason if you have to re install the driver because of some system failure you will have to contact KEPware for a new password Disconnecting From the Driver Once you have your KEPServer project up and running for a while you may wish to disconnect 1 Click the Disconnect icon Ed on the Button Bar 6 25 Server Example kdp i OF XI File Edit View Mode Channels Devices Tags Tools Help selel belie e ailal e FE Koyo Tne Taies JDasupo Sce Tni Feeder btnStop Boolean 100 Re Message 06 03 1988 13 57 50 Device Manager KEPware 32 Bit Device Manager V 1 50 10 06 03 1998 15 42 32 DIRECT NET KEPware 32 Bit Koyo DirectNet Device Driver V1 20 3 e 06 03 1998 15 42 33 3 KEPServer NetDDE services started 06 03 1998 154239 4 DIRECT NET Number of blocks read 0 06 03 1998 15 42 39 4 DIRECT NET Number of ti
75. ommunicating with the Server 1 Using Modems with KEPServer Using the Modem with Clients KEPware recommends the use of external US Robotics Sportster Modems Copyright O 1998 KEPware Inc Introduction The modem support provides a vehicle to the server to attach to a PLC or group of PLCS over a standard modem connection Because KEPServers modem support uses standard Windows TAPI Telephony API you can now control the primary functions of the local modem from your client You do have to configure the receive modem the modem attached to the device to be able to communicate with the attached device We recommend that you create a basic version of your project that communicates directly to the PLC via the RS 232 serial port and then convert it to modem use once you know that it works This process will eliminate the potential for lost time due to trial and error troubleshooting Important Note We strongly recommend the use of USRobotics modems USRobotics modems have been used as the primary modem during development and testing of the KEPServer modem support Due to the wide range of modems available we will only be able to offer technical support on applications that use USRobotics modems In modem applications the money you save on a cheaper modem will be lost in the first hour of unnecessary time you spend trying to get it to work Remember modems are 5096 magic you want the best magician you can get Non USRobotics modems will wo
76. on wizards speed set up e Channel connections displayed graphically e Real time monitoring of DDE conversation status e Supports concurrent serial port and PC card configurations e No extra hardware required e On line help provided e Server connections easily configured and changed e Supports access to 16 comm ports or channels e Each port can support a unique driver or the same driver on many ports e Can address as many devices as the device network allows e Can password protect project design viii e Copyright O 1998 KEPware IncErreur Style non d fini Inside The DDE Server The Menu Bar T3 25 Untitled The following sections will introduce you to the various components of the KEPServer The DDE Server Menu Bar is designed to guide the user in setting up and running a server project As the user works his way through the setup process only those items available to the current procedure will be highlighted in the menu bar All inapplicable items will be grayed out PII x Edit View Mode Channels Devices Tags Tools Help New Open Save Save As Ctrl N 0 Ctrl S as 00 1 CAPMS watar PMS water kdp 2 SquareD_test kdp 3 dfl kdp 4 SquareD_test2 kdp 5 toshtest kdp B Printing kdp Exit Copyright 1998 KEPware Inc gt Project unlocked Server is offline 4 File Menu 1 New Ctrl N Creates a new pro
77. oolean 100 Re 1 06 03 1998 11 21 25 3 Device Manager KEPware 32 Bit Device Manager 1 50 10 Project unlocked Server is offline Welcome to the KEPServer KEPware DDE Server software offers interface solutions for PLCs Transmitters Sensors Remote I O and other process devices with OTS DDE and NetDDE capable software This user manual provides a general overview of the techniques needed to navigate through and set up the KEPware DDE Server KEPware DDE Servers are packaged as a 32 bit server application and a 32 bit driver Each driver is locked by a coded software license To unlock the driver simply call email or fax us with the Serial Number and the Computer ID code displayed by the driver We will then provide you with an unlock code The driver will run for ten days without the unlock code giving you plenty of time to contact us The KEPware DDE Server is straightforward and easy to use Online help for the server and the drivers is always available through the Help menu by clicking on a Help command button in a dialog box or by pressing the F key while in a field Copyright O 1998 KEPware Inc Getting Started v System Requirements KEPServer requires an IBM PC or compatible with a Pentium class microprocessor with 16 MB of RAM minimum 4MB of free hard disk space a VGA or higher color monitor at 640x480 16 color resolution or higher and Microsoft Windows 95 or NT An available serial port will also be requi
78. opyright O 1998 KEPware Inc Communicating with the Server e 71 KEPware HMI as an Advanced DDE Client Connecting to KEPServer From the KEPware HMI Client With KEPware s improved functionality making DDE connections is no different than connecting directly to a PLC 1 2 After starting your KEPware project select Tools Setup Nodes from the Main Menu In the Node Setup window click on Add to add a new node Node Setup x Add Node Name telo sj Application 7 8 72e You will be shown how to create a local DDE link first and then we will repeat the process to create a network link Enter a node Name we used Local Select the node Type from the drop down list you want DDE Enter the Application name for the link which will be KEPdde Finally enter the Topic name which is Feeder in our example Click on OK to accept the node and then Click on Add to create an additional node Enter a node Name we used Network to indicate that this is a network node Select the node Type from the drop down list you want DDE Enter the Application name for the link which will be PC100 NDDE telling KEPware HMI which PC to look on for the KEPware DDE Server Finally enter the Topic name which is PLC1 in our example Click on OK to accept the node Add Node IE Name Type DDE Application PC100 NDDE v OK Topic Click Close to exit Setup Nodes Click
79. or a NetDDE share on a PC named PC100 which is named Device 1 80 e Copyright O 1998 KEPware IncErreur Style non d fini 14 Hit Ctrl Shift Enter on the keyboard and you should start seeing data N Microsoft Excel 1 OE x 53 File Edit View Insert Format Tools Data Window Help 5 x JOSE SRY 2 z0 B z sx 5 S Iv 2A Jen 27917 54218 26984 26984 26984 26984 26984 26994 26994 42 42 42 42 42 42 42 42 m Sheet2 4 Sheet3 Ready IT T T NM T Fl z Writing Data from Excel to the DDE Server Like the HMI packages you may want to be able to write data back to the device The function or method used is called DDEPoke 1 With KEPServer running create a macro module in Excel 2 Inthe following example we have created a macro named MyPoke When invoked or run MyPoke will write a value of O zero to the Server address RO on device Device 1 Sub MyPoke Dim rangetopoke Dim channel channel Application DDElnitiate KEPdde Device 1 Set rangetopoke 0 Application DDEPoke channel RO rangetopoke Application DDETerminate channel End Sub 3 The macro can be assigned to a button or other control object and invoked from there or it can be run by selecting ToolsIMacros and then running the selected macro Copyright O 1998 KEPware Inc C
80. or a given device Solution Review the tag database for the project and remove the extra ERROR tag s Device address lt address gt contains a syntax error Error Type Warning Possible Cause A tag address that has been specified dynamically via DDE contains one or more invalid characters Solution Reenter the address in the client application Address lt address gt is out of range for the specified device or register Error Type Warning Possible Cause A tag address that has been specified dynamically via DDE references a location that is beyond the range of supported locations for the device Solution Verify the address is correct and if not reenter it in the client application Device address lt address gt is not supported by model lt model name gt Error Type Warning Possible Cause A tag address that has been specified dynamically via DDE references a location that is valid for the communications protocol but not supported by the target device Solution Verify the address is correct and if not reenter it in the client application Verify the selected model name for the device is correct Unable to load driver driver name gt Error Type Serious Possible Cause The specified device driver is out of date corrupted or not installed Solution Contact KEPware technical support for a replacement or re install Troubleshooting 1 102 e No device driver DLLs found in lt path
81. orm 486 Pentium Pentium II CPU Speed Win 3 x Win 95A Win 95B Win NT 3 51 Win NT 4 0 Network Present Type Network OS Microsoft Novel Etc Are you attempting to connect to the server or another application over the network Yes No Cable Connections Serial RS 232 Off the Shelf or Custom Made Non Serial RS 232 Make and Model of Converter RS 422 485 card Make and Model of Converter Other Copyright 1998 KEPware Inc e T 3 T 4 gt Appendix AT Command Set KEPware Form S130 3 Project Description include number of tags plcs and explanation of what you are attempting to do if possible send your project Problem Description Completely describe what your problem is and what you were doing when you encountered it Copyright O 1998 KEPware Inc e T 5 1008 906 007 Ke T 6 Appendix A AT Command Set
82. orrect one 27 Select a Class for the point and then click OK We are creating an Analog tag for our example puo pee al New Point Copyright O 1998 KEPware Inc Communicating with the Server e 69 28 In the Point Properties dialog box you may enter a Description for the point 29 Next select the Data Type then if point is for display only click Read Only and then click on the Device tab The Data Type selected here must match the data type of the static tag defined in KEPServer Point Properties 1 70 e Copyright O 1998 KEPware IncErreur Style non d fini 30 If the proper Device ID is not selected then do so now 3 Next enter the Address of the OPC point We are using the KEPServer SimDemo project so the address for this point will be Device 1 788 1 32 Lastly select the Update Criteria for the point We selected On Change so that we will see the newest data all of the time 33 Now click OK to add the point and you are ready to use it in your project Point Properties 1 Kersenven TN Device 1 Tag 1 mi 10111526 OnChage 34 As a quick test if you hit run in the project it will connect the points to the server where you should see active Topics and Items on the status bar of the KEPServer You can also use the Point Control panel to view the current value of an OPC tag 35 Additional tags can be added by simply repeating the steps details here C
83. ors lt Number gt NAKs received lt Number gt Checksum errors lt Number gt Warning Messages 1 2 3 4 3 6 7 8 BR BR n O SO SO 00 5 27 28 29 30 31 32 33 34 35 Tag Tag Name gt is read only Write rejected Device Manager could not add tag Tag Name Unable to start NetDDE services Unable to register a NetDDE share for device Device Name Unable to load project Project Name Device Driver Name is not responding Communications error on COM Number Driver Name Address Address is not valid on device Driver Name Device address Address contains a syntax error Data type Data Type is not valid for device address Address Device address Address is read only The model name Model is not supported by this driver Address Address is out of range for the specified device or register Device address Address is not supported by model Model Only one ERROR tag may be defined per device An ERROR tag must be read only Data type Boolean must be used when defining an ERROR tag Tag data has been lost Unable to write to address Address on device Driver Name Array size is out of range for address Address Device Driver Name does not support arrays COM Number is already in use Invalid device name The device name Device Name is
84. ou enter the connection name you will be presented with the Connect To dialog In the Connect Using drop down select the communication port that you have the receiving modem attached to You may see other modems in this drop down list Ignore those for now and select the communications port that the receiving modem is attached to Copyright O 1998 KEPware IncErreur Style non d fini Connect To 21 x Enter details for the phone number that you want to dial Country code United States of America 1 Area code 207 Phone number Connect using v Cancel 4 The next dialog you will see is the COMx Properties This dialog allows you to configure the communications port settings used to talk to your receiving modem This step is Very Important The settings on this Properties dialog must match the Baud Rate Bits per Second Data Bits Parity and Stop Bits used by your target device The reason this is so important is due to the way modems operate A modem remembers the Baud Rate Data Bits Parity and Stop Bits that were used to talk to it last If you configured your receiving modem at 19 200 baud but the device was configured for 9600 baud you will never be able to speak to the device You could make a connection but once connected the receiving modem would send all data to the device at 19 200 baud This is true even if the modem connects at 9600 baud or if the transmitting modem is being spoke
85. port browsing 13 If you added an Access Path to your node then you will now want to add a static of the Static tags in the server tag name in Address or add the Device Address to add to use it dynamically in those instances you can select 14 If you did not then you can identify it in the address now The proper format is the tag that you want from a list lt Topic gt lt Item gt Some older RSView clients will use the format lt Topic gt lt Item gt Remember in KEPServer the Topic is the device name and Item is the static or dynamic tag Enter the address as shown here in the dialog below Tag Database x Tag Name agi Type Analog Security ow Description Minimum fo Scale 1 Units Maximum 100000 Offset 0 Data Type r Data Source Type Device Memory Node Name PServer Address evice 1 Tag 1 Search For EI system 15 Click Accept to save the Tag Adding more tags is simply a matter of repeating the steps detailed here 16 As with other examples in this section we do not detail how to display or use this tag within your RSView32 application Consult your RSView32 documentation or help for more information on building a graphic display of this tag data 56 Copyright 1998 KEPware IncErreur Style non d fini Genesis32 as Client Connecting to KEPServer from Genesis32 Components Iconic
86. quest to Send RTS see also amp Hn amp RO Reserved amp 1 amp R2 Modem ignores RTS Received Data to computer only on RTS Controls Data Set Ready DSR operations amp SO amp 51 DSR override always ON Modem controls DSR Begins test modes used in conjunction with s register 18 amp TO amp 1 amp T2 amp T3 amp T4 amp 5 amp T6 amp T7 amp T8 Ends testing Analog Loopback Reserved Local Digital Loopback Enables Remote Digital Loopback Prohibits Remote Digital Loopback Initiates Remote Digital Loopback Remote Digital with self test and error detector Analog Loopback with self test and error detector amp Un Sets floor connect speed when amp Ur is set greater than 0 amp Nn is the ceiling connect speed See amp Nn amp UO amp U16 Disabled 300 bps 1200 bps 2400 bps 4800 bps 7200 bps 9600 bps 12 000 bps 14 400 bps 16 800 bps 19 200 bps 21 600 bps 24 000 bps 26 400 bps 28 800 bps 31 200 bps 33 600 bps amp Wn Writes current configuration to NVRAM templates amp WO Modifies 0 template YO amp W1 Modifies 1 template Y1 amp Yn Sets break handling amp Y0 amp 1 amp Y2 amp Y3 Destructive but doesn t send break Destructive expedited Nondestructive expedited Nondestructive unexpedited amp Zn s Writes phone number string 5 to at position n n 0 3 6 Appendix AT Command Se
87. r error in module Module Name line Number OS Error Code Contact KEPware technical support Unable to create serial I O thread Comm Port does not exist Error opening Comm Port OS Error Code Unable to load driver Driver Name No device driver DLLs found in lt gt No device driver DLLs loaded The driver for Driver Name devices is not loaded The requested operation could not be completed due to an internal memory allocation error New channels cannot be added at run time Internal driver error in module Module Name at line Number Unable to assign tag Tag Name to device Driver Name Unable to delete tag Tag Name from device Driver Name Unable to write to tag Tag Name on device Driver Name Failed to open the Driver Name driver license file Contact KEPware technical support at 1 888 KEPWARE for assistance Failed to read the Driver Name driver license file Contact KEPware technical support at 1 888 KEPWARE for assistance The demo period for the Driver Name driver has expired Contact KEPware technical support at 1 888 KEPW ARE for assistance The license file for the Driver Name driver contains invalid data Contact KEPware technical support at 1 888 KEPW ARE for assistance Time comparison error Contact KEPware technical support at 1 888 KEPW ARE for assistance Shutting down Demo period has expired for the Driver Name driver Copyright O 1998
88. r will simply sit idle 4 Server Example kdp Iof x File Edit View Mode Channels Devices Tags Tools Help peel ee Sm omi EE IE um etes Daalype Pr Feeder Boolean 100 Re e 06 03 1998 11 21 25 KEPware 32 Bit Device Manager V1 50 10 3 Device Manager Project unlocked Server is offline 7 1 connect the server to the driver and allow KEPServer to accept DDE conversations press the Connect to the Server icon on the Button Bar DIRECT NET Driver Registration Form x This Dialog appears Please contact KEPware technical s uppart at only for licensed 1 888 KEPWARE to obtain a password that will copies of KEPServer unlock this device driver Cancel If you are using the Driver S N 10010 3205 Modem Add On a similar dialog will Computer ID 617411 270678183 open to unlock it Password 2 When you are connecting for the first time you must register your driver Record the Driver S N and the Computer ID make sure they are correct To register the driver you can either call KEPware and have us provide a password or you can fax or e mail the S N and Computer ID to KEPware and we will return the password to you We know that you are eager to start working with the server so we have provided a 10 day grace period so that you may continue to work while waiting to unlock your driver Just click Cancel to continue 38
89. red for most drivers Setting Up KEPServer in Windows 95 98 or NT M The KEPServer includes an installation program For proper installation follow these steps Insert Setup Disk 1 in a floppy disk drive Click the Start button then click Run Type the floppy drive letter followed by a colon a backslash and the word setup For example a setup Follow the on screen instructions The default installation location for 32 bit KEPware products is the Program Files directory on the C drive We recommend but it is not required that you install KEPServer files there Setting Up KEPServer 32 bit Drivers for Windows 95 98 NT Each KEPware 32 bit driver includes an installation program For proper installation follow these steps Insert Driver Setup Disk 1 in a floppy disk drive Click the Start button then click Run the floppy drive letter followed by a colon a backslash V and the word setup For example a setup Follow the on screen instructions NOTE The KEPServer program must be installed first The drivers will automatically find the location of the KEPServer and install to its directory Setting Up KEPServer 32 bit Add Ons for Windows 95 98 or NT Each KEPware 32 bit Add On includes an installation program For proper installation follow these steps Insert the Add On Setup Disk 1 in a floppy disk drive Click the Start button then click Run Type the f
90. rk but their settings may differ from those provided in our driver help files Additionally we recommend that you use external modems on both the initiating and receiving modems In testing we found that some internal modems would not accept settings that were crucial for some KEPServer drivers External modems are also easier to replace if they fail Modem Basics Modems convert the serial data from your RS 232 port into signal levels that can be transmitted over the phone line To do this modems take the serial data given to them and break each byte of the data down into bits used to generate the signal to be transmitted Most modems can handle converting up to ten bits of information for every byte of data that they send To communicate with your device via a modem it must be able to uses 10 bits orless You can determine how many bits your device is using from this formula Start Bits Data Bits Parity Stop Bits Total Bit Count Using Modems with KEPServer 3 Remember to always check the driver help file for the proper modem and cable configurations for your device 84 e Using the Modbus RTU driver as an example let s assume that the Modbus device is configured to use 8 Data Bits Even Parity and 1 Stop Bit 1 Start bit is always implied Using the formula we would have 1 8 1 1 11 Bits A normal modem would not be able to transmit data to this Modbus device using these settings If we change the Parity to None the r
91. rk then you will want to check Enable Project Broadcast 7 Youcan also modify any other project settings by selecting the General or Settings Tabs In our example we accepted all of the defaults 8 To accept the defaults click OK 64 e Copyright O 1998 KEPware IncErreur Style non d fini Project Properties Action Calendar X Basic Control L Database Logger SP ha SEIS Measurement Units Points Users 9 At this time the Project Wizard will open In our example we are not using the wizard however the process is the same 10 To close the Project Wizard click Close Copyright 1998 KEPware Inc Communicating with the Server 65 66 Screens Points fa Cross Reference Equipment i Devices Security Status Logs Runtime Advanced Basic Control Engine 11 In the project tree view click expand Equipment then right click on Ports click New to add a new port for the OPC connection OPCDEMO CIMPLICITY Workbench File Edit Project View Tools Help lel Es 12 In the New Port dialog box select the OPC port you wish to assign the client protocol to 13 Click Ok to accept Protocol OPCCLIENT Port Copyright 1998 KEPware IncErreur Style non d fini 14 In the Port Properties dialog box you can enter a Description of the new port to help identify it 15 En
92. roject Copyright O 1998 KEPware IncErreur Style non d fini 2 Tips Once selected this option will enable the Tip of the Day Function Server Tip Static Tag Usage lt is not necessary to define static tags in the server You can define dynamic tags in any client application Consult the help file for more information on static and dynamic tags 3 Create Shortcut Allows you to select a project to start automatically from a desktop shortcut On systems that have more than one user account the shortcut is placed in the current user s startup folder If you login as another user a new shortcut will have to be created Select Project 21 xi ae em L dnet testing x dnet Local Line kdp Problems dupertroll kdp II Projects ESLagoon kdp Contrex kdp ESLagoon Local kdp Scadapac dnet england kdp Modbus ESLagoon kdp test kdp dnet home kdp Modbus ESLagoon_local kdp Project Files kdp 4 Settings Opens the Settings Menu list Copyright O 1998 KEPware Inc Inside The DDE Server 9 KEPServer Dnet240 tests kdp Tools 2 HEE 5 OPC Settings KEPServer can automatically open and run a project when invoked from an OPC client When Auto Start is selected the project displayed in the OPC Settings dialog box will automatically open and run when the KEPServer is started from an OPC client To change this project press
93. s Genesis32 is comprised of several stand alone OPC clients and servers Each of these components reference OPC servers in a similar fashion For this example we will demonstrate adding an OPC tag to GraphworX32 The following steps will show you how to create an OPC connection to KEPServer from GraphworX32 or any other Iconics OPC client 1l Start GraphWorX32 from the start menu 2 Inthe new display window select Process Point and click in the window where you would like it to be located The Property Inspector for the object will open automatically 1 Display GraphWorX32 by ICONICS 5 eej 2 e wu fro zi sla ales le lt gt Copyright 1998 KEPware Inc Communicating with the Server 57 3 Inthe Property Inspector click on Tags to select OPC tag for the object Property Inspector P DOUBLE wo m lv LI p ES E High 4 Inthe OPC Tag Browser window select and expand the Computer tree view for a list of the available OPC Servers on your local PC OPC Tag Browser upe E My Computer Network Neighborhood 58e Copyright O 1998 KEPware IncErreur Style non d fini 5 Inthe OPC Tag Browser tree view expand KEPServer and then select Device 1 A list of the tags available under Device 1 will appear in the rig
94. so only the last phone number written is remembered The phone number should be in canonical format if you want the dialing preferences to be applied If the canonical format is used the resulting number that will be dialed after dialing preferences have been applied can be displayed as the DialNumber Canonical format is the following lt country code gt space area code space phone number example 1 207 846 5881 Note The country code for the U S is 1 If the number is not in canonical form dialing preferences will not be applied The number you enter will be dialed exactly as you enter it You can also enter a Phonebook tag name instead of a phone number In this case the current value of the phonebook tag will be used Phonebook tags can be created by adding a tag to the channel Copyright O 1998 KEPware IncErreur Style non d fini 7 Status This is the current status of the modem assigned to a channel Currently only the five lowest bits of the 32 bit status variable are used Bit Meaning Initialized with 1 Line open 2 Connected 3 Calling 4 Answering The value of the status tag when read as an integer will always be one of the following Value Meaning 0 Uninitialized the channel is not usable 1 Initialized no line open 3 Line open and the state is idle 7 Connected 11 Calling 19 Answering 8 StringLastEvent Contains a textual representation of the LastEvent
95. speed we incorrectly set up the Now click on the Connection Tab receive modem Sportster 28800 33600 External Properties 30 e Copyright O 1998 KEPware IncErreur Style non d fini 12 For connection settings we must make sure that we are connecting with the proper communications parameters These parameters should be set exactly as they were when using a direct cable connection to the device Check in the device driver help file for any special or unique requirements Click Advanced to look at the advanced settings Aldiviainictetd Cloininiel LI USE prat 13 Some drivers will require you to turn off error control and data compression Check the device driver help file for the exact setting requirements for that device Click Ok to exit the Dialog then Select the Options Tab Sportster 28800 33600 External Properties 14 Atthis time there is nothing in the Options section that we are concerned with changing Click Ok to exit the Properties dialog box 15 Click Next to continue Copyright O 1998 KEPware Inc Creating A DDE Project e 31 New Channel Summary 16 You should now be observing the New Channel Summary page Verify the entries and click Finish to end At this point you could add additional channels if you wished Each channel can be configured to use a different KEPServer driver You do need to ma
96. splayed in the OPC Settings dialog box will automatically open and run as long as the KEPServer is started from an OPC client To change this project press the Select button and choose a project Copyright 1998 KEPware Inc Inside The DDE Server 1 The Message Log Window The Event Logger records or displays the operating status of the DDE Server and the driver or drivers that it is using If View Show Statistics is selected the logger will display statistics on the devices when the server is disconnected The source of each message is identified so that if further information is required to understand the message the appropriate help file can be consulted T 25 Server Example kdp iof x File Edit View Mode Channels Devices Tags Tools Help 4H Koyo Feeder 06 03 1998 06 03 1998 06 03 1998 06 03 1998 06 03 1998 06 03 1998 05 03 1998 06 03 1998 06 03 1998 Text identified by lt gt indicates variable information added to 13 57 50 15 42 32 15 42 33 15 42 39 15 42 39 15 42 39 15 42 39 15 42 39 15 42 39 the message when it is displayed 22e ae a a a sa Sa Li Ww lala falla e Aston osea Scenie Pi Boolean 100 Re Bate Lite Lew Sowee Message Device Manager KEPware 32 Bit Device Manager 1 50 10 DIRECT NET KEPware 32 Bit Koyo DirectNet Device Driver V1 20 3 KEPServer NetDDE services st
97. t Users Guide amp Zn L Writes last executed dial string to at position n n 0 3 amp Zn Displays the phone number stored at position n n 2 0 3 amp ZL Displays the last executed dial string CID n Controls Caller ID feature CID 0 Caller ID disabled CID 1 Caller ID enabled CID 2 Caller ID enabled with extended information including caller s name Escapes to online command mode 1998 Kessler Ellis Products DIP Switches Modems with DIP Switches Only Note If a DIP switch is on it is down If a DIP switch is off it is up Defaults are in italics DIP switches which control a modem function override related modem commands written to the modem i e You cannot write ADO to if DIP 1 is up Factory Switch Setting 1 2 3 4 3 ON Function Data Terminal Ready DTR Override OFF Normal DTR operations computer must provide DTR signal for the modem to accept commands dropping DTR terminates a call ON Modem ignores DTR Override Verbal Numeric Result Codes OFF Verbal word results ON Numeric results Result Code Display OFF Suppresses result codes ON Enables result codes Command Mode Local Echo Suppression OFF Displays keyboard commands ON Suppresses echo Auto Answer Suppression OFF Modem answers on first ring or higher if specified in ON Disables auto answer Appendix A AT Command Set e A 7 Factory Swi
98. t O 1998 KEPware Inc r Channel Parameters D BaudRate 5600 gt Data Bits H Patty None Stop Bits 1 dl Elow Control None Use Modem Configuring a Serial Communication Channel 5 Select the communications parameters for the channel Remember these settings must match your device s setting Once you have selected all of the proper settings click Next Note The Channel Parameters displayed may be dependent upon the communications driver you have chosen and might not appear as they do here The fields are 1 ID Selects which communications port on your computer will be used when communicating with devices assigned to the channel 2 Baud Rate Selects the baud rate that should be used to configure the selected COM port 3 Data Bits Selects the number of data bits per data word 5 6 7 or 8 4 Parity Selects the type of parity the data should use Odd Even or None 5 Stop Bits Selects the number of stop bits per data word 1 or 2 6 Flow Control Determines how the RTS and DTR control lines should be utilized Creating A DDE Project e 27 New Channel Summary If the following information is correct click Finish to save the settings for the new channel Name Koyo Device Driver DIRECT NET Serial Serial ID COM 1 Modem Connection Not Supported lt Back 6 You should now be observing the New Chan
99. tch Setting Function 6 OFF OFF ON Carrier Detect CD Override OFF Modem sends CD signal when it connects with another modem drops CD on disconnect ON CD always ON Override Power on and ATZ Reset Software Defaults OFF Loads Y or Y1 configuration from user defined nonvolatile memory NVRAM ON Loads amp FO Generic template from read only memory ROM AT Command Set Recognition OFF Disables command recognition Dumb Mode ON Enables recognition Smart mode 8 Appendix A AT Command Set S Registers To change a setting use the ATSr n command where r is the register and n is a decimal value from 0 255 unless otherwise indicated Register Default SO 51 52 53 54 55 56 97 0 43 13 10 Function Sets the number of rings on which to answer in Auto Answer Mode When set to 0 Auto Answer is disabled Counts and stores the number of rings from an incoming call SO must be greater than 0 Stores the ASCII decimal code for the escape code character Default character is A value of 128 255 disables the escape code Stores the ASCII code for the Carriage Return character Valid range is 0 127 Stores the ASCII decimal code for the Line Feed character Valid range is 0 127 Stores the ASCII decimal code for the Backspace character A value of 128 255 disables the Backspace key s delete function Sets the number of seconds the modem waits befor
100. ter a base Scan Rate for the port 16 Click Enable to enable the port and the click OK Port Properties 7 17 In the project tree view click expand Equipment then right click on Devices click New to add a new Device for the OPC connection 18 In the New Device dialog box enter a Device name for the new device We chose KEPSERVER 19 If you have created more then one Port then be sure to select the proper one for this device now and click OK New Device x KEPSERVER penus Eja esa Copyright O 1998 KEPware Inc Communicating with the Server 67 20 In the Device Properties dialog box you may add a Description for the device 2 Next select a Resource to log device events to then click the Default tab See your Cimplicty users manual for details Device KEPSERVER were L p HE s 68 e Copyright O 1998 KEPware IncErreur Style non d fini 22 In the Default tab assign an Address to the device You will need to enter KEPServer This is the OPC Server id 23 Next be sure to set Enable to Yes and click OK Device KEPSERVER m 24 In the project tree view click expand Equipment then right click on Points click New to add a new Device for the OPC connection 25 Enter a Point ID to identify the point 26 The Type of point will be Device If you have created more then one device be sure to select the c
101. ti4 USRobotics Sportster 33600 Fax Settings BO El Fi Mi 90 vO x4 Y1 PARITY N WORDLEN 8 ON HOOK BAUD 9600 DIAL HUNT amp amp Bl amp P amp R2Z 800 001 807 060 815 000 825 005 833 000 LAST DIALED 0 amp 30 801 000 s02 043 303 013 304 010 805 008 s0 6 002 s08 002 809 006 810 014 311 070 312 050 0 816 000 318 000 319 000 321 010 322 017 3823 019 827 000 328 008 329 020 330 000 331 128 832 002 934 000 336 014 838 000 620 amp G0 amp Hl 610 amp Kl amp M4 amp T5 amp UO amp 1 Connected 0 00 18 KEPware recommends the use of US Robotics Sportster Modems TTY 3600 amp N 1 SCROLL CAPS NUM Capture Print echo Modem Cabling 6 Just when you thought everything was ready to go there s still one more detail that must be done correctly if you want success You need to have the correct cable connection between your receiving modem and your device The connection to your modem is normally done with what is called a NULL modem cable A NULL modem cable means that all the pins are connected to the same pins on both ends of the cable The cable you use to connect to your target device usually has pins 2 and 3 reversed Since you know the cable you use to talk to your device for the direct connection is working properly you can use it on your receiving modem by attaching a NULL modem adapter NULL modem adapters can be found at most computer stores While you are at the computer
102. tiofi i oo te e eee UE Ere RUE e e exe E Reese Dese KEPServer 32 bit Modem Add On ii ji KEPServer 32 Bit DEVICE IV OTS isa pepe Sk D RI od RADIO yii KEPS rver 32 Bit Helps a vii 5 FEATURES MM o VIII INSIDE THE DDE SERVER m 1 THE MENU BAR File Menu 2 TREE Chatinels Meta ria aa ina ae 5 Devices MONI Em 6 Tass Menit 23 5 S 00 000 Tools Menu rouen tbe c Litio a ai cde io RUI Eve 11 HelplDriver Help is dune Tee de HelplAbout the Server RE RATTI HelplAbout the ServerlVersions THESHORTCUT MENU EASES Edit Channel tide I t hetero tete Device SNOPICUL Edit 006 Tag ATI MEE Edit Tag SUI scatti X M THE BUTTON OPC SETTINGS nt ertt THE MESSAGE LOG WINDOW T VARIA EE Information MeSSaBeS eene QE e eei ie aree 7 Statistics Messages Warning Messages Error Messages istos tt pde Od e ee Re een dede nume nv tede debere dvd ted bene tede enge bh been Copyright O 1998 KEPware Inc Getting Started e i 25 CREATING ADDINGA CHANNEL Configuring the Channel for a Comm
103. ver how a KEPServer project is constructed It is assumed that you have already either configured your KEPServer application by selecting the appropriate driver and settings or you have run the Simulator demo which is included with KEPServer For simplicity the Simulator demo included with KEPServer will be used for all examples contained in this section Before beginning any of the examples start the KEPServer application by selecting it from your Start Menu Once KEPServer is loaded use the FilelOpen command to load the Simdemo project Once this project is loaded click on the green online button Once KEPServer indicates that it is in the run mode close the application Once you have selected a project in this case the Simdemo project KEPServer will automatically load this project when an OPC client application invokes KEPServer s OPC server component DDE connectivity is a little different and we ll discuss those differences when demonstrating a DDE client KEPServer has always had the ability to define what we refer to as static tags in your KEPServer application Prior to OPC static tags gave a DDE application designer the ability to create an alias for device data Assume register 1000 contained the value of parts made without static tags a DDE application would have directly accessed register 1000 Using static tags an alias can be created like PartsMade Now the DDE application could access the data via this new ali
104. xist Error Type Fatal Possible Cause The specified COM port is not present on the target computer Solution Verify the proper COM port has been selected Error opening COMn Error Type Fatal Possible Cause The specified COM port could not be opened due an internal hardware or software problem on the target computer Solution Verify the COM port is functional and may be accessed by other Windows applications 104 e Copyright O 1998 KEPware IncErreur Style non d fini Automatically Running a Server at Startup Overview The KEPServer is a 32 bit product In this section we will show you how to setup the KEPServer to start running a project and cannot run on Windows 3 x automatically when your PC is started or when selecting a shortcut or program item Windows 95 Making KEPServer Auto Start in Win 95 Setting up the KEPServer to run automatically in Windows 95 is quite easy You simply create a shortcut which points to the KEPServer executable 1 Copy the shortcut from the KEPware Products folder to the Startup folder 2 Select Properties from the shortcut menu 3 Select the Shortcut tab KEPServer Properties HE General Shortcut EP KEPServer Target type Application Target location KEPDDE Target C Frogram Files KE Pware KEPDDE kepdde exe Start in C AProgram Files KEPware KEPDDEProjects Shortcut key Bun Normal window Eind Target Ehange Icon
105. xt Click Finish Add a device to the channel named micro3 with a model of Micro3 and a device ID of 0 Save the project and place it in On Line mode Open the Excel demo project located in C Program Files Kepware Kepdde Projects the demo file name is Excel Modem example xls Copyright 1998 KEPware IncErreur Style non d fini N Microsoft Excel Excel Modem example xls OE XI 18 Ele Edit view Insert Format Tools Data Window Help 18 xl Dc 5087 66 9 aria gt 10 B zu 5 46 w i BE v gt P AG Ls J x _ heal Modem Example Application 121888 DA A 3 Use this application to connect to a PLC located at the KEPware office in Yarmouth Maine First open the KEPServer Modem example KEPServer Modem example kdp and enable Modem use Refer to the Modem Setup section of the KEPServer help file to correctly set the properties of your Initiating Modem Restart Modem Links button then set the phonenumber and dial dat sm After the modems connect you should be able to read and write to ET Ri MGE nks the Idec PLC tags INKS Connect to a PLC at KEPware s office Edit the Edit the values in the yellow boxes below Press the PhoneNumber in the yellow box below Add leading appropriate Write button to send each value to the PLC numbers and separators to access an outside line in i z your Facility Ex 9 1
106. yright 1998 KEPware IncErreur Style non d fini Cimplicity as an OPC Client Connecting to KEPServer from Cimplicty GE Fanuc s Cimplicity implements OPC client connectivity through their existing device I O model The following steps will show you how to create an OPC connection to KEPServer from Cimplicty Cimplicity HMI s Workbench is the project control center 1 Start Workbench and click on New Project Untitled CIMPLICITY Workbench Iof x File Edit Project View Tools Help HSS 3 Ba pet Ready 2 2 First enter a Project Name for your new project By default the Sub Directory is auto filled with the Project Name 3 Inthe Project Properties dialog box Select the Options that you wish to include in your project For our example we chose only basic controls Copyright O 1998 KEPware Inc Communicating with the Server 63 4 Next select the Protocols you want to use in your project For our example we chose OPC Client New Project DIES HMI ServerBase Es Cmpiciy HMI E E3 arc _ Action Calendar bsm data x Basic Control Database Logger Client 5 Lastly select the Project Path and click Create to create your project 6 The Project Properties dialog box will open If you plan to provide information from the project to the rest of your netwo

Download Pdf Manuals

image

Related Search

Related Contents

Samsung SGH-G800 Brugervejledning  Document 6468844  123 lankosol epais  DI-28P ハンディメガ(定格 125V/250V)    Benutzerhandbuch  簡易取扱説明書  取扱説明書  Meyer 38180 Use and Care Manual  

Copyright © All rights reserved.
Failed to retrieve file