background image

OneSix Server Help

Overview

x

5

Filtering

For both analog and temperature devices, OneSix

allows the user to define a 

deadband to control the amount of change that must occur before the server updates a 

Client with new data.  Deadband is useful to control the amount of information that is 

passed through OPC to the client application.  For analog devices, the deadband is 

entered as the percentage of full scale of Engineering units.  For temperature devices, 

the deadband is entered in degrees C.
Also for both analog and temperature devices, One Six™ provides the means to filter 

the data with either an Average, Median or combination Median Average filter 

before either logging data or delivering data through OPC.  In the One Six INI file, 

you specify the filter type and the number of samples to filter.  

What is OPC?

OLE for Process Control (OPC) is a specific specification of Microsoft’s Object 

Linking and Embeddeding (OLE) and Component Object Model (COM) that is 

administered by the OPC Foundation (150 member companies including Microsoft 

Corporation).  OPC provides a common interface for devices and applications to 

communicate.  Devices that gather or originate data become OPC servers, providing 

data to OPC client applications in a consistent fashion.  At the heart of OPC is the 

client/server model in which the OPC server provides and interface to the OPC 

object, allowing client applications to control devices and manage device data in a 

generic fashion.  OPC servers can be accessed through most HMI software and 

through a variety of languages, including C++, Visual Basic, and Delphi.  The OPC 

server collects data from physical devices for distribution to OPC client applications 

and also has the responsibility for updating device data when an OPC client issues a 

write.
An OPC client connects to and communicates with an OPC server through one of two 

interfaces defined in the OPC specification.  The OLE automation interface allows 

users to access data through the use of a common, easily understood scripting 

language.  The COM interface is more complex, but provides finer levels of control 

and flexibility for developers and users proficient in languages such as C or C++.  

OPC client applications can access OPC servers locally within a computer or from a 

networked server.

Data Logging

OneSix™ Server can log data to an ASCII file at a programmable interval.  The 

default name of the file is ONESIX.LOG. 
A client application can control logging through OPC variables.  The client can 

start/stop logging or just log a single record. 
For diagnostic purposes, OneSix™ can log errors that have occurred  while waiting 

or process device data. 
For more information see the section OneSix Server Data Logging.

Summary of Contents for OneSix

Page 1: ...Users Guide OneSix OPC Server Version 2 2 Copyright 2004 Point Six Inc Point Six Inc 2333 Alumni Parkway Suite 305 Lexington KY 40517 USA 859 266 3606 http www pointsix com...

Page 2: ...nge Port 7 Add Delete IP Connection 8 View IP Connection Status 8 Outputs 10 Search and Add Devices 11 ReConfigure Net 11 Device List 11 Errors 12 Tools 12 Traffic 12 Quit 12 Help 12 OneSix Server INI...

Page 3: ...Wireless Analog Output OutputAnalogn 41 Server Item Names 42 OneSix Server Data Logging 44 Features 44 File Management 45 File Format Data Log 46 File Format Error Log 47 TCP IP Receivers 48 Overview...

Page 4: ...OneSix Server Help Contents x iii How to use Corrections 53 Correction INI file 53 Predefined Corrections 53...

Page 5: ...nabled OneSix will store collected data in an ASCII file at a programmable interval See section OneSix Server Data Logging This Help and all other Help topics may be accessed from the main window by s...

Page 6: ...sors take a longer time than for a wired network as OneSix must wait for the device to transmit You can speed up this process by pressing the service button on the device so that it transmits while yo...

Page 7: ...new wireless device shows the device s serial number which the user cannot change the device s current Label which can be changed by the user and the Transmit Rate for the device The Label cannot be t...

Page 8: ...Polling The polltime has a slightly different meaning for wireless sensors OneSix does not actively poll wireless devices Rather it waits to receive a packet from the devices Therefore the polltime i...

Page 9: ...on At the heart of OPC is the client server model in which the OPC server provides and interface to the OPC object allowing client applications to control devices and manage device data in a generic f...

Page 10: ...you can monitor the health of your wireless and the devices attached OneSix reports through OPC errors that it encounters while polling devices These errors can be noted in an event error log See the...

Page 11: ...ction OneSix Server INI File Format Change Port The Change Port submenu allows you to switch to another wireless receiver port When the Change Port submenu is selected OneSix displays the Select Commu...

