Transcription

Autom ationDirect DirectNET Driver 2020 PTC Inc. All Rights Reserved.

Au tom ation Direct DirectNET Driver2Table of ContentsAutomationDirect DirectNET Driver1Table of Contents2AutomationDirect DirectNET Driver4Overview4Setup4Channel Properties — General5Channel Properties — Serial Communications6Channel Properties — Write Optimizations9Channel Properties — Advanced10Device Properties — General10Operating Mode11Device Properties — Scan Mode12Device Properties — Timing13Device Properties — Auto-Demotion14Device Properties — Tag Generation14Device Properties — Tag Import Settings16Device Properties — Redundancy17Automatic Tag Database Generation17Tag Hierarchy18Import File-to-Server Name Conversions18Importing DirectSoft Elements18Import Preparation: DirectSoft Steps18Import Preparation: OPC Server Steps21Data Types Description23Address Descriptions24DL-05 Addressing24DL-06 Addressing25DL-230 Addressing27DL-240 Addressing28DL-250(-1) Addressing29DL-260 Addressing31DL-330 Addressing32DL-340 Addressing33DL-350 Addressing34DL-430 Addressing35www. ptc.com

AutomationDirect DirectNET Driver3DL-440 Addressing37DL-450 Addressing38Error Descriptions40Missing address40Device address ' address ' contains a syntax error40Address ' address ' is out of range for the specified device or register41Device address ' address ' is not supported by model ' model name '41Data Type ' type ' is not valid for device address ' address '41Device address ' address ' is Read Only41COMn does not exist42Error opening COMn42COMn is in use by another application42Unable to set comm properties on COMn42Communications error on ' channel name ' [ error mask ]43Device ' device name ' not responding43Unable to write to ' address ' on device ' device name '44Bad address in block [ start address to end address ] on device ' device name '44Unable to generate a tag database for device device name 44Unable to generate a tag database for device device name 45Index46www. ptc.com

Au tom ation Direct DirectNET Driver4Aut om at ionDirect Direct NET DriverHelp version 1.038CONTENTSOverviewWhat is the AutomationDirect DirectNET Driver?Set upHow do I configure a device for use with this driver?Aut omat ic Tag Dat abase Generat ionHow can I easily configure tags for the AutomationDirect DirectNET Driver?Dat a Types Descript ionWhat data types does this driver support?Address Descript ionsHow do I address a data location on an AutomationDirect DirectNet device?Error Descript ionsWhat error messages does the AutomationDirect DirectNET Driver produce?OverviewThe AutomationDirect DirectNET Driver provides a reliable way to connect AutomationDirect DirectNet controllers to OPC Client applications; including HMI, SCADA, Historian, MES, ERP and countless custom applications. This driver is intended for use with Automation Direct Logic Programmable Logic Controllers, alsoknown as PLCDirect and Koyo.Set upSupported DevicesThe following PLCs are -330DL-340DL-350DL-430DL-440DL-450Communication ProtocolKoyo DirectNet Hex Mode Protocolwww. ptc.com

AutomationDirect DirectNET Driver5Supported Communication Parameters*Baud Rate - 1200, 2400, 9600, 19200 or 38400Parity - None, Even or OddData Bits - 5, 6, 7 or 8Stop Bits - 1 or 2* Some of these configurations may not be supported by all devices.Ethernet EncapsulationThis driver supports Ethernet Encapsulation, which allows the driver to communicate with serial devicesattached to an Ethernet network using a terminal server. Ethernet Encapsulation mode may be invokedthrough the COM ID property group. in Channel Properties. For more information, refer to the OPC server'shelp documentation.Channel and Device LimitsThe maximum number of channels supported by this driver is 100. The maximum number of devices supported by this driver is 90 per channel. Valid Device IDs range from 1 to 90.Flow ControlWhen using an RS232 / RS485 converter, the type of flow control that is required depends on the converter'sneeds. Some converters do not require any flow control and others require RTS flow. To determine the converter's flow requirements, refer to its documentation. An RS485 converter that provides automatic flow control is recommended.N ote: When using the manufacturer's supplied communications cable, it is sometimes necessary tochoose a flow control setting of RTS or RTS Always under the Channel Properties.Automatic Tag Database GenerationTag Import Set t ingsChannel Propert ies — GeneralThis server supports the use of multiple simultaneous communications drivers. Each protocol or driver usedin a server project is called a channel. A server project may consist of many channels with the same communications driver or with unique communications drivers. A channel acts as the basic building block of anOPC link. This group is used to specify general channel properties, such as the identification attributes andoperating mode.IdentificationN am e: Specify the user-defined identity of this channel. In each server project, each channel name must beunique. Although names can be up to 256 characters, some client applications have a limited display windowwhen browsing the OPC server's tag space. The channel name is part of the OPC browser information. Theproperty is required for creating a channel.www. ptc.com

