advertisement
Allen-Bradley Ethernet Driver
© 2016 PTC Inc. All Rights Reserved.
2
Table of Contents
Allen-Bradley Ethernet Driver
Channel Properties - Ethernet Communications
Channel Properties - Write Optimizations
Channel Properties - Communication Serialization
Device Properties - Identification
Device Properties - Operating Mode
Device Properties - Auto-Demotion
Device Properties - Communications Parameters
Device Properties - Protocol Parameters
Device Properties - Slot Configuration
Device Properties - Redundancy
General Addressing
SLC 5/05 Open Addressing
PLC-5 Family and SoftPLC Addressing
www. kepware.com
Allen-Bradley Ethernet Driver
Allen-Bradley Ethernet Driver
Unable to read data block from device. Frame received contains errors. | Block start address =
Unable to read data block from the device. Tag deactivated. | Block start address = '<address>',
Status code = <code>, Extended status code = <code>.
Unable to write to address on device. Frame received contains errors. | Address = '<address>'.
Unable to read data block from device. | Block start address = '<address>', Status code = <code>,
Extended status code = <code>.
Unable to read data block from device. | Block start address = '<address>', Status code = <code>.
37 Unable to write to address on device. | Address = '<address>', Status code = <code>.
3
www. kepware.com
4
Allen-Bradley Ethernet Driver
Help version 1.046
CONTENTS
Overview
What is the Allen-Bradley Ethernet Driver?
Device Setup
How do I configure a device for use with this driver?
Optimizing Allen-Bradley Ethernet Communications
How do I get the best performance from the Allen-Bradley Ethernet Driver?
Data Types Description
What data types are supported by this driver?
Address Descriptions
How do I address a data location on an Allen-Bradley Ethernet device?
Event Log Messages
What messages are produced by the driver?
Allen-Bradley Ethernet Driver www. kepware.com
Allen-Bradley Ethernet Driver
Overview
The Allen-Bradley Ethernet Driver provides a reliable way to connect Allen-Bradley Ethernet devices to client applications; including HMI, SCADA, Historian, MES, ERP, and countless custom applications. This driver supports the Allen Bradley SLC 5/05 series, PLC-5 series, and SoftPLC PLCs. Address ranges are open to support future models for this series of PLCs.
5
www. kepware.com
6
Allen-Bradley Ethernet Driver
Setup
Communication Protocol
Allen-Bradley Ethernet
Supported Devices
SLC 5/05 processor*
PLC-5 series (excluding the PLC-5/250 series)
SoftPLC
*Address ranges are open in the driver to allow for new devices. The driver may support a device even if it is not listed above.
Channel Setup
The maximum number of channels supported is 256.
Channel setup includes configuration of the following property groups:
General
Ethernet Communications
Write Optimizations
Advanced
Communications Serialization
Device Setup
Device setup includes configuration of the following property groups:
General - Identification
General - Operating Mode
Scan Mode
Timing
Auto Demotion
Communication Parameters
Protocol Parameters
Slot Configuration
Redundancy
Channel Properties - General
This server supports the use of simultaneous multiple communications drivers. Each protocol or driver used in 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 an
OPC link. This group is used to specify general channel properties, such as the identification attributes and operating mode.
Identification
Name: User-defined identity of this channel. In each server project, each channel name must be unique.
Although names can be up to 256 characters, some client applications have a limited display window when browsing the OPC server's tag space. The channel name is part of the OPC browser information.
www. kepware.com
Allen-Bradley Ethernet Driver
For information on reserved characters, refer to "How To... Properly Name a Channel, Device, Tag, and Tag
Group" in the server help.
Description: User-defined information about this channel.
Many of these properties, including Description, have an associated system tag.
Driver: Selected 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.
Note: With the server's online full-time operation, these properties can be changed at any time. This includes changing the channel name to prevent clients from registering data with the server. If a client has already 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 re-acquire using the old channel name, the item is not accepted. With this in mind, changes to the properties should not be made once a large client application has been developed. Utilize the User Manager to prevent operators from changing properties and restrict access rights to server features.
Diagnostics
Diagnostics Capture: When enabled, this option makes the channel's diagnostic information available to OPC applications. 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 is disabled.
For more information, refer to "Communication Diagnostics" in the server help.
Not all drivers support diagnostics. To determine whether diagnostics are available for a particular driver, open the driver information and locate the "Supports device level diagnostics" statement.
Channel Properties - Ethernet Communications
Ethernet Communication can be used to communicate with devices.
7
Ethernet Settings
Network Adapter: Specify the network adapter to bind. When Default is selected, the operating system selects the default adapter.
Channel Properties - Write Optimizations
As with any OPC server, writing data to the device may be the application's most important aspect. The server intends 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 application responsiveness.
Write Optimizations
Optimization Method: controls how write data is passed to the underlying communications driver. The options are: www. kepware.com
8
Allen-Bradley Ethernet Driver l l l
Write All Values for All Tags: This option forces the server to attempt to write every value to the controller. In this mode, the server continues to gather write requests and add them to the server's internal write queue. The server processes the write queue and attempts to empty it by writing data to 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 the write item's content must uniquely be seen at the target device.
Write Only Latest Value for Non-Boolean Tags: Many consecutive writes to the same value can accumulate in the write queue due to the time required to actually send the data to the device. If the server updates a write value that has already been placed in the write queue, far fewer writes are needed to reach the same final output value. In this way, no extra writes accumulate in the server's queue. When the user stops moving the slide switch, the value in the device is at the correct value at virtually the same time. As the mode states, any value that is not a Boolean value is updated in the server's internal write queue and sent to the device at the next possible opportunity. This can greatly improve the application performance.
Note: This option does not attempt to optimize writes to Boolean values. It allows users to optimize the operation of HMI data without causing problems with Boolean operations, such as a momentary push button.
Write Only Latest Value for All Tags: This option takes the theory behind the second optimization mode and applies it to all tags. It is especially useful if the application only needs to send the latest value to the device. This mode optimizes all writes by updating the tags currently in the write queue before 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 for every one to ten writes. The duty cycle is set to ten by default, meaning that ten writes occur for each read operation. Although the application is performing a large number of continuous writes, it must be ensured that read data is still given time to process. A setting of one results in one read operation for every write operation. 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.
Note: It is recommended that the application be characterized for compatibility with the write optimization enhancements before being used in a production environment.
Channel Properties - Advanced
This group is used to specify advanced channel properties. Not all drivers support all properties; so the
Advanced group does not appear for those devices.
Non-Normalized Float Handling: Non-normalized float handling allows users to specify how a driver handles non-normalized IEEE-754 floating point data. A non-normalized value is defined as Infinity, Not-a-Number
(NaN), or as a Denormalized Number. The default is Replace with Zero. Drivers that have native float handling may default to Unmodified. Descriptions of the options are as follows: l l
Replace with Zero: This option allows a driver to replace non-normalized IEEE-754 floating point values with zero before being transferred to clients.
Unmodified: This option allows a driver to transfer IEEE-754 denormalized, normalized, non-number, and infinity values to clients without any conversion or changes.
Note: This property is disabled if the driver does not support floating point values or if it only supports the 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 this setting.lin
For more information on the floating point values, refer to "How To ... Work with Non-Normalized Floating
Point Values" in the server help.
www. kepware.com
Allen-Bradley Ethernet Driver
Inter-Device Delay: Specify the amount of time the communications channel waits to send new requests to the next device after data is received from the current device on the same channel. Zero (0) disables the delay.
Note: This property is not available for all drivers, models, and dependent settings.
Channel Properties - Communication Serialization
The server's multi-threading architecture allows channels to communicate with devices in parallel. Although this is efficient, communication can be serialized in cases with physical network restrictions (such as Ethernet radios). Communication serialization limits communication to one channel at a time within a virtual network.
The term "virtual network" describes a collection of channels and associated devices that use the same pipeline for communications. For example, the pipeline of an Ethernet radio is the master radio. All channels using the same master radio associate with the same virtual network. Channels are allowed to communicate each in turn, in a “round-robin” manner. By default, a channel can process one transaction before handing communications off to another channel. A transaction can include one or more tags. If the controlling channel contains a device that is not responding to a request, the channel cannot release control until the transaction times out. This results in data update delays for the other channels in the virtual network.
9
Channel-Level Settings
Virtual Network This property specifies the channel's mode of communication serialization. Options include
None and Network 1 - Network 50. The default is None. Descriptions of the options are as follows: l l
None: This option disables communication serialization for the channel.
Network 1 - Network 50: This option specifies the virtual network to which the channel is assigned.
Transactions per Cycle This property specifies the number of single blocked/non-blocked read/write transactions that can occur on the channel. When a channel is given the opportunity to communicate, this number of transactions attempted. The valid range is 1 to 99. The default is 1.
Global Settings
l
Network Mode: This property is used to control how channel communication is delegated. In Load Balanced mode, each channel is given the opportunity to communicate in turn, one at a time. In Priority mode, channels are given the opportunity to communicate according to the following rules (highest to lowest priority): l
Channels with pending writes have the highest priority.
l
Channels with pending explicit reads (through internal plug-ins or external client interfaces) are prioritized based on the read’s priority.
l
Scanned reads and other periodic events (driver specific).
The default is Load Balanced and affects all virtual networks and channels.
Devices that rely on unsolicited responses should not be placed in a virtual network. In situations where communications must be serialized, it is recommended that Auto-Demotion be enabled.
Due to differences in the way that drivers read and write data (such as in single, blocked, or non-blocked transactions); the application's Transactions per cycle property may need to be adjusted. When doing so, consider the following factors: l l
How many tags must be read from each channel?
How often is data written to each channel?
www. kepware.com
10
Allen-Bradley Ethernet Driver l l l
Is the channel using a serial or Ethernet driver?
Does the driver read tags in separate requests, or are multiple tags read in a block?
Have the device's Timing properties (such as Request timeout and Fail after x successive timeouts) been optimized for the virtual network's communication medium?
Device Properties - Identification
Name: User-defined identity of this device.
Description: User-defined information about this device.
Channel Assignment: User-defined name of the channel to which this device currently belongs.
Driver: Selected protocol driver for this device.
Model: The specific version of the device.
ID: The device ID is the network address of the PLC.
Device Properties - Operating Mode
Data Collection: This property controls the device's active state. Although device communications are enabled by default, this property can be used to disable a physical device. Communications are not attempted when a device is disabled. From a client standpoint, the data is marked as invalid and write operations are not accepted. This property can be changed at any time through this property or the device system tags.
Simulated: This option places the device into Simulation Mode. In this mode, the driver does not attempt to communicate with the physical device, but the server continues to return valid OPC data. Simulated stops physical communications with the device, but allows OPC data to be returned to the OPC client as valid data. While in
Simulation Mode, the server treats all device data as reflective: whatever is written to the simulated device is read back and each OPC item is treated individually. The item's memory map is based on the group Update www. kepware.com
Allen-Bradley Ethernet Driver
Rate. The data is not saved if the server removes the item (such as when the server is reinitialized). The default is No.
Notes:
1. This System tag (_Simulated) is read only and cannot be written to for runtime protection. The System tag allows this property to be monitored from the client.
2. In Simulation mode, the item's memory map is based on client update rate(s) (Group Update Rate for
OPC clients or Scan Rate for native and DDE interfaces). This means that two clients that reference the same item with different update rates return different data.
Simulation Mode is for test and simulation purposes only. It should never be used in a production environment.
Device Properties - Scan Mode
The Scan Mode specifies the subscribed-client requested scan rate for tags that require device communications. Synchronous and asynchronous device reads and writes are processed as soon as possible; unaffected by the Scan Mode properties.
11
Scan Mode: specifies how tags in the device are scanned for updates sent to subscribed clients. Descriptions of the options are: l l l l l
Respect Client-Specified Scan Rate: This mode uses the scan rate requested by the client.
Request Data No Faster than Scan Rate: This mode specifies the maximum scan rate to be used. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
Note: When the server has an active client and items for the device and the scan rate value is increased, the changes take effect immediately. When the scan rate value is decreased, the changes do not take effect until all client applications have been disconnected.
Request All Data at Scan Rate: This mode forces tags to be scanned at the specified rate for subscribed clients. The valid range is 10 to 99999990 milliseconds. The default is 1000 milliseconds.
Do Not Scan, Demand Poll Only: This mode does not periodically poll tags that belong to the device nor perform a read to get an item's initial value once it becomes active. It is the client's responsibility to poll for updates, either by writing to the _DemandPoll tag or by issuing explicit device reads for individual items.
For more information, refer to "Device Demand Poll" in server help.
Respect Tag-Specified Scan Rate: This mode forces static tags to be scanned at the rate specified in their static configuration tag properties. Dynamic tags are scanned at the client-specified scan rate.
Initial Updates from Cache: When enabled, this option allows the server to provide the first updates for newly activated tag references from stored (cached) data. Cache updates can only be provided when the new item reference shares the same address, scan rate, data type, client access, and scaling properties. A device read is used for the initial update for the first client reference only. The default is disabled; any time a client activates a tag reference the server attempts to read the initial value from the device.
Device Properties - Timing
The device Communications Timeouts properties allow the driver's response to error conditions to be tailored to fit the application's needs. In many cases, the environment requires changes to these properties for optimum performance. Factors such as electrically generated noise, modem delays, and poor physical connections can influence how many errors or timeouts a communications driver encounters. Communications Timeouts properties are specific to each configured device.
www. kepware.com
12
Allen-Bradley Ethernet Driver
Communications Timeouts
Connect Timeout: This property (which is used primarily by Ethernet based drivers) controls the amount of time required to establish a socket connection to a remote device. The device's connection time often takes longer than normal communications requests to that same device. The valid range is 1 to 30 seconds. The default is typically 3 seconds, but can vary depending on the driver's specific nature. If this setting is not supported by the driver, it is disabled.
Note: Due to the nature of UDP connections, the connection timeout setting is not applicable when communicating via UDP.
Request Timeout: This property specifies an interval used by all drivers to determine how long the driver waits for a response from the target device to complete. The valid range is 50 to 9,999,999 milliseconds (167.6667
minutes). The default is usually 1000 milliseconds, but can vary depending on the driver. The default timeout for most serial drivers is based on a baud rate of 9600 baud or better. When using a driver at lower baud rates, increase the timeout to compensate for the increased time required to acquire data.
Retry Attempts: This property specifies how many times the driver retries a communications request before considering the request to have failed and the device to be in error. The valid range is 1 to 10. The default is typically 3, but can vary depending on the driver's specific nature. The number of retries configured for an application depends largely on the communications environment.
Timing
Inter-Request Delay: This property specifies how long the driver waits before sending the next request to the target device. It overrides the normal polling frequency of tags associated with the device, as well as one-time reads and writes. This delay can be useful when dealing with devices with slow turnaround times and in cases where network load is a concern. Configuring a delay for a device affects communications with all other devices on the channel. It is recommended that users separate any device that requires an inter-request delay to a separate channel if possible. Other communications properties (such as communication serialization) can extend this delay. The valid range is 0 to 300,000 milliseconds; however, some drivers may limit the maximum value due to a function of their particular design. The default is 0, which indicates no delay between requests with the target device.
Note: Not all drivers support Inter-Request Delay. This setting does not appear if it is not supported by the driver.
Device Properties - Auto-Demotion
The Auto-Demotion properties can temporarily place a device off-scan in the event that a device is not responding. By placing a non-responsive device offline for a specific time period, the driver can continue to optimize its communications with other devices on the same channel. After the time period has been reached, the driver reattempts to communicate with the non-responsive device. If the device is responsive, the device is placed onscan; otherwise, it restarts its off-scan time period.
www. kepware.com
Allen-Bradley Ethernet Driver
Demote on Failure: When enabled, the device is automatically taken off-scan until it is responding again.
Tip: Determine when a device is off-scan by monitoring its demoted state using the _AutoDemoted system tag.
Timeouts to Demote: Specify how many successive cycles of request timeouts and retries occur before the device is placed off-scan. The valid range is 1 to 30 successive failures. The default is 3.
Demotion Period: Indicate how long the device should be placed off-scan when the timeouts value is reached.
During this period, no read requests are sent to the device and all data associated with the read requests are set to bad quality. When this period expires, the driver places the device on-scan and allows for another attempt at communications. The valid range is 100 to 3600000 milliseconds. The default is 10000 milliseconds.
Discard Requests when Demoted: Select whether or not write requests should be attempted during the offscan period. Disable to always send write requests regardless of the demotion period. Enable to discard writes; the server automatically fails any write request received from a client and does not post a message to the Event
Log.
Device Properties - Communications Parameters
13
Port: Secify the port number that the remote device is configured to use. The default setting is 2222.
Request Size: Specifies the maximum number of bytes that may be requested from a device at one time. To refine the driver's performance, configure the request size to one of the following settings: 32, 64, 128, 256, 512,
1024, or 2000 bytes. The default is 512 bytes.
Tip: For Boolean arrays, the block size is the bit equivalent (or, block size multiplied by 8). For example, a block size of 512 bytes is equal to 512 * 8 = 4096 bits.
Device Properties - Protocol Parameters
Destination Node Address (DST): Specify the destination node address. For DF1 gateway applications, select the node address of the destination device. For non-DF1 gateway applications, leave the node address at the default setting of 0.
Note: The destination device is the DH+ or DH-485 device.
www. kepware.com
14
Allen-Bradley Ethernet Driver
Device Properties - Slot Configuration
SLC500 models (with modular I/O racks) must be configured for use with this driver if the I/O is to be accessed by the driver. Up to 30 slots can be configured per device.
To use the slot configuration:
1. Select the slot to be configured by clicking on the row in the module list box.
2. To select a module, click on it from the available modules drop-down list.
3. Configure the Input Words and Output Words if necessary.
4. To remove a slot/module, select No Module from the available modules drop-down list.
5. When complete, click OK.
Tip: Use the 0000-Generic Module to configure I/O that is not contained in the list of Available Modules.
Note: It is common to have open slots in the rack that do not contain a physical module. To correctly access data for the various slots that do contain a module, the preceding module(s) must have the correct number of words mapped. For example, if only interested in the I/O in slot 3, but slots 1 and 2 contain I/O modules, the correct modules must be selected for slots 1, 2, and 3 from this slot configuration group.
0000-Generic Module
Use the Generic Module to map Input and Output words for modules that are not represented in the list of available modules. To correctly use the Generic Module, users must know the number of Input and Output words required for each module.
Consult Allen-Bradley I/O user manual documentation to confirm Input and Output requirements and be aware that requirements may be different based on Class 1 or Class 3 operation.
For information on the number of input and output words available for each I/O module, refer to
.
Device Properties - Redundancy
Redundancy is available with the Media-Level Redundancy Plug-in.
Consult the website, a sales representative, or the user manual for more information.
www. kepware.com
Allen-Bradley Ethernet Driver
Modular I/O Selection Guide
The following table lists the number of input and output words available for each I/O module in the Slot Configuration list.
Tip: Use the Generic Module to map input and output words for modules that are not represented in the list of available modules. The range of accepted values is shown in the table below.
Consult the Allen-Bradley user manual for the specific I/O module to configure to confirm input and output requirements. Requirements may be different based on Class 1 or Class 3 operation.
Module Type
0000-Generic Module
1203-SM1 SCANport Comm Module - Basic
1203-SM1 SCANport Comm Module - Enhanced
1394-SJT GMC Turbo System
1746-BAS Basic Module 500 5/01 Configuration
1746-BAS Basic Module 5/02 Configuration
1746-HS Single Axis Motion Controller
1746-HSCE High-Speed Counter/Encoder
1746-HSRV Motion Control Module
1746-HSTP1 Stepper Controller Module
1746-I*16 Any 16 pt Discrete Input Module
1746-I*32 Any 32 pt Discrete Input Module
1746-I*8 Any 8 pt Discrete Input Module
1746-IA16 16 Input 100/120 VAC
1746-IA4 4 Input 100/120 VAC
1746-IA8 8 Input 100/120 VAC
1746-IB16 16 Input (Sink) 24 VDC
1746-IB32 32 Input (Sink) 24 VDC
1746-IB8 8 Input (Sink) 24 VDC
1746-IC16 16 Input (Sink) 48 VDC
1746-IG16 16 Input [TTL] (Source) 5 VDC
1746-IH16 16 Input [Trans] (Sink) 125 VDC
1746-IM16 16 Input 200/240 VAC
1746-IM4 4 Input 200/240 VAC
1746-IM8 8 Input 200/240 VAC
1746-IN16 16 Input 24 VAC/VDC
1746-INI4I Analog 4 Ch. Isol. Current Input
1746-INI4VI Analog 4 Ch. Isol. Volt./Current Input
1746-INO4I Analog 4 Ch. Isol. Current Input
1746-INO4VI Analog 4 Ch. Isol. Volt./Current Input
1746-INT4 4 Ch. Isolated Thermocouple Input
1746-IO12 6 In 100/120 VAC 6 Out [Rly] VAC/VDC
1746-IO12DC 6 Input 12 VDC, 6 Output [Rly
1746-IO4 2 In 100/120 VAC 2 Out [Rly] VAC/VDC3
1746-IO8 4 In 100/120 VAC 4 Out [Rly] VAC/VDC4
1746-ITB16 16 Input [Fast] (Sink) 24 VDC
1746-ITV16 16 Input [Fast] (Source) 24 VDC
1746-IV16 16 Input (Source) 24 VDC
1746-IV32 32 Input (Source) 24 VDC
1746-IV8 8 Input (Source) 24 VDC
1746-NI4 4 Ch Analog Input
1746-NI8 8 Ch Analog Input, Class 1
Input Words
8
8
8
8
1
8
1
1
1
1
1
1
2
1
1
1
1
1
2
1
8
12
8
1
0-255
8
32
32
8
8
4
1
2
1
1
1
1
1
1
1
4
8
Output Words
8
8
8
8
0
8
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0
1
8
0-255
8
32
32
8
8
4
0
0
0
0
1
1
1
1
0
0
8
15
www. kepware.com
16
Module Type
1746-NI8 8 Ch Analog Input, Class 3
1746-NIO4I Analog Comb 2 in & 2 Current Out
1746-NIO4V Analog Comb 2 in & 2 Voltage Out
1746-NO4I 4 Ch Analog Current Output
1746-NO4V 4 Ch Analog Voltage Output
1746-NR4 4 Ch Rtd/Resistance Input Module
1746-NT4 4 Ch Thermocouple Input Module
1746-NT8 Analog 8 Ch Thermocouple Input
1746-O*16 Any 16 pt Discrete Output Module
1746-O*32 Any 32 pt Discrete Output Module
1746-O*8 Any 8 pt Discrete Output Module
1746-OA16 16 Output (Triac) 100/240 VAC
1746-OA8 8 Output (Triac) 100/240 VAC
1746-OAP12 12 Output [Triac] 120/240 VDC
1746-OB16 16 Output [Trans] (Source) 10/50 VDC
1746-OB16E 16 Output [Trans] (Source) Protected
1746-OB32 32 Output [Trans] (Source) 10/50 VDC
1746-OB32E 32 Output [Trans] (Source) 10/50 VDC
1746-OB6EI 6 Output [Trans] (Source) 24 VDC
1746-OB8 8 Output [Trans] (Source) 10/50 VDC
1746-OBP16 16 Output [Trans 1 amp] (SRC) 24 VDC
1746-OBP8 8 Output [Trans 2 amp] (Source) 24 VDC
1746-OG16 16 Output [TLL] (SINK) 5 VDC
1746-OV16 16 Output [Trans] (Sink) 10/50 VDC
1746-OV32 32 Output [Trans] (Sink) 10/50 VDC
1746-OV8 8 Output [Trans] (Sink) 10/50 VDC
1746-OVP16 16 Output [Trans 1 amp] (Sink) 24VDC3
1746-OW16 16 Output [Relay] VAC/VDC
1746-OW4 4 Output [Relay] VAC/VDC
1746-OW8 8 Output [Relay] VAC/VDC
1746-OX8 8 Output [Isolated Relay] VAC/VDC
1747-DCM Direct Communication Module (1/2 Rack)
1747-DCM Direct Communication Module (1/4 Rack)
1747-DCM Direct Communication Module (3/4 Rack)
1747-DCM Direct Communication Module (Full Rack)
1747-DSN Distributed I/O Scanner 30 Blocks
1747-DSN Distributed I/O Scanner 7 Blocks
1747-KE Interface Module, Series A
1747-KE Interface Module, Series B
1747-MNET MNET Network Comm Module
1746-QS Synchronized Axes Module
1747-QV Open Loop Velocity Control
1747-RCIF Robot Control Interface Module
1747-SCNR ControlNet SLC Scanner
1747-SDN DeviceNet Scanner Module
1747-SN Remote I/O Scanner
AMCI-1561 AMCI Series 1561 Resolver Module
Allen-Bradley Ethernet Driver
Output Words
1
1
1
1
1
1
1
2
1
1
1
1
2
1
1
2
1
1
1
1
2
1
8
1
8
8
4
4
12
2
2
32
32
32
8
0
32
8
32
32
8
0
8
6
8
4
2
Input Words
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0
8
8
0
0
16
2
2
32
32
32
8
0
32
8
32
32
8
1
8
6
8
4
2 www. kepware.com
Allen-Bradley Ethernet Driver
Optimizing Communications
The Allen-Bradley Ethernet Driver is designed to provide the best performance with the least amount of impact on the system's overall performance. While the driver is fast, there are a couple of guidelines that can be used to control and optimize the application and gain maximum performance.
The server refers to a communications protocol like Allen-Bradley Ethernet as a channel. Each channel defined in the application represents a separate path of execution in the server. Once a channel has been defined, a series of devices can be defined under that channel. Each of these devices represents a single Allen-Bradley
PLC from which data is collected. While this approach to defining the application provides a high level of performance, it doesn't take full advantage of the Allen-Bradley Ethernet Driver or the network. An example of how the application may appear when configured using a single channel is shown below.
Each device appears under a single Allen-Bradley Ethernet channel. In this configuration, the driver must move from one device to the next as quickly as possible to gather information at an effective rate. As more devices are added or more information is requested from a single device, the overall update rate begins to suffer.
17
If the Allen-Bradley Ethernet Driver could only define one single channel, the example above would be the only option available; however, the driver can define up to 256 channels. Using multiple channels distributes the data collection workload by simultaneously issuing multiple requests to the network. An example of how the same application may appear when configured using multiple channels to improve performance is shown below.
Each device has is defined under its own channel. In this new configuration, a single path of execution is dedicated to the task of gathering data from each device. If the application has 256 or fewer devices, it can be optimized exactly as shown here.
The performance can improve even if the application has more than 256 devices.
While 256 or fewer devices may be ideal, the application still benefits from additional channels. Although spreading the device load across all channels causes the server to move from device to device again, it can do so with far fewer devices to process on a single channel.
www. kepware.com
18
Allen-Bradley Ethernet Driver
Data Types Description
Data Type
Boolean
Byte
Char
Word
Short
DWord
Long
BCD
LBCD
Float
String
Description
Single bit
Unsigned 8-bit value
Signed 8-bit value
Unsigned 16-bit value
Signed 16-bit value
Unsigned 32-bit value
Signed 32-bit value
Two-byte packed BCD, four decimal digits
Four-byte packed BCD, eight decimal digits
32-bit IEEE floating-point
Null-terminated character array
Note: The DWord, Long, and LBCD data types are not native to any of the PLC models. When referencing a
16-bit location as a 32-bit value, the location referenced is the low word and the next successive location is the high word. For example, if N7:10 is selected as a DWord data type, N7:10 is the low word and N7:11 the high word.
www. kepware.com
Allen-Bradley Ethernet Driver
Address Descriptions
Address specifications vary depending on the model in use. Select a link from the following list to obtain specific address information for the model of interest.
General Addressing
SLC 5/05 Open Addressing
PLC-5 Family and Soft PLC Addressing
General Addressing
The general addresses below pertain to SLC 5/05, PLC-5, and SoftPLC.
Output Files
Input Files
Status Files
Binary Files
Timer Files
Counter Files
Control Files
Integer Files
Float Files
ASCII Files
String Files
See Also:
PLC-5 Family and SoftPLC Addressing
Output Files
The syntax for accessing data in the output file differs depending on the PLC model. Data locations are read / write for PLC-5 and SoftPLC models and read only for all other models. The default data type for all syntax is shown in bold.
PLC-5 and SoftPLC Model Syntax
Syntax
O:<word>
O:<word>/<bit>
O:<word>/<bit>[rows][cols]
O:<word>/<bit>[cols]
O/bit
O/bit[rows][cols]
O/bit[cols]
Data Type
Short, Word, BCD
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
*Array types
Note: Word and bit address information is in octal for PLC-5 and SoftPLC models. This follows the convention of the programming software.
SLC 5/05 Open Models (Modular I/O) Syntax
Syntax
O:<slot>
O:<slot>.<word>
O:<slot>/<bit>
O:<slot>/<bit>[rows][cols]
Data Type
Short, Word, BCD
Short, Word, BCD
Boolean
Boolean*
19
www. kepware.com
20
Allen-Bradley Ethernet Driver
Syntax
O:<slot>/<bit>[cols]
O:<slot>.<word>/<bit>
O:<slot>.<word>/<bit>[rows][cols]
O:<slot>.<word>/<bit>[cols]
*Array types
Data Type
Boolean*
Boolean
Boolean*
Boolean*
Slot and Word Configurations
The following slot and word locations are allowed for each model. For information, refer to
.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
Min Slot
1
NA
NA
Max. Slot
30
NA
NA
Max. Word
*
277 (octal)
777 (octal)
*The number of input or output words available for each I/O module can be found in the
Examples
All addresses are in octal.
PLC-5 /
SoftPLC
O:0
O:37
O/42
O:2/2
O/20[9]
O/37[8][11]
O:47/5[3]
O:11/13[3][7]
Addresses
Word 0
Word 31 (37 octal=31 decimal)
Bit 34 (42 octal=34 decimal)
Bit 2 word 2 (same as O/42)
9 element Boolean array starting at bit 16 (20 octal=16 decimal)
8 by 11 element Boolean array starting at bit 31 (37 octal=31 decimal)
3 element Boolean array starting at bit 5 word 39 (47 octal=39 decimal)
3 by 7 element Boolean array starting at bit 11 (13 octal=11 decimal) word 9 (11 octal=9 decimal)
SLC 5/05
O:1
O:1.0
O:12
O:12.2
O:4.0/0
O:4/0
O:4.2/0
O:4/32
O:2.12/3[17]
O:2.2/0[12][12]
O:2/43[5]
O:2/11[6][12]
Addresses
Word 0 slot 1
Word 0 slot 1 (same as O:1)
Word 0 slot 12
Word 2 slot 12
Bit 0 word 0 slot 4
Bit 0 slot 4 (same as O:4.0/0)
Bit 0 word 2 slot 4
Bit 32 slot 4 (same as O:4.2/0)
17 element Boolean array starting at bit 3 word 12 slot 2
12 by 12 element Boolean array starting at bit 0 word 2 slot 2
5 element Boolean array starting at bit 43 slot 2
6 by 12 element Boolean array starting at bit 11 slot 2
Input Files
The syntax for accessing data in the input file differs depending on the PLC model. Data locations are read / write for PLC-5 models and read only for all other models. The default data type for all syntax is shown in bold.
PLC-5 and SoftPLC Model Syntax
www. kepware.com
Allen-Bradley Ethernet Driver
Syntax
I:<word>
I:<word>/<bit>
I:<word>/<bit>[rows][cols]
I:<word>/<bit>[cols]
I/bit
I/bit[rows][cols]
I/bit[cols]
Data Type
Short, Word, BCD
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
*Array types
Note: Word and bit address information is in octal for PLC-5 and SoftPLC models. This follows the convention of the programming software.
SLC 5/05 Open Models (Modular I/O) Syntax
Syntax
I:<slot>
I:<slot>.<word>
I:<slot>/<bit>
I:<slot>/<bit>[rows][cols]
I:<slot>/<bit>[cols]
I:<slot>.<word>/<bit>
I:<slot>.<word>/<bit>[rows][cols]
I:<slot>.<word>/<bit>[cols]
Data Type
Short, Word, BCD
Short, Word, BCD
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
*Array types
Slot and Word Locations
The following slot and word locations are allowed for each model. For more information, refer to
.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC Family
Min Slot
1
NA
NA
Max. Slot
30
NA
NA
Max. Word
*
277 (octal)
777 (octal)
*The number of input or output words available for each I/O module can be found in the
Examples
All addresses are in octal.
PLC-5 /
SoftPLC
I:0
I:10
I/20
I:1/0
I/20[9]
I/37[8][11]
I:47/5[3]
I:11/13[3][7]
Addresses
Word 0
Word 8 (10 octal = 8 decimal)
Bit 16 (20 octal = 16 decimal)
Bit 0 word 1 (same as I/20)
9 element Boolean array starting at bit 16 (20 octal = 16 decimal)
8 by 11 element Boolean array starting at bit 31 (37 octal = 31 decimal)
3 element Boolean array starting at bit 5 word 39 (47 octal = 39 decimal)
3 by 7 element Boolean array starting at bit 11 (13 octal = 11 decimal) word 9 (11 octal = 9 decimal)
21
www. kepware.com
22
Allen-Bradley Ethernet Driver
SLC 5/05
I:1
I:1.0
I:12
I:12.2
I:4.0/0
I:4/0
I:4.2/0
I:4/32
I:2.12/3[17]
I:2.2/0[12][12]
I:2/43[5]
I:2/11[6][12]
Addresses
Word 0 slot 1
Word 0 slot 1 (same as I:1)
Word 0 slot 12
Word 2 slot 12
Bit 0 word 0 slot 4
Bit 0 slot 4 (same as I:4.0/0)
Bit 0 word 2 slot 4
Bit 32 slot 4 (same as I:4.2/0)
17 element Boolean array starting at bit 3 word 12 slot 2
12 by 12 element Boolean array starting at bit 0 word 2 slot 2
5 element Boolean array starting at bit 43 slot 2
6 by 12 element Boolean array starting at bit 11 slot 2
Status Files
To access Status files, specify a word (and optionally, a bit in the word). The default data type for all syntax is shown in bold.
Syntax
S:<word>
S:<word> [rows][cols]
S:<word> [cols]
S:<word>/<bit>
S:<word>/<bit> [rows][cols]
S:<word>/<bit> [cols]
S/bit
S/bit [rows][cols]
S/bit [cols]
*Array types
Data Type
Short, Word, BCD, DWord, Long, LBCD
Short, Word, BCD, DWord, Long, LBCD*
Short, Word, BCD, DWord, Long, LBCD*
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means that array size cannot exceed 16 words given a block request size of 32 bytes. For more information, refer to
Block Request Size .
Word Locations
The following Word locations are allowed for each model. The maximum word location is one less when accessing as a 32-bit data type (Long, DWord, or Long BCD).
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
Max. Word
999
999
31
Example
S:0
S/26
S:4/15
S:10 [16]
S:0 [4][8]
S/9 [5]
S/11 [3][7]
S:6/1 [6]
S:13/5 [2][3]
Description
Word 0.
Bit 26.
Bit 15 word 4.
16 element array starting at word 10.
4 by 8 element array starting at word 0.
5 element Boolean array starting at bit 9.
3 by 7 element Boolean array starting at bit 11.
6 element Boolean array starting at bit 1 word 6.
2 by 3 element Boolean array starting at bit 5 word 13.
www. kepware.com
Allen-Bradley Ethernet Driver
Binary Files
To access Binary files, specify a file number and a word (and optionally, a bit in the word). The default data type for all syntax is shown in bold.
Syntax
B<file>:<word>
B<file>:<word> [rows][cols]
B<file>:<word> [cols]
B<file>:<word>/<bit>
B<file>:<word>/<bit> [rows][cols]
B<file>:<word>/<bit> [cols]
B<file>/bit
B<file>/bit [rows][cols]
B<file>/bit [cols]
Data Type
Short, Word, BCD, DWord, Long, LBCD
Short, Word, BCD, DWord, Long, LBCD*
Short, Word, BCD, DWord, Long, LBCD*
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
*Array types
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means that array size cannot exceed 16 words given a block request size of 32 bytes. For more information, refer to
Block Request Size .
File Numbers and Word Locations
The following file numbers and word locations are allowed for each model. The maximum word location is one less when accessing as a 32-bit data type (Long, DWord, or Long BCD).
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
3, 9-999
3-999
3-9999
Max. Word
999
1999
9999
Example
B3:0
B3/26
B12:4/15
B3:10 [20]
B15:0 [6][6]
B3/7 [8]
B3/32 [6][9]
B3:11/2 [12]
B3:23/4 [5][8]
Description
Word 0
Bit 26
Bit 15 word 4
20 element array starting at word 10
6 by 6 element array starting at word 0
8 element Boolean array starting at bit 7
6 by 9 element Boolean array starting at bit 32
12 element Boolean array starting at bit 2 word 11
5 by 8 element Boolean array starting at bit 4 word 23
Timer Files
Timer files are a structured type whose data is accessed by specifying a file number, an element and a field.
The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax
T<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
23
www. kepware.com
24
Allen-Bradley Ethernet Driver
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
4, 9-999
3-999
3-9999
Max. Element
999
1999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
ACC
PRE
DN
TT
EN
Data Type
Short, Word
Short, Word
Boolean
Boolean
Boolean
Access
Read/Write
Read/Write
Read Only
Read Only
Read Only
Example
T4:0.ACC
T4:10.DN
T15:0.PRE
Description
Accumulator of timer 0 file 4.
Done bit of timer 10 file 4.
Preset of timer 0 file 15.
Counter Files
Counter files are a structured type whose data is accessed by specifying a file number, an element and a field.
The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax
C<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
5, 9-999
3-999
3-9999
Max. Element
999
1999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
ACC
PRE
UA
UN
OV
DN
CD
CU
Data Type
Short, Word
Short, Word
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Access
Read/Write
Read/Write
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Example
C5:0.ACC
C5:10.DN
C15:0.PRE
Description
Accumulator of counter 0 file 5
Done bit of counter 10 file 5
Preset of counter 0 file 15 www. kepware.com
Allen-Bradley Ethernet Driver
Control Files
Control files are a structured type whose data is accessed by specifying a file number, an element and a field.
The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax
R<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
6, 9-999
3-999
3-9999
Max. Element
999
1999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
UL
ER
EM
DN
LEN
POS
FD
IN
EU
EN
Data Type
Short, Word
Short, Word
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Access
Read/Write
Read/Write
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Examples
R6:0.LEN
R6:10.DN
R15:18.POS
Description
Length field of control 0 file 6
Done bit of control 10 file 6
Position field of control 18 file 15
Integer Files
To access Integer files, specify a file number and a word (and optionally, a bit in the word). The default data type for all syntax is shown in bold.
Syntax
N<file>:<word>
N<file>:<word> [rows][cols]
N<file>:<word> [cols]
N<file>:<word>/<bit>
N<file>:<word>/<bit> [rows][cols]
N<file>:<word>/<bit> [cols]
N<file>/bit
N<file>/bit [rows][cols]
N<file>/bit [cols]
*Array types
Data Type
Short, Word, BCD, DWord, Long, LBCD
Short, Word, BCD, DWord, Long, LBCD*
Short, Word, BCD, DWord, Long, LBCD*
Boolean
Boolean*
Boolean*
Boolean
Boolean*
Boolean*
25
www. kepware.com
26
Allen-Bradley Ethernet Driver
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means that array size cannot exceed 16 words given a block request size of 32 bytes. For more information, refer to
Block Request Size .
File Numbers and Word Locations
The following file numbers and maximum word locations are allowed for each model. The maximum word location is one less when accessing as a 32-bit data type (Long, DWord or Long BCD).
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
7, 9-999
3-999
3-9999
Max. Word
999
1999
9999
Example
N7:0
N7/26
N12:4/15
N7:10 [8]
N15:0 [4][5]
N7/12 [9]
N7/19 [3][11]
N7:7/0 [10]
N7:29/13 [2][15]
Description
Word 0
Bit 26
Bit 15 word 4
8 element array starting at word 10
4 by 5 element array starting at word 0
9 element Boolean array starting at bit 12
3 by 11 element Boolean array starting at bit 19
10 element Boolean array starting at bit 0 word 7
2 by 15 element Boolean array starting at bit 13 word 29
Float Files
To access Float files, specify a file number and an element. The only data type allowed is Float.
Syntax
F<file>:<element>
F<file>:<element> [rows][cols]
F<file>:<element> [cols]
Data Type
Float
Float array
Float array
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means array size cannot exceed 8 floats given a block request size of 32 bytes. For more information, refer to Block
Request Size .
File Numbers and Word Locations
The following file numbers and maximum word locations are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
8-999
3-999
3-9999
Max. Word
999
1999
9999
Example
F8:0
F8:10 [16]
F15:0 [4][4]
Description
Float 0
16-element array starting at word 10
16-element array starting at word 0
ASCII Files
To access ASCII file data, specify a file number and character location. The default data type for all syntax is shown in bold.
www. kepware.com
Allen-Bradley Ethernet Driver
Syntax
A<file>:<char>
A<file>:<char> [rows][cols]
A<file>:<char> [cols]
A<file>:<word offset>/length
Data Type
Char, Byte*
Char, Byte*
Char, Byte*
String**
Note: The number of array elements cannot exceed the block request size specified. For more information, refer to Block Request Size .
*The PLC packs two characters per word in the file, with the high byte containing the first character and the low byte containing the second character. The PLC programming software allows access at the word level or twocharacter level. The AB Ethernet driver allows accessing to the character level. Examples are as follows: l l
Using the programming software A10:0=AB would result in 'A' being stored in the high byte of A10:0 and
'B' being stored in the low byte.
Using the AB Ethernet driver, two assignments, A10:0=A and A10:1=B, would result in the same data being stored in the PLC memory.
**Referencing this file as string data allows access to data at word boundaries like the programming software.
The length can be up to 236 characters. If a string that is sent to the device is smaller in length than the length specified by the address, the driver null terminates the string before sending it down to the controller.
File Numbers and Character Locations
The following file numbers and maximum character locations are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
9-999
3-999
N/A
Max. Character
1999
1999
N/A
Note: All SLC 500 PLCs do not support ASCII file types. For more information, refer to the PLC documentation.
Example
A9:0
A27:10 [80]
A15:0 [4][16]
A62:0/32
Description
Character 0 (high byte of word 0)
80-character array starting at character 10
4 by 16 character array starting at character 0
32-character string starting at word offset 0
String Files
To access data in a String file, specify a file number and an element. The only data type allowed is string, which are 82-character null-terminated arrays. The driver places the null terminator based on the string length returned by the PLC.
Syntax
ST<file>:<element>
Data Type
String
Note: Arrays of strings are not supported.
Tip: String length can be obtained with a
File Numbers and Word Locations
The following file numbers and maximum word locations are allowed for each model.
27
www. kepware.com
28
Allen-Bradley Ethernet Driver
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
9-999
3-999
3-9990
Max. Word
999
999
9999
Example
ST9:0
ST18:10
Description
String 0
String 10
String Length
While the .LEN field is not supported, string length can be obtained with a COPY or MOVE function, as shown below.
SLC 5/05 Open Addressing
The actual number of addresses available depends on the model of the PLC. The ranges have been opened up to allow for maximum flexibility with future models. If the driver finds at runtime that an address is not present in the device, it posts an error message and removes the tag from its scan list.
Note: This model has no specific addressing.
See Also:
PLC-5 Family and SoftPLC Addressing
General Addressing
Model-Specific Addressing
BCD Files
PID Files
Message Files
Block Transfer Files
BCD Files
To access BCD files, specify a file number and a word. The only data types allowed are BCD and long BCD.
The default data type is always BCD.
www. kepware.com
Allen-Bradley Ethernet Driver
Syntax
D<file>:<word>
D<file>:<word> [rows][cols]
D<file>:<word> [cols]
Data Type
BCD, LBCD
BCD, LBCD*
BCD, LBCD*
*Array types
Note: The number of array elements (in bytes) cannot exceed the block request size specified. This means array size cannot exceed 16 BCDs given a block request size of 32 bytes. For more information, refer to Block
Request Size .
File Numbers and Word Locations
The following file numbers and maximum word locations are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
NA
3-999
3-9999
Max. Word
NA
1999
9999
Example
D9:0
D27:10 [16]
D15:0 [4][8]
Description
Word 0
16 element array starting at word 10
32 element array starting at word 0
PID Files
PID files are a structured type whose data is accessed by specifying a file number, an element and a field. The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax
PD<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
NA
3-999
3-9999
Max. Element
NA
999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
SP
KP
KI
KD
BIAS
MAXS
MINS
DB
SO
Data Type
Real
Real
Real
Real
Real
Real
Real
Real
Real
Access
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
29
www. kepware.com
30
Allen-Bradley Ethernet Driver
Element Field
CA
MO
PE
INI
SPOR
OLL
OLH
EWD
FILE
ELEM
EN
CT
CL
PVT
DO
SWM
DVNA
DVHA
PVLA
PVHA
PVL
DVP
DVN
PVDB
DVDB
MAXI
MINI
TIE
MAXO
MINO
UPD
PV
ERR
OUT
PVH
Data Type
Short, Word
Short, Word
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Real
Access
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Example
PD14:0.SP
PD18:6.EN
Description
Set point field of PD 0 file 14
Status enable bit of PD 6 file 18
Message Files
Message files are a structured type whose data is accessed by specifying a file number, an element and a field.
The default data type depends on the field being accessed. Integer fields receive a default data type of Word.
Syntax
MG<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
www. kepware.com
Allen-Bradley Ethernet Driver
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
NA
3-999
3-9999
Max. Element
NA
999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
ST
DN
ER
CO
ERR
RLEN
DLEN
EN
EW
NR
TO
Data Type
Short, Word
Short, Word
Short, Word
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Access
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Example
MG14:0.RLEN
MG18:6.CO
Description
Requested length field of MG 0 file 14
Continue bit of MG 6 file 18
Block Transfer Files
Block transfer files are a structured type whose data is accessed by specifying a file number, an element, and a field. The default data type depends on the field being accessed. Integer fields receive a default data type of
Word.
Syntax
BT<file>:<element>.<field>
Data Type
Depends on field
File Numbers and Elements
The following file numbers and maximum element are allowed for each model.
PLC Model
SLC 5/05 Open
PLC-5 Family
SoftPLC
File Number
NA
3-999
3-9999
Max. Element
NA
1999
9999
The following fields are allowed for each element. Refer to the PLC documentation for the meaning of each field.
Element Field
RLEN
DLEN
FILE
ELEM
RW
ST
DN
Data Type
Short, Word
Short, Word
Short, Word
Short, Word
Boolean
Boolean
Boolean
Access
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write
31
www. kepware.com
32
Element Field
ER
CO
EW
NR
TO
Example
BT14:0.RLEN
BT18:6.CO
Data Type
Boolean
Boolean
Boolean
Boolean
Boolean
Description
Requested length field of BT 0 file 14
Continue bit of BT 6 file 18
Allen-Bradley Ethernet Driver
Access
Read/Write
Read/Write
Read/Write
Read/Write
Read/Write www. kepware.com
Allen-Bradley Ethernet Driver
Event Log Messages
The following information concerns messages posted to the Event Log pane in the main user interface. Consult the server help on filtering and sorting the Event Log detail view. Server help contains many common messages, so should also be searched. Generally, the type of message (informational, warning) and troubleshooting information is provided whenever possible.
33
Unable to read data block from device. Frame received contains errors. |
Block start address = '<address>'.
Error Type:
Warning
Possible Cause:
1. An incorrect frame size was received.
2. A TNS mismatch occurred.
3. An invalid response command was returned from the device.
4. Misalignment of packets occurred due to connection/disconnection between the PC and device.
5. Bad cabling connecting the devices is causing noise.
Possible Solution:
While the driver can recover from the error without intervention, there may be an issue with the cabling or the device itself that should be corrected.
Unable to read data block from the device. Tag deactivated. | Block start address = '<address>', Status code = <code>, Extended status code =
<code>.
Error Type:
Warning
Possible Cause:
1. The address requested does not exist in the PLC.
2. The address requested cannot be accessed because the PLC is in error state.
3. The communications parameters for the Ethernet connection are incorrect.
Possible Solution:
1. Verify the address exists in the PLC.
2. Verify the PLC is not in an error state or restore the PLC to operation.
3. Verify the communications parameters for the Ethernet connection are correct.
4. Verify the correct port is specified for the named device.
5. Verify the IP address given to the named device matches that of the actual device.
Ã
Note:
www. kepware.com
34
Allen-Bradley Ethernet Driver
1. Check the status and extended status codes returned by the PLC. The extended status code may not always be returned; error information is contained within the status code. The codes are displayed in hexadecimal.
2. Status code errors in the low nibble indicate errors found by the local node. The driver continues to retry reading these blocks of data periodically. Errors found by the local node occur when the KF module cannot find the destination PLC on the network.
3. Status code errors in the high nibble indicate errors found by the PLC. These errors are generated when the block of data the driver is asking for is not available in the PLC. The driver does not ask for these blocks again after receiving this error. This error can be generated if the address does not exist in the
PLC.
Unable to write to address on device. Frame received contains errors. |
Address = '<address>'.
Error Type:
Warning
Possible Cause:
1. Incorrect frame size was received.
2. TNS mismatch occurred.
3. Invalid response command was returned from the device.
4. Misalignment of packets was caused by connection/disconnection between the PC and the device.
5. Bad cabling connecting the devices is causing noise.
Possible Solution:
While the driver can recover from this error without intervention, there may be an issue with the cabling or the device itself that should be corrected.
Unable to read data block from device. | Block start address = '<address>',
Status code = <code>, Extended status code = <code>.
Error Type:
Warning
Possible Cause:
1. The address requested does not exist in the PLC.
2. The address requested cannot be accessed because the PLC is in error state.
3. The communications parameters for the Ethernet connection are incorrect.
Possible Solution:
1. Verify the address exists in the PLC.
2. Verify the PLC is not in an error state or restore the PLC to operation.
3. Verify the communications parameters for the Ethernet connection are correct.
4. Verify the correct port is specified for the named device.
5. Verify the IP address given to the named device matches that of the actual device.
www. kepware.com
Allen-Bradley Ethernet Driver
Ã
Note:
1. Check the status and extended status codes returned by the PLC. The extended status code may not always be returned; error information is contained within the status code. The codes are displayed in hexadecimal.
2. Status code errors in the low nibble indicate errors found by the local node. The driver continues to retry reading these blocks of data periodically. Errors found by the local node occur when the KF module cannot find the destination PLC on the network.
3. Status code errors in the high nibble indicate errors found by the PLC. These errors are generated when the block of data the driver is asking for is not available in the PLC. The driver does not ask for these blocks again after receiving this error. This error can be generated if the address does not exist in the
PLC.
35
Unable to read data block from device. Tag deactivated. | Block start address = '<address>', Status code = <code>.
Error Type:
Warning
Possible Cause:
1. The address requested does not exist in the PLC.
2. The address requested cannot be accessed because the PLC is in error state.
3. The communications parameters for the Ethernet connection are incorrect.
Possible Solution:
1. Verify the address exists in the PLC.
2. Verify the PLC is not in an error state or restore the PLC to operation.
3. Verify the communications parameters for the Ethernet connection are correct.
4. Verify the correct port is specified for the named device.
5. Verify the IP address given to the named device matches that of the actual device.
Ã
Note:
1. Check the status and extended status codes returned by the PLC. The extended status code may not always be returned; error information is contained within the status code. The codes are displayed in hexadecimal.
2. Status code errors in the low nibble indicate errors found by the local node. The driver continues to retry reading these blocks of data periodically. Errors found by the local node occur when the KF module cannot find the destination PLC on the network.
3. Status code errors in the high nibble indicate errors found by the PLC. These errors are generated when the block of data the driver is asking for is not available in the PLC. The driver does not ask for these blocks again after receiving this error. This error can be generated if the address does not exist in the
PLC.
Unable to write to address on device. | Address = '<address>', Status code =
<code>, Extended status code = <code>.
Error Type:
Warning www. kepware.com
36
Allen-Bradley Ethernet Driver
Possible Cause:
The address written to does not exist in the PLC.
Possible Solution:
Verify the address exists in the PLC.
Ã
Note:
1. Check the status and extended status codes returned by the PLC. The extended status code may not always be returned; error information is contained within the status code. The codes are displayed in hexadecimal.
2. Status code errors in the low nibble indicate errors found by the local node. The driver continues to retry reading these blocks of data periodically. Errors found by the local node occur when the KF module cannot find the destination PLC on the network.
3. Status code errors in the high nibble indicate errors found by the PLC. These errors are generated when the block of data the driver is asking for is not available in the PLC. The driver does not ask for these blocks again after receiving this error. This error can be generated if the address does not exist in the
PLC.
Unable to read data block from device. | Block start address = '<address>',
Status code = <code>.
Error Type:
Warning
Possible Cause:
1. The address requested does not exist in the PLC.
2. The address requested cannot be accessed because the PLC is in error state.
3. The communications parameters for the Ethernet connection are incorrect.
Possible Solution:
1. Verify the address exists in the PLC.
2. Verify the PLC is not in an error state or restore the PLC to operation.
3. Verify the communications parameters for the Ethernet connection are correct.
4. Verify the correct port is specified for the named device.
5. Verify the IP address given to the named device matches that of the actual device.
Ã
Note:
1. Check the status and extended status codes returned by the PLC. The extended status code may not always be returned; error information is contained within the status code. The codes are displayed in hexadecimal.
2. Status code errors in the low nibble indicate errors found by the local node. The driver continues to retry reading these blocks of data periodically. Errors found by the local node occur when the KF module cannot find the destination PLC on the network.
3. Status code errors in the high nibble indicate errors found by the PLC. These errors are generated when the block of data the driver is asking for is not available in the PLC. The driver does not ask for these blocks again after receiving this error. This error can be generated if the address does not exist in the
PLC.
www. kepware.com
Allen-Bradley Ethernet Driver
Unable to write to address on device. | Address = '<address>', Status code =
<code>.
Error Type:
Warning
Possible Cause:
1. The Ethernet connection between the device and the host PC is broken.
2. The communication parameters for the Ethernet connection are incorrect.
3. The named device may have been assigned an incorrect IP address.
Possible Solution:
1. Verify the cabling between the PC and the device.
2. Verify that the correct port is specified for the named device.
3. Verify that the IP address given to the named device matches that of the actual device.
Unable to write to address on device. Packet length is out of range. | Address
= '<address>', Expected packet length = <low> to <high> (bytes).
Error Type:
Informational
Unable to write to address on device. TNS is out of range. | Address =
'<address>', Expected TNS range = <low> to <high>.
Error Type:
Informational
37
www. kepware.com
38
Index
A
B
C
Channel Properties - Ethernet Communications 7
Channel Properties - General 6
Channel Properties - Write Optimizations 7
D
Device Properties - Auto-Demotion 12
Device Properties - Communications Parameters 13
Device Properties - Protocol Parameters 13
Discard Requests when Demoted 13
www. kepware.com
Allen-Bradley Ethernet Driver
Allen-Bradley Ethernet Driver
Do Not Scan, Demand Poll Only 11
E
F
G
I
L
M
Modular I/O Selection Guide 15
www. kepware.com
39
40
N
Non-Normalized Float Handling 8
O
P
R
Request All Data at Scan Rate 11
Request Data No Faster than Scan Rate 11
Respect Client-Specified Scan Rate 11
Respect Tag-Specified Scan Rate 11
S
www. kepware.com
Allen-Bradley Ethernet Driver
Allen-Bradley Ethernet Driver
T
U
Unable to read data block from device. | Block start address = '<address>', Status code = <code>, Extended
Unable to read data block from device. | Block start address = '<address>', Status code = <code>. 36
Unable to read data block from device. Frame received contains errors. | Block start address =
Unable to read data block from device. Tag deactivated. | Block start address = '<address>', Status code =
Unable to read data block from the device. Tag deactivated. | Block start address = '<address>', Status code
= <code>, Extended status code = <code>. 33
Unable to write to address on device. | Address = '<address>', Status code = <code>, Extended status code
Unable to write to address on device. | Address = '<address>', Status code = <code>. 37
Unable to write to address on device. Frame received contains errors. | Address = '<address>'. 34
Unable to write to address on device. Packet length is out of range. | Address = '<address>', Expected
packet length = <low> to <high> (bytes). 37
Unable to write to address on device. TNS is out of range. | Address = '<address>', Expected TNS range =
V
W
Write All Values for All Tags 8
Write Only Latest Value for All Tags 8
Write Only Latest Value for Non-Boolean Tags 8
41
www. kepware.com
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
advertisement
Table of contents
- 1 Allen-Bradley Ethernet Driver
- 2 Table of Contents
- 4 Allen-Bradley Ethernet Driver
- 5 Overview
- 6 Setup
- 6 Channel Properties - General
- 7 Channel Properties - Ethernet Communications
- 7 Channel Properties - Write Optimizations
- 8 Channel Properties - Advanced
- 9 Channel Properties - Communication Serialization
- 10 Device Properties - Identification
- 10 Device Properties - Operating Mode
- 11 Device Properties - Scan Mode
- 11 Device Properties - Timing
- 12 Device Properties - Auto-Demotion
- 13 Device Properties - Communications Parameters
- 13 Device Properties - Protocol Parameters
- 14 Device Properties - Slot Configuration
- 14 Device Properties - Redundancy
- 15 Modular I/O Selection Guide
- 17 Optimizing Communications
- 18 Data Types Description
- 19 Address Descriptions
- 19 General Addressing
- 19 Output Files
- 20 Input Files
- 22 Status Files
- 23 Binary Files
- 23 Timer Files
- 24 Counter Files
- 25 Control Files
- 25 Integer Files
- 26 Float Files
- 26 ASCII Files
- 27 String Files
- 28 String Length
- 28 SLC 5/05 Open Addressing
- 28 PLC-5 Family and SoftPLC Addressing
- 28 BCD Files
- 29 PID Files
- 30 Message Files
- 31 Block Transfer Files
- 33 Event Log Messages
- 33 Unable to read data block from device. Frame received contains errors. | Bloc...
- 33 Unable to read data block from the device. Tag deactivated. | Block start add...
- 34 Unable to write to address on device. Frame received contains errors. | Addre...
- 34 Unable to read data block from device. | Block start address = '<address>', S...
- 35 Unable to read data block from device. Tag deactivated. | Block start address...
- 35 Unable to write to address on device. | Address = '<address>', Status code = ...
- 36 Unable to read data block from device. | Block start address = '<address>', S...
- 37 Unable to write to address on device. | Address = '<address>', Status code = ...
- 37 Unable to write to address on device. Packet length is out of range. | Addres...
- 37 Unable to write to address on device. TNS is out of range. | Address = '<addr...
- 38 Index