Page 12: ...this IP address and report back success or failure Add New OneSix displays the New IP Address screen The following is list of the fields to enter to add a new IP connection IP Address the IP address t...

Page 13: ...tus the current status of the connection The following is a list of the possible status messages Never Connected OneSix never attempted or received a connection to the receiver IP Connected OneSix is...

Page 14: ...the list You can also change the label for the current Output Node This field applies only when using the TCP IP Receiver The Node List box contains a list of the TCP IP Receivers to send the output p...

Page 15: ...so a Stop button If you click that button OneSix will stop listing devices in the window When you click on the Stop button it becomes a Receive button If you click on that OneSix will start receiving...

Page 16: ...of the device that had the last error Last Error Time The time when the last error occurred Last Error Message A description of the last error Click the Reset button clear the errors and reset the cou...

Page 17: ...ting the INI file The installation program for OneSix Server created a short cut to the ONESIXOPC INI file Double clicking will automatically start WordPad or Notepad The following rules must be kept...

Page 18: ...onfigureEnable 0 disables the Setup Menu option on the main menu The user then cannot make any changes to the configuration 1 default enable the Setup Menu option on the main menu SmallINI suppresses...

Page 19: ...mber that OneSix will wait for connections initiated by an IP receiver default is 1060 ForwardPort port number that OneSix will wait for connections to forward received packets default is 0 which mean...

Page 20: ...neering units for point 1 Cal2Engr Two point calibration engineering units for point 2 DeadBand Dead band filtering value in C Default 0 01 FilterElements running macro filter of the sampled data Synt...

Page 21: ...tion point 1 Cal2Raw Two point calibration point 2 Cal1Engr Two point calibration engineering units for point 1 Cal2Engr Two point calibration engineering units for point 2 Units Relative Humidity Tem...

Page 22: ...EnableCounterB Enable the gather of Counter B Description General purpose description field CNTTEMP Devicen Section name Address serial number of the sensor DeviceType Device type DeviceType CNTTEMP...

Page 23: ...filter type AVERAGE MEDIAN and AVERAGEMEDIAN Default is 0 MEDIAN no filtering Example temp FilterElements 6 AVERAGE temp Description General purpose description temp CorrID What CorrectionID to use w...

Page 24: ...alibration point 1 temp Cal2Raw Two point calibration point 2 temp Cal1Engr Two point calibration engineering units for point 1 temp Cal2Engr Two point calibration engineering units for point 2 temp D...

Page 25: ...neering units for point 2 DeadBand Dead band filtering value in C Default 0 01 FilterElements running macro filter of the sampled data Syntax no of elements type where no of elements is number of samp...

Page 26: ...ing units for point 1 default 0 Cal2Engr Two point calibration engineering units for point 2 default 10 DeadBand Dead band filtering value in of full scale Cal2Engr FilterElements running macro filter...

Page 27: ...ble logging of device LogDecimalPlaces Number of decimals to create when logging Description General purpose description Repeater Devicen Section name Address serial number of the sensor DeviceType De...

Page 28: ...the transmit interval of the sensor ms Defaults to 0 for outputs Label Name used for the device and Topic typically OUTPUTDISC1 Log Enable disable logging of device Description General purpose descrip...

Page 29: ...to 0 for outputs Label Name used for the device and Topic typically OUTPUTANALOG1 Log Enable disable logging of device LogDecimalPlaces Number of decimals to create when logging Description General pu...

Page 30: ...ames this backup file the same file name as the INI file but names the file extension as Bnn where n is from 01 to 20 One Six will create up to 20 backups If One Six needs to create more it will overw...

Page 31: ...er will automatically assign label names that will be used as part of the OPC tag name for each new device found The user can then change the name if they choose Default names are DIGITALn Digital I O...

Page 32: ...28 x OneSix Server OPC Tags OneSix Server Help Where n is a number starting at 1 OneSix Server guarantees that each label assigned will be unique No Duplicates Allowed...

Page 33: ...e is 0 polltime R W the transmit interval of the sensor in milliseconds serialno R registration number of the temperature sensor input R current temperature in engineering units input raw R current te...

Page 34: ...PIOA 0 or 1 inputB R level of PIOB 0 or 1 counterA R counter of the activity latch of PIOA counterB R counter of the activity latch of PIOB counterAB R counter A minus counter B outputA value R W cur...

Page 35: ...temperature sensor input value R current value of the pressure sensor in engineering units input raw R current value in inches of Hg input binary R current value in binary units from the pressure pro...