Au tom ation Direct DirectNET Driver6For information on reserved characters, refer to "How To. Properly Name a Channel, Device, Tag, and TagGroup" in the server help.Description: Specify user-defined information about this channel.Many of these properties, including Description, have an associated system tag.Driver: Specify the protocol / driver for this channel. This property specifies the device driver that was selected during channel creation. It is a disabled setting in the channel properties. The property is required for creating a channel.N ote: With the server's online full-time operation, these properties can be changed at any time. Thisincludes changing the channel name to prevent clients from registering data with the server. If a client hasalready acquired an item from the server before the channel name is changed, the items are unaffected. If,after the channel name has been changed, the client application releases the item and attempts to reacquire using the old channel name, the item is not accepted. With this in mind, changes to the propertiesshould not be made once a large client application has been developed. Utilize proper user role and privilege management to prevent operators from changing properties or accessing server features.DiagnosticsDiagnostics Capture: When enabled, this option makes the channel's diagnostic information available toOPC applications allows the usage of statistics tags that provide feedback to client applications regardingthe operation of the channel. Because the server's diagnostic features require a minimal amount of overhead processing, it is recommended that they be utilized when needed and disabled when not. The default isdisabled.N ote: This property is not available if the driver does not support diagnostics.For more information, refer to "Communication Diagnostics" and "Statistics Tags" in the server help.Channel Propert ies — Serial Com m unicat ionsSerial communication properties are available to serial drivers and vary depending on the driver, connectiontype, and options selected. Below is a superset of the possible properties.Click to jump to one of the sections: Connection Type, Serial Port Settings or Ethernet Settings, andOperational Behavior.N ote: With the server's online full-time operation, these properties can be changed at any time. Utilizeproper user role and privilege management to prevent operators from changing properties or accessingserver features.www. ptc.com

AutomationDirect DirectNET Driver7Connection TypePhysical Medium : Choose the type of hardware device for data communications. Options include COMPort, None, Modem, and Ethernet Encapsulation. The default is COM Port.lllllN one: Select None to indicate there is no physical connection, which displays the Operation with noCom m unications section.COM Port: Select Com Port to display and configure the Serial Port Settings section.Modem : Select Modem if phone lines are used for communications, which are configured in theModem Settings section.Ethernet Encap.: Select if Ethernet Encapsulation is used for communications, which displays theEthernet Settings section.Shared: Verify the connection is correctly identified as sharing the current configuration with anotherchannel. This is a read-only property.Serial Port SettingsCOM ID: Specify the Communications ID to be used when communicating with devices assigned to the channel. The valid range is 1 to 9991 to 16. The default is 1.Baud Rate: Specify the baud rate to be used to configure the selected communications port.Data Bits: Specify the number of data bits per data word. Options include 5, 6, 7, or 8.Parity: Specify the type of parity for the data. Options include Odd, Even, or None.Stop Bits: Specify the number of stop bits per data word. Options include 1 or 2.Flow Control: Select how the RTS and DTR control lines are utilized. Flow control is required to communicatewith some serial devices. Options are:lN one: This option does not toggle or assert control lines.lDTR: This option asserts the DTR line when the communications port is opened and remains on.llllRTS: This option specifies that the RTS line is high if bytes are available for transmission. After all buffered bytes have been sent, the RTS line is low. This is normally used with RS232/RS485 converterhardware.RTS, DTR: This option is a combination of DTR and RTS.RTS Always: This option asserts the RTS line when the communication port is opened and remainson.RTS Manual: This option asserts the RTS line based on the timing properties entered for RTS LineControl. It is only available when the driver supports manual RTS line control (or when the propertiesare shared and at least one of the channels belongs to a driver that provides this support).RTS Manual adds an RTS Line Control property with options as follows:lRaise: This property specifies the amount of time that the RTS line is raised prior to datatransmission. The valid range is 0 to 9999 milliseconds. The default is 10 milliseconds.llDrop: This property specifies the amount of time that the RTS line remains high after datatransmission. The valid range is 0 to 9999 milliseconds. The default is 10 milliseconds.Poll Delay: This property specifies the amount of time that polling for communications isdelayed. The valid range is 0 to 9999. The default is 10 milliseconds.www. ptc.com

Au tom ation Direct DirectNET Driver8Tip: When using two-wire RS-485, "echoes" may occur on the communication lines. Since this communication does not support echo suppression, it is recommended that echoes be disabled or a RS-485 converter be used.Operational BehaviorlllReport Com m unication Errors: Enable or disable reporting of low-level communications errors.When enabled, low-level errors are posted to the Event Log as they occur. When disabled, thesesame errors are not posted even though normal request failures are. The default is Enable.Close Idle Connection: Choose to close the connection when there are no longer any tags being referenced by a client on the channel. The default is Enable.Idle Tim e to Close: Specify the amount of time that the server waits once all tags have beenremoved before closing the COM port. The default is 15 seconds.Ethernet SettingsN ote: Not all serial drivers support Ethernet Encapsulation. If this group does not appear, the functionalityis not supported.Ethernet Encapsulation provides communication with serial devices connected to terminal servers on theEthernet network. A terminal server is essentially a virtual serial port that converts TCP/IP messages on theEthernet network to serial data. Once the message has been converted, users can connect standard devicesthat support serial communications to the terminal server. The terminal server's serial port must be properly configured to match the requirements of the serial device to which it is attached. For more information,refer to "Using Ethernet Encapsulation" in the server help.lN etwork Adapter: Indicate a network adapter to bind for Ethernet devices in this channel. Choose anetwork adapter to bind to or allow the OS to select the default.Specific drivers may display additional Ethernet Encapsulation properties. For more information, referto Channel Properties — Ethernet Encapsulation.M odem SettingslllllllModem : Specify the installed modem to be used for communications.Connect Tim eout: Specify the amount of time to wait for connections to be established before failinga read or write. The default is 60 seconds.Modem Properties: Configure the modem hardware. When clicked, it opens vendor-specific modemproperties.Auto-Dial: Enables the automatic dialing of entries in the Phonebook. The default is Disable. For moreinformation, refer to "Modem Auto-Dial" in the server help.Report Com m unication Errors: Enable or disable reporting of low-level communications errors.When enabled, low-level errors are posted to the Event Log as they occur. When disabled, thesesame errors are not posted even though normal request failures are. The default is Enable.Close Idle Connection: Choose to close the modem connection when there are no longer any tagsbeing referenced by a client on the channel. The default is Enable.Idle Tim e to Close: Specify the amount of time that the server waits once all tags have beenremoved before closing the modem connection. The default is 15 seconds.Operation w ith no CommunicationslRead Processing: Select the action to be taken when an explicit device read is requested. Optionsinclude Ignore and Fail. Ignore does nothing; Fail provides the client with an update that indicates failure. The default setting is Ignore.www. ptc.com

AutomationDirect DirectNET Driver9Channel Propert ies — Writ e Opt im izat ionsAs with any server, writing data to the device may be the application's most important aspect. The serverintends to ensure that the data written from the client application gets to the device on time. Given this goal,the server provides optimization properties that can be used to meet specific needs or improve applicationresponsiveness.Write OptimizationsOptim ization Method: Controls how write data is passed to the underlying communications driver. Theoptions are:lllWrite All Values for All Tags: This option forces the server to attempt to write every value to thecontroller. In this mode, the server continues to gather write requests and add them to the server'sinternal write queue. The server processes the write queue and attempts to empty it by writing datato the device as quickly as possible. This mode ensures that everything written from the client applications is sent to the target device. This mode should be selected if the write operation order or thewrite item's content must uniquely be seen at the target device.Write Only Latest Value for N on-Boolean Tags: Many consecutive writes to the same value canaccumulate in the write queue due to the time required to actually send the data to the device. If theserver updates a write value that has already been placed in the write queue, far fewer writes areneeded to reach the same final output value. In this way, no extra writes accumulate in the server'squeue. When the user stops moving the slide switch, the value in the device is at the correct value atvirtually the same time. As the mode states, any value that is not a Boolean value is updated in theserver's internal write queue and sent to the device at the next possible opportunity. This can greatlyimprove the application performance.N ote: This option does not attempt to optimize writes to Boolean values. It allows users to optimizethe operation of HMI data without causing problems with Boolean operations, such as a momentarypush button.Write Only Latest Value for All Tags: This option takes the theory behind the second optimizationmode and applies it to all tags. It is especially useful if the application only needs to send the latestvalue to the device. This mode optimizes all writes by updating the tags currently in the write queuebefore they are sent. This is the default mode.Duty Cycle: is used to control the ratio of write to read operations. The ratio is always based on one read forevery one to ten writes. The duty cycle is set to ten by default, meaning that ten writes occur for each readoperation. Although the application is performing a large number of continuous writes, it must be ensuredthat read data is still given time to process. A setting of one results in one read operation for every writeoperation. If there are no write operations to perform, reads are processed continuously. This allows optimization for applications with continuous writes versus a more balanced back and forth data flow.N ote: It is recommended that the application be characterized for compatibility with the write optimizationenhancements before being used in a production environment.www. ptc.com

Au tom ation Direct DirectNET Driver10Channel Propert ies — AdvancedThis group is used to specify advanced channel properties. Not all drivers support all properties; so theAdvanced group does not appear for those devices.N on-N orm alized Float Handling: A non-normalized value is defined as Infinity, Not-a-Number (NaN), or asa Denormalized Number. The default is Replace with Zero. Drivers that have native float handling maydefault to Unmodified. Non-normalized float handling allows users to specify how a driver handles non-normalized IEEE-754 floating point data. Descriptions of the options are as follows:llReplace with Zero: This option allows a driver to replace non-normalized IEEE-754 floating point values with zero before being transferred to clients.Unm odified: This option allows a driver to transfer IEEE-754 denormalized, normalized, non-number, and infinity values to clients without any conversion or changes.N ote: This property is not available if the driver does not support floating point values or if it only supportsthe option that is displayed. According to the channel's float normalization setting, only real-time driver tags(such as values and arrays) are subject to float normalization. For example, EFM data is not affected by thissetting.For more information on the floating point values, refer to "How To . Work with Non-Normalized FloatingPoint Values" in the server help.Inter-Device Delay: Specify the amount of time the communications channel waits to send new requests tothe next device after data is received from the current device on the same channel. Zero (0) disables thedelay.N ote: This property is not available for all drivers, models, and dependent settings.Device Propert ies — GeneralA device represents a single target on a communications channel. If the driver supports multiple controllers,users must enter a device ID for each controller.IdentificationN am e: Specify the name of the device. It is a logical user-defined name that can be up to 256 characterslong, and may be used on multiple channels.www. ptc.com

AutomationDirect DirectNET Driver11N ote: Although descriptive names are generally a good idea, some OPC client applications may have alimited display window when browsing the OPC server's tag space. The device name and channel namebecome part of the browse tree information as well. Within an OPC client, the combination of channel nameand device name would appear as "ChannelName.DeviceName".For more information, refer to "How To. Properly Name a Channel, Device, Tag, and Tag Group" in serverhelp.Description: Specify the user-defined information about this device.Many of these properties, including Description, have an associated system tag.Channel Assignm ent: Specify