Page 36: ...a diff R W current count from the time the OneSix was started or when the variable was reset to 0 cnt inputa time R time in milliseconds of last update uses Win API GetTickCount cnt inputa scale R W v...

Page 37: ...t input time R time in milliseconds of last update uses Win API GetTickCount cnt input scale R W value multiplied against the counts cnt input units R W units description field cnt input desc R W gene...

Page 38: ...nst the counts cnt inputa units R W units description field cnt inputa desc R W general purpose description field cnt inputb R 8 bit time in seconds of when the sensor captured the last count cnt inpu...

Page 39: ...n the input value tag input units must be one of the following Celsius C Fahrenheit F or Kelvin K input deadband R W filtering deadband in C input conv R W calibration and unit conversion parameters s...

Page 40: ...cation identifier of the Point Repeater If the sensor did not pass through a repeater then the value is 0 serialno R registration number of the sensor input R current value of the sensor as percent of...

Page 41: ...the amount of time in seconds that the door can remain open before a Door Held Open alarm event will be generated 0 to 255 doorheldopen R indicates that the door is being held open 0 normal door opera...

Page 42: ...x OneSix Server OPC Tags OneSix Server Help R W indicates that the tag is both readable and writeable OPC Write operations will either change an I O point at the device or an operation will be perform...

Page 43: ...ss control reader updatecount R W value is incremented whenever the sensor is updated battery R current battery voltage in volts locatorid R location id of the repeater This is the id that is attached...

Page 44: ...to 0 or 1 Packet will be sent if TriggerOnB 0 option is set in the INI file outputb R W set to 0 or 1 Packet will be sent when written out status R 1 OneSix is in the process of sending output packet...

Page 45: ...W set the variable to the binary value 0 to 4095 output nits R W units label assigned to the analog output output conv R W unit conversion parameters string Cal1Raw Cal1Engr Cal2Raw Cal2Engr out stat...

Page 46: ...ddress of the nodeFor TCP IP Receiver the address is the IP address n is the node number starting at 1 Noden description R the description string for the node n is the node number starting at 1 NetErr...

Page 47: ...Client must set as follows 1 to 999 OneSix Server deletes the OneSixOPC ini file device information removes all device objects from memory performs a SearchAdd function creates a new device list and r...

Page 48: ...n have OneSix place a character such as or a string such as offline in the logging string instead of the last value Logging OfflineIndicator All these parameters can be changed in the INI file A clien...

Page 49: ...greater The log file can be viewed while OneSix is logging The other program must not write to the file lock the file set the file as read only or set the file s sharing parameters so that OneSix cann...

Page 50: ...e3 that has temperature compensation AIDO ai1 ai2 ai3 ai4 do1 do2 do3 do4 DIGCOUNTER dio inputa dio inputb cnt inputa cnt inputb CNTTEMP dio inputa dio inputb cnt input temp input FASTCNTTEMP cnt inpu...

Page 51: ...Error Msg Error message string Online Flag Is device considered Online DeviceLabel Name of the device Example error log 10 26 30 04 16 1998 48 One Wire Bus Error or No Devices Attached 1 TEMP8 10 26...

Page 52: ...o OneSix then the TCP IP Receiver will need to be set up with the IP address and port number of the computer that is running OneSix See the manual for the specific receiver you want to use for informa...

Page 53: ...number This node number gets associated with a sensor s data The nodaladdress OPC tag item is updated with the node number Information about the individual TCP IP connection is made available through...

Page 54: ...rt you have or select Auto and let OneSix Server search for you Cannot Open Communication Port Already In Use Close application that is using the communication port or provide OneSix Server with anoth...

Page 55: ...Out Sensor transmission was not received within the polltime or the transmission got corrupted Cannot Find Receiver Receiver has become disconnected from the computer No Devices Attached There are cu...

Page 56: ...IDs Tell OneSixOPC that you want a device to use a correction by specifying the Correction ID in the OneSixOPC INI file Within the device section add a line saying CorrID and the number of the correc...

Page 57: ...increasing order When writing your lookup values do not put a space after the comma There is a functional limit to the number of elements in the lists roughly 500 integer values or 300 real values for...

Page 58: ...following equations The first equation normalizes the passed value and the second produces the conversion to degrees Celsius Parameters NTC_DIVIDERES 10000 NTC_NORMALRES 10000 Fitting constants A 3 3...

Reviews: