Академический Документы
Профессиональный Документы
Культура Документы
for FactoryLink
Version 7.2
October 12, 2000
February, 2004
Axisware, L.L.C
Plano, TX 75074, USA
http://www.axisware.com
support@axisware.com
+1-(214)-764-1876 (Phone)
+1-(214)-764-1876 (Fax)
Axisware Allen-Bradley Ethernet Interface
i
Axisware Allen-Bradley Ethernet Interface
Software License
Please carefully read the following licensing agreement. By using this Axisware,
L.L.C. product, you are thereby indicating your acceptance of and agreement with all
the terms specified and your commitment to abide by them.
Product Use
Axisware, L.L.C. grants to you a non-exclusive license to use the Software programs
and related documentation in this package on a single processing unit. No one other
than a current Axisware, L.L.C. employee is permitted to modify or tamper with in
any way the executable computer files(s) associated with this license. This license
applies solely to Axisware, L.L.C. software and documentation contained in this
package, and does not apply to any software or documentation provided by other
parties which may be required for the proper operation of this product. You should
check the license conditions provided by the originators of software supplied by
others.
Warranty
Except as modified by an in-force written agreement executed by an authorized
officer of Axisware, L.L.C., Axisware, L.L.C. expressly disclaims any and all
warranties, conditions or representations, either expressed or implied, with respect to
software, other products and any part thereof delivered to Customer hereunder,
including any and all implied warranties or conditions of title, non-infringement,
merchantability or fitness or suitability for any purpose (whether or not Axisware,
L.L.C. knows, has reason to know, has been advised or is otherwise in fact aware of
any such purpose), whether alleged to arise by law, by reason of custom or usage in
the trade or by course of dealing. In addition, Axisware, L.L.C. expressly disclaims
any warranty or representation to any person other than Customer with respect to
the software or any part thereof. No written or oral information or advice given by
Axisware, L.L.C., its agents or employees shall create any warranty or in any way
increase the scope of the limited warranty set forth in such license agreement and
Customer may not rely on any such information or advice.
Customer's sole and exclusive remedy for any breach of this Agreement, including
any breach of warranty, shall be, to the exclusion of all other remedies therefor, in
contract, tort or otherwise, at Axisware, L.L.C. sole option, either the return of the
price paid for or the correction or replacement of any product that does not meet the
limited warranty, if any, set forth in a written agreement signed by an authorized
officer of Axisware, L.L.C. that is returned to Axisware, L.L.C.. In no event shall
Axisware, L.L.C. be liable to Customer (nor to any person claiming rights derived
from Customer's rights) for incidental, consequential, special, punitive or exemplary
damages of any kind, including without limitation lost profits, loss of business or
other economic damage and further including injury to property, as a result of a
breach of this agreement, including any breach of warranty, regardless of whether
Axisware, L.L.C. was advised, had other reason to know or in fact knew of the
possibility thereof. In no event shall Axisware, L.L.C. aggregate liability to Customer
(including liability to any person or persons whose claim or claims are based on or
derived from a right or rights claimed by Customer), with respect to any and all
claims at any and all times arising from or related to this Agreement, in contract, tort
or otherwise, exceed the aggregate amounts paid to Axisware, L.L.C. by Customer.
ii
Axisware Allen-Bradley Ethernet Interface
Table of Contents
1. Overview...................................................................................................................1
2. Definitions.................................................................................................................1
3. Differences from FactoryLink EDI Interfaces............................................................3
4. Application Configuration..........................................................................................4
System Configuration Information Table....................................................................4
Allen-Bradley Ethernet Interface: Device Definitions..................................................5
Allen-Bradley Ethernet Interface: Read/Write Control..............................................10
Allen-Bradley Ethernet Interface: Read/Write Information.......................................15
5. Details of Solicited Operation..................................................................................17
6. ABEI Program Arguments.......................................................................................20
System Configuration Information Table..................................................................20
Environment String..................................................................................................20
Task Command Line from Command Prompt..........................................................20
Task Sleep Period...................................................................................................20
Device Packet Retry Count......................................................................................21
Solicited Packets in Single Time Slice.....................................................................21
Unsolicited Packets in Single Time Slice.................................................................21
Maximum Number of Messages in Log File.............................................................21
7. Allen-Bradley Data Table Address Strings..............................................................22
PLC-5 I/O Data Tables............................................................................................22
All Other PLC-5 Data Tables...................................................................................23
SLC I/O Data Tables................................................................................................30
All Other SLC Data Tables.......................................................................................31
8. ABEI Error Codes and Extended Error Codes........................................................35
Extended Code: 35 – WSAEWOULDBLOCK..........................................................35
Extended Code: 36 – WSAEINPROGRESS............................................................35
Extended Code: 38 – WSAENOTSOCK..................................................................35
Extended Code: 45 – WSAEOPNOTSUPP.............................................................35
Extended Code: 50 – WSAENETDOWN.................................................................35
Extended Code: 51 – WSAENETUNREACH...........................................................36
Extended Code: 53 – WSAECONNABORTED........................................................36
Extended Code: 54 – WSAECONNRESET.............................................................36
Extended Code: 57 – WSAENOTCONN..................................................................36
Extended Code: 61 – WSAECONNREFUSED........................................................36
Extended Code: 64 – WSAEHOSTDOWN..............................................................36
Extended Code: 65 – WSAEHOSTUNREACH........................................................36
Extended Code: 1....................................................................................................37
Extended Code: 2....................................................................................................37
Extended Code: 3....................................................................................................37
Extended Code: 4....................................................................................................37
Extended Code: 5....................................................................................................37
Extended Code: 6....................................................................................................37
Extended Code: 7....................................................................................................37
Extended Code: 8....................................................................................................37
Extended Code: 16..................................................................................................37
iii
Axisware Allen-Bradley Ethernet Interface
iv
Axisware Allen-Bradley Ethernet Interface
1. Overview
This manual describes the configuration of the Axisware Allen-Bradley Ethernet
Interface Task. The task enables FactoryLink to communicate with Allen-Bradley
PLC-5/xxEs or SLC-5/05 controllers connected with the FactoryLink station via the
controller's Ethernet Interface. This task provides an application interface similar to
FactoryLink EDI drivers and supports solicited and unsolicited operations.
2. Definitions
The following terms are used throughout this manual:
A-B Controller
The term A-B Controller is used to refer to an Allen-Bradley PLC-5/xxE or SLC 5/05
controller connected to the FactoryLink station via the controller's Ethernet Interface.
ABEI Task
The term ABEI task refers to the Axisware Allen-Bradley Ethernet Interface Task (the
product described in this manual).
Block Read
A method of exchanging data between a FactoryLink application and an A-B Con-
troller. In this method the task will monitor a trigger tag. On detecting the trigger the
task will send the necessary “read” commands to the A-B Controllers required to
sample the A-B Controllers' data table values and set those values into RTDB tags.
Block Write
A method of exchanging data between a FactoryLink application and an A-B Con-
troller. In this method the task will monitor a trigger tag. On detecting the trigger the
task will send the necessary “write” commands to the A-B Controllers required to
"write" the A-B Controllers' data table values to those values in the RTDB tags.
Device
The ABEI task represents an A-B Controller with a device. Read/write Information ta-
ble entries are grouped by devices. Each device is independent of other devices.
Each device has it's own set of address, status, disable, error count and error codes
which can be accessed via RTDB tags. Each device establishes it's own separate
solicited and/or unsolicited sessions with an A-B Controller. In its basic form there is
one device for each A-B Controller accessed by the ABEI task. The A-B Controller
accessed by a device can be fixed in the configuration by using a literal string in the
device's TCP/IP Host Address field. Alternatively by specifying a message tag for
this field the application can control which A-B Controller the device is communicat-
ing with while the application is running. A device can only communicate with one A-
B Controller at a time.
Disable Tag
A tag that when specified can be used by the application to either disable or enable
either a solicited data exchange or a device. While the tag is true (non-zero) the
data exchange or device is disabled. While the tag is false (zero) the data exchange
or device is enabled. If the tag is not specified the data exchange or device is en-
abled.
1
Axisware Allen-Bradley Ethernet Interface
Exception Write
A method of exchanging data between a FactoryLink application and an A-B Con-
troller. In this method the ABEI task will individually monitor the RTDB tags listed in a
Read/Write information table for a changed state on that tag. When a change is de-
tected the task will initiate a write of that individual tag’s value to the A-B Controller
to the address specified in the Read/Write Information table.
RTDB
FactoryLink Real-time Database.
Solicited
Solicited operations are data exchanges that are initiated by the FactoryLink task.
The task will monitor a tag for a trigger condition and upon detection of the trigger
condition initiate a data exchange. There are three types of solicited operations
Block Read, Block Write and Exception Write.
Tag
A value in the FactoryLink Real-time Database.
Unsolicited Read
A method of exchanging data between a FactoryLink application and an A-B Con-
troller. In this method this task will wait to receive a write command from the A-B
Controller and define tags into the RTDB based on the contents of that command.
Using this method allows the A-B Controller to write application tags based on the
ladder logic in the A-B Controller. This task uses the term "Unsolicited Read" to
match the FactoryLink EDI term for this function, the direction of data transfer is the
same as a Block Read, data is "read" from the A-B Controller into the RTDB.
2
Axisware Allen-Bradley Ethernet Interface
3
Axisware Allen-Bradley Ethernet Interface
4. Application Configuration
FactoryLink driver tasks are configured by entering data into configuration tables,
thus specifying communication parameters, and defining the data to be read/written
to/from an external device or multiple devices.
Data is entered into configuration tables by accessing one or more screen displays
within the FactoryLink Configuration Manager and/or Application Editor, which
provide entry fields for information required by the table. For a description of the
general principles governing the entry of data in FactoryLink configuration tables,
consult the FactoryLink user documentation.
Flags
The following entries for this field are suggested:
F Run task in foreground.
R Start program when application starts
S Task has its own system console (text window for messages)
Task Name
Enter “ABEI” in this field
Description
Enter “Axisware Allen-Bradley Ethernet Interface” in this field
Executable File
Enter “bin\abei” in this field.
Program Arguments
Please see the “ABEI Program Arguments” section below for a description of
the contents of this field.
4
Axisware Allen-Bradley Ethernet Interface
The following Three configuration tables are provided with this task.
Device Name
Identifies the device defined by this entry. Up to 16 ASCII displayable characters, case
specific unique identification string. The entry in the Read/Write Information Table
"Device Name" field are matched to the device via this field.
Device Type
Identifies whether the A-B Controller referenced by the device defined in this entry is a
PLC-5/xxE or SLC 5/04.
Packet Timeout
This value specifies the amount of time (in tenths of seconds) the task will wait for a
response to a command from the A-B Controller.
Note: A value of zero instructs the task to never timeout (device will wait forever for a
response).
5
Axisware Allen-Bradley Ethernet Interface
Inactive Timeout
This value specifies the amount of time (in tenths of seconds) the task will leave the
device's solicited connection active without any solicited operations on the device. If
the specified amount of time elapses before there is a data exchange with the A-B
Controller the solicited connection is terminated. The solicited connection is
reestablished when a new operation is detected for the device.
This field provides a way for the ABEI task to clean up open solicited connections when
those connections are no longer being used. Each open connection uses system, A-B
Controller, and task resources that should be released if no longer required. The "best"
value to use depends on numerous factors dependent on the application and the
environment the application is running in. In general if the device is being used
constantly by the application this value should be large enough to assure that the
connection will be kept open. If the application uses the device occasionally the value
should be small enough to assure that the connection will be closed when the
occasional use has finished.
Note: A value of zero instructs the task to never timeout (device will not be
disconnected due to inactivity).
Note: The device's unsolicited connection is generally controlled by the A-B
Controller; however, disabling the device via its Disable Tag will close all open
connections for the device.
Reconnect Timeout
To avoid constant reconnection attempts to an A-B Controller when some component
in that connection may have failed. The task will wait for the time period specified in this
field before attempting to reconnect this device to the A-B Controller it addresses. This
time period is used when the connection fails or a connection attempt fails. The effect
is similar to a "slow poll".
Note: A value of zero instructs the task to never timeout (device will not attempt to
reconnect after error in connection or failure to reconnect).
Note: The device will break out of this "wait state" if the device is enabled via its
Disable Tag, or the message tag specified in the TCP/IP Address Host Name
field changes.
6
Axisware Allen-Bradley Ethernet Interface
7
Axisware Allen-Bradley Ethernet Interface
Comment
Optional application documentation field.
Valid entry: 31 alphabetic or numeric characters
8
Axisware Allen-Bradley Ethernet Interface
9
Axisware Allen-Bradley Ethernet Interface
Table Name
Name of the Read/Write Information Table controlled by this entry.
Valid entry: ASCII string containing up to 16 of the following character
set: A-Z, a-z, @, $, _, or 0-9.
Unsolicited Read
Field which specifies whether or not the entries in the associated Read/Write
Information table will be used to interpret write commands received from A-B
Controllers.
Valid entry:
No: Table is not to be used to receive unsolicited values
Yes: Table is to be used to receive unsolicited values and
when received are written to the RTDB using the
“normal” RTDB write command.
Force: Table is to be used to receive unsolicited values and
when received are written to the RTDB using the “force”
RTDB write command.
Exception Write
Field that specifies whether or not the entries in the associated Read/Write Information
table will be used for exception writes.
Valid entry:
No: Table is not to be used for exception writes.
Yes: Table is to be used for exception writes.
Exception Write Priority
Field that specifies the priority queue number on which to queue exception writes in
each device. The lower the priority queue number the higher the priority level.
Valid entry: Numeric entry of queue number (1 – 4, 1 highest priority)
10
Axisware Allen-Bradley Ethernet Interface
Valid entry: Any valid digital, analog or long analog tag name
Tag Values:
True (non-zero): Exception writes are disabled
False (zero): Exception writes are enabled
11
Axisware Allen-Bradley Ethernet Interface
12
Axisware Allen-Bradley Ethernet Interface
Comment
Optional application documentation field.
Valid entry: 31 alphabetic or numeric characters
13
Axisware Allen-Bradley Ethernet Interface
14
Axisware Allen-Bradley Ethernet Interface
Device Name
Identifies the device to use when exchanging data. This field must match exactly
(case sensitive) the "Device Name" field in the Device Definitions table.
Address
20 character ASCII string that specifies the address in the A-B Controller's data
table.
Valid entries: Up to 20-character address string. Please refer to the
addressing section that follows for more information on the content of this
string.
Data Type
Defines the type of the data in the A-B Controller.
Valid entries:
DEF: Default based on the tag type
Digital: BIT
Analog: INT2
Long Analog: INT4
Float: FLT4
Message: LOHI
BIT: A single binary digit
INT2: Two byte signed integer
INT4: Four byte signed integer
BCD4: Two byte unsigned BCD number with four digits
UBCD: Two byte unsigned BCD number with three digits
FLT4: Four byte (normal) A-B Floating point
FLT8: Eight byte (non-standard) Floating point
LOHI: Array of bytes as stored in the device
HILO: Array of bytes with the bytes in each word swapped from as
stored in the A-B Controller
ST: Element of a String (ST) file
Comment
Optional application documentation field.
Valid entry: 31 alphabetic or numeric characters
15
Axisware Allen-Bradley Ethernet Interface
16
Axisware Allen-Bradley Ethernet Interface
Priority
Each device has four queues for individual commands of solicited operations to be
processed by the device. Each queue is associated with a priority level, 1 through 4
where 1 is the highest priority. When the device is ready to send a command to the
A-B Controller, it samples these queues to determine the next command to send.
The higher the priority the more often the associated queue is sampled for a pending
command. In order to ensure that any command regardless of priority will eventually
be sent a command may be sent before one of a higher priority. Block Read, Block
Write, and Exception Write are queued on the same four queues in each device.
Note: The priority queues are in each separate device and operate independently
of any priority queues in any other devices.
17
Axisware Allen-Bradley Ethernet Interface
18
Axisware Allen-Bradley Ethernet Interface
If a disable tag is specified for a self triggered operation the setting of the disable tag
to true (non-zero) disabling the block operation, will cause self-trigging of the
operation to stop. This is because the state tag is updated only on changes in the
Active/Inactive State of the operation. Without special handling in the ABEI task
enabling the operation by setting the disable tag to false (zero) would not restart the
self-triggering operation. The ABEI task looks on changes to solicited operations
disable tags that enable the operation when the operation was disabled for whether
the solicited operation has the same tag as its trigger and state tags. If so the ABEI
task will force write the state tag to true (non-zero) restarting the self-triggering
operation.
Excessive overhead can be produced in the task if a disable tag is specified and the
same tag is used as the trigger tag and the complete tag of the operation. The
complete tag is set by the task upon handling a change in the trigger. If the disable
tag is true, disabling the operation, once a change is detected in the trigger tag the
task will set the complete tag causing a change in the trigger causing the task to set
the complete tag causing a change in the trigger ...
19
Axisware Allen-Bradley Ethernet Interface
Environment String
The environment string is "ABEIPARM" this can either be set in the System -> Envi-
ronment applet from the control panel or from a DOS command session entering the
command:
"Set ABEIPARM=[arguments]"
Note: If set from a DOS command session FactoryLink must be run from that com-
mand session.
Note: In the DOS set command there is no space between "ABEIPARM" and the
equals sign "=", a space after the equals sign is optional.
Argument Descriptions
20
Axisware Allen-Bradley Ethernet Interface
respond to events; however this increases the amount of CPU time that is used by
the task. The Higher the sleep period the less CPU time used by the task; however
the task will take longer to detect and process events. This parameter is in
milliseconds (1/1000th of a second).
Parameter ID: s
Default Value: 10
Minimum Value: 1
Maximum Value: 1500
21
Axisware Allen-Bradley Ethernet Interface
22
Axisware Allen-Bradley Ethernet Interface
A - ASCII
The ASCII file uses no subelements or mnemonics. Please note that no default file
number exists for an ASCII file.
Examples:
23
Axisware Allen-Bradley Ethernet Interface
Address: Description:
A10:10 File 10, word 10, bit 0
A10:10,20 File 10, word 10, length 20 (40 bytes)
A20:30/14 File 20, word 30, bit 14
B - Binary
The binary file uses no subelements or mnemonics.
Examples:
Address: Description:
B/17 File 3, word 1, bit 1
B3/17 As above
B13:1/2 File 13, word 1, bit 2
BT - Block Transfer
The block transfer file permits both subelement mnemonics and bit mnemonics.
Please note that no default file number exists for this file type and that this file type is
only valid for “new” generation PLC-5s (5/30, 5/40, 5/60, 5/80).
Bits:
Number: Mnemonic: Description:
15 EN Enabled
14 ST Start
13 DN Done
12 ER Error
11 CO Continue
10 EW Enable wait
9 NR No response
8 TO Time out
7 RW Read/Write
Subelements:
Number: Mnemonic: Description:
1 RLEN Receive length. Requested word count.
2 DLEN Done length. Transmitted word count.
3 FILE File-type number.
4 ELEM Element. Word number.
5 RGS Rack/Group/Slot.
Examples:
Address: Description:
BT12:1.RLEN File 6, control 1, receive length value
BT20:2.FILE File 20, control 2, File type value
BT15:5/ST File 6, control 5, start bit
24
Axisware Allen-Bradley Ethernet Interface
C - Counter
The counter file permits both subelement mnemonics and bit mnemonics.
Bits:
Number: Mnemonic: Description:
15 CU Count up
14 CD Count down
13 DN Done
12 OV Overflow
11 UN Underflow
Subelements:
Number: Mnemonic: Description:
1 PRE Preset Value
2 ACC Accumulated Value
Examples:
Address: Description:
C:1.PRE File 5, counter 1, preset value
C20:2.ACC File 20, counter 2, accumulated value
C5:5.DN File 5, counter 5, done bit
C5:6/12 File 5, counter 6, overflow bit
D- Decimal
The decimal file uses no subelements or mnemonics. This section is comprised of
16 bit BCD words. Please note that no default file number exists for a decimal file.
Examples:
Address: Description:
D0:10 File 0, element 10
D8:11 File 8, element 11
F - Floating Point
The floating point file uses no subelements or mnemonics.
Examples:
Address: Description:
F:10 File 8, element 10, bit 0
F8:10 As above
MG - Message
The message file permits both subelement mnemonics and bit mnemonics. Please
note that no default file number exists for this file type and that this file type is only
valid for “new” generation PLC-5s (5/30, 5/40, 5/60, 5/80).
Bits:
Number: Mnemonic: Description:
9 NR No response
8 TO Time out
7 EN Enable
25
Axisware Allen-Bradley Ethernet Interface
6 ST Start transmission
5 DN Done
4 ER Error
3 CO Continuous
2 EW Enable waiting
Subelements:
Number: Mnemonic: Description:
1 ERR Error code
2 RLEN Request length.
3 DLEN Done length
Examples:
Address: Description:
MG11:1.ERR File 11, message 1, error code
MG21:2.3 File 21, message 2, done length
MG15:5/CO File 15, message 5, continuous bit
N - Integer
The integer file uses no subelements or mnemonics.
Examples:
Address: Description:
N:10 File 7, word 10, bit 0
N7:10 As above
N20:30/14 File 20, word 30, bit 14
PD - PID Loop
The PID file permits both subelement mnemonics and bit mnemonics. Please note
that no default file number exists for this file type and that this file type is only valid
for “new” generation PLC-5s (5/30, 5/40, 5/60, 5/80).
Bits:
Number: Mnemonic: Description:
28 INI PID initialized
27 SPOR Set point out of range
26 OLL Output alarm, Low limit
25 OLH Output alarm, High limit
24 EWD Error within dead band
19 DVNA Deviation High Alarm
18 DVPA Deviation Low Alarm
17 PVLA Process Variable Low Alarm
16 PVHA PV High Alarm
15 EN Enable
9 CT Cascaded Type
8 CL Cascaded Loop
7 PVT Process Variable Tracking
6 DO Derivative Of
4 SWM Software A/M Mode
2 CA Control Action
26
Axisware Allen-Bradley Ethernet Interface
R - Control
The control file permits both subelement mnemonics and bit mnemonics.
Bits:
Number: Mnemonic: Description:
15 EN Enabled
14 EU Enable unload
13 DN Done
12 EM Empty
11 ER Error
10 UL Unload
9 IN Inhibit Comparison
8 FD Found
Subelements:
27
Axisware Allen-Bradley Ethernet Interface
S - Status
The status file uses no subelements or mnemonics.
Examples:
Address: Description:
S:10 File 2, word 10, bit 0
S2:10 As above
ST - String
The string file permits subelement mnemonics. Please note that no default file
number exists for this file type and that this file type is only valid for “new” generation
PLC-5s (5/30, 5/40, 5/60, 5/80).
Subelements:
Number: Mnemonic: Description:
0 LEN Length. Specifies an even number of bytes.
1 DATA Actual string data
Examples:
Address: Description:
ST22:1.LEN File 22, string 1, length value
ST22:2.1,5 File 22, string 2, string data, length 5
T - Timer
The timer file permits both subelement mnemonics and bit mnemonics.
Bits:
Number: Mnemonic: Description:
15 EN Enabled
14 TT Timing
13 DN Done
Subelements:
Number: Mnemonic: Description:
1 PRE Preset Value
2 ACC Accumulated Value
Examples:
28
Axisware Allen-Bradley Ethernet Interface
Address: Description:
T:1.PRE File 4, timer 1, preset value
T20:2.ACC File 20, timer 2, accumulated value
T4:5.DN File 4, timer 5, timer done bit
T4:6/15File 4, timer 6, enabled bit
29
Axisware Allen-Bradley Ethernet Interface
I - Input Image
The file for input image elements is file 1 of the data table. This file uses no
mnemonics.
Examples:
Address: Description:
I:7/1 Slot 7, bit 1
30
Axisware Allen-Bradley Ethernet Interface
31
Axisware Allen-Bradley Ethernet Interface
A - ASCII
The ASCII file uses no subelements or mnemonics. Please note that no default file
number exists for an ASCII file.
Examples:
Address: Description:
A10:10 File 10, word 10, bit 0
A10:10,20 File 10, word 10, length 20 (40 bytes)
A20:30/14 File 20, word 30, bit 14
B - Bit (Binary)
Each binary element consists of one word. You can address a binary element in its
entirety or you can address any particular data bit of an element individually.
Examples:
Address: Description:
B/17 File 3, word 1, bit 1
B3/17 As above
B13:1/2 File 13, word 1, bit 2
C - Counters
Each counters structure consists of three words. The counters file permits both
subelement mnemonics and bit mnemonics.
Bits:
Number: Mnemonic: Description:
15 CU Count up
14 CD Count down
13 DN Done
12 OV Overflow
11 UN Underflow
Subelements:
Number: Mnemonic: Description:
1 PRE Preset Value
2 ACC Accumulated Value
Examples:
Address: Description:
C:1.PRE File 5, counter 1, preset value
C20:2.ACC File 20, counter 2, accumulated value
C5:5/DN File 5, counter 5, done bit
C5:6/12 File 5, counter 6, overflow bit
F - Floating Point
Each floating point element consists of two words. The floating point file permits no
subelements or mnemonics.
Examples:
32
Axisware Allen-Bradley Ethernet Interface
Address: Description:
F:10 File 8, element 10, bit 0
F8:10 As above
N - Integer
The integer file uses no subelements or mnemonics.
Examples:
Address: Description:
N:10 File 7, word 10, bit 0
N7:10 As above
N20:30/14 File 20, word 30, bit 14
R - Control
Each control block consists of three words. The control file permits both subelement
mnemonics and bit mnemonics.
Bits:
Number: Mnemonic: Description:
15 EN Enabled
14 EU Unloading Enabled
13 DN Done
12 EM Empty
11 ER Error
10 UL Unload
9 IN Inhibit Comparisons
8 FD Found
Subelements:
Number: Mnemonic: Description:
1 LEN Length
2 POS Position
Examples:
Address: Description:
R:1.LEN File 6, control 1, length value
R20:2.POS File 20, control 2, position value
R6:5/UL File 6, control 5, unload bit
R6:6/14 File 6, control 6, enable unload bit
T - Timers
The timers file accommodates up to 256 timer structures. Each timer structure
consists of three words. You can address a timer structure in its entirety or you can
address any particular member of a structure individually.
Bits:
Number: Mnemonic: Description:
15 EN Enabled
33
Axisware Allen-Bradley Ethernet Interface
14 TT Timer Timing
13 DN Done
Subelements:
Number: Mnemonic: Description:
1 PRE Preset Value
2 ACC Accumulated Value
Examples:
Address: Description:
T:1.PRE File 4, timer 1, preset value
T20:2.ACC File 20, timer 2, accumulated value
T4:5/DN File 4, timer 5, done bit
T4:6/15 File 4, timer 6, enabled bit
34
Axisware Allen-Bradley Ethernet Interface
Code: 0 – Empty
No Error. There are no extended code values for this code.
Code: 2 – IP Error
The task received an error when attempting to perform some operation on a socket
(connection to an A-B Controller). With this code the extended code will contain the
error code resulting from the attempt. Some of the more common error codes are
listed below. For a complete list please view the “winsock.h” and “winsock2.h” ‘C’
include files for the Win32 SDK (Microsoft provided development libraries for
Windows 32-bit operating systems). The constant “WSABASEERR” has been
subtracted from the error code before being written to the tag.
35
Axisware Allen-Bradley Ethernet Interface
Code: 3 - Timeout
The task waited past it’s allotted time period for some communication to complete
with the A-B Controller. There are no extended code values for this code.
36
Axisware Allen-Bradley Ethernet Interface
below the code has not been listed in Allen-Bradley documentation (References to
Allen-Bradley documentation are of most currently available to the author at the time
of writing this manual).
Extended Code: 1
“station cannot buffer command”: Try reducing the “Max Concurrent Packets”
field value in the Device Definitions Table.
Extended Code: 2
“destination node (PLC) not found on DH+”
Extended Code: 3
“duplicate token holder detected”
Extended Code: 4
“local port is disconnected”
Extended Code: 5
“application layer timed out waiting for a response”
Extended Code: 6
“duplicate node detected”
Extended Code: 7
"station is off-line"
Extended Code: 8
"hardware fault"
Extended Code: 16
"illegal command or format": Assure that the proper device type (PLC-5 or
SLC) is configured for this device.
Extended Code: 32
"host has a problem and will not communicate"
Extended Code: 48
"remote node host is missing, disconnected, or shut down"
37
Axisware Allen-Bradley Ethernet Interface
Extended Code: 64
"host could not complete function due to hardware problem"
Extended Code: 80
"addressing problem or memory protect rungs"
Extended Code: 96
"function disallowed due to command protection selection"
Extended Code: 1
“a field has an illegal value”: Assure the proper device type (PLC-5 or SLC) is
set for this device in the Device Definitions Table.
38
Axisware Allen-Bradley Ethernet Interface
Extended Code: 2
“less levels specified in address than minimum for any address” : Assure the
proper device type (PLC-5 or SLC) is set for this device in the Device
Definitions Table.
Extended Code: 3
“more levels specified in address than system supports” : Assure the proper
device type (PLC-5 or SLC) is set for this device in the Device Definitions
Table.
Extended Code: 4
“symbol not found”
Extended Code: 5
“symbol is of improper format”
Extended Code: 6
“address does not point to something usable”: Assure the addressed file
actually exists in the A-B Controller.
Extended Code: 7
“file is of wrong size”: Assure the addressed file in the A-B Controller actually
has the number of elements referenced.
Extended Code: 8
“cannot complete request, situation has changed since the start of the
command”
Extended Code: 9
“data or file is too large”: Assure the addressed file in the A-B Controller
actually has the number of elements referenced.
Extended Code: 10
“transaction size plus word size is too large”: Assure the addressed file in the
A-B Controller actually has the number of elements referenced.
Extended Code: 11
“access denied, improper privilege”
Extended Code: 12
“condition cannot be generated, resource is not available”
Extended Code: 13
“condition already exists, resource is already available”
39
Axisware Allen-Bradley Ethernet Interface
Extended Code: 14
“command cannot be executed”
Extended Code: 15
“histogram overflow”
Extended Code: 16
“no access”
Extended Code: 17
“illegal data type”
Extended Code: 18
“invalid parameter or invalid data”
Extended Code: 19
“address reference exists to deleted data table”
Extended Code: 20
“command execution failure for unknown reason”
Extended Code: 21
“data conversion error”
Extended Code: 22
“scanner not able to communicate with 1771 rack adapter”
Extended Code: 23
“adapter cannot communicate with module”
Extended Code: 24
“1771 module response was not valid”
Extended Code: 25
“duplicated label”
Extended Code: 26
“file is open; another node owns it”
Extended Code: 27
“another node is the program owner”
40
Axisware Allen-Bradley Ethernet Interface
41
Axisware Allen-Bradley Ethernet Interface
9. ABEI Messages
The ABEI task will display messages in the task’s console window. This may either
be the “runmgr text window” or a separate “ABEI text window” depending on whether
or not the ‘S’ flag is set for the ABEI task in the Flags field of the System Configura-
tion Information Table. Additionally these messages can be logged to a text log file
by enabling write to disk in the ABEI logging function. For more information on the
ABEI logging function please refer to the section on ABEI logging which follows.
We have attempted to make these messages as self-explanatory as reasonably
possible; however a brief description of some of the messages is given below.
Axisware A-B Ethernet Ver X.YY
Banner line, this line is displayed on task start up and gives the current version of the
task. ‘X’ is the major version number and ‘YY’ is the minor version number.
Demo Time Limit Reached Task in suspend mode
The task was installed using the demonstration license and the task has been
running for the demonstration time period. Restarting the task will cause it to restart
the demo time period. While in suspend mode the task will not operate.
Out of Memory …
The task allocates and frees memory during operation for temporary buffer space.
When the task attempted to allocate a buffer the operating system was unable to
provide the memory. In today’s operating systems this should be far less common
then in previous times, but the same conditions apply: either reduce the amount of
data required by the task or reduce the number of tasks running on the system.
Unable to open .ct file
ct_read_index failed
Invalid ct table type
Device ct table length mismatch
ct_read_recs error reading device table
Error reading R/W Table Header of Table ..
ct_read_recs failed reading records of R/W table …
Invalid return from ct_get_nrecs …
R/W table record length mismatch
R/W table header length mismatch
Invalid ct table type …
These messages denote some problem with the FactoryLink application. Ensure
that the application matches the version of the task installed and/or rebuild the “ct”
files with the command “ctgen ABEI”. Please refer to FactoryLink documentation for
more information on configuration and building of applications.
Device: %s Invalid host alias for TCP/IP Address …
Either the literal string entered into the “TCP/IP Address Host Name” field of the
Device Definitions table or the string contained in the message tag specified in this
field is not a valid TCP/IP (dot) address or does not have a corresponding entry in
the host alias file.
42
Axisware Allen-Bradley Ethernet Interface
FlRead Error …
FlWrite Error …
fl_read failed …
fl_read failed …
fl_forced_write failed …
fl_write failed …
fl_clear_chang failed …
Error: fl_clear_chng error …
The task monitors return codes from the FactoryLink RTDB Application
Programming Interface (API). This style of message will denote that a RTDB API
error occurred displaying the error number and a text description of the error.
{Operation} of Table: {Table Name}:Device:{Device Name} Local Sts Error:
0xEE
{Operation} of Table:{Table Name}:Device:{Device Name} Remote Sts Error:
0xEE
{Operation} of Table:{Table Name}:Device:{Device Name} Ext Sts Error: 0x%EE
There are three classes of errors reported by the A-B Controller in a command
response, Local Status, Remote Status, and Extended Status. These messages
denote that one of these classes of errors (error code 0xEE) was received by device
{Device Name} when an {Operation} (Block Read, Block Write or Exception Write)
was being performed on Read/Write Information Table {Table Name}. These
messages will be followed by a message giving the translation for the error code
from Allen-Bradley documentation in double quotes “” and any available additional
information in parenthesis ().
Unable to allocate solicited socket for device: {Device Name}
Device: {Device Name} solicited ioctlsocket error {Error Code} {Error
Description}
Device: {Device Name} solicited ioctlsocket error {Error Cord} {Error
Description}
The task was unsuccessful with creating and setting up a “socket” with which to
perform solicited commands with device {Device Name}. This may be due to a lack
of resources on the processing station (PC). Ensure that TCP/IP is properly installed
and has sufficient resources.
Unable to allocate unsolicited base(listen) socket
setsockopt failed on Unsolicited base(listen) socket …
ioctlsocket failed on Unsolicited base(listen) socket …
listen failed on Unsolicited base(listen) socket …
accept failed on Unsolicited base(listen) socket …
repost of listen failed on Unsolicited base(listen) socket …
The task was unsuccessful with creating and setting up a “socket” on which to listen
for commands from A-B Controllers for unsolicited operations. This may be due to a
lack of resource on the processing station (PC) or because some other program
running on the processing station has taken this resource. Ensure that TCP/IP is
properly installed, has sufficient resources, and other programs attempting to
communicate with A-B Controllers over Ethernet are not running. Even though
unsolicited operations will not function solicited operation may continue to function.
43
Axisware Allen-Bradley Ethernet Interface
By default the ABEI task will not create a log file and only messages in the “error”
category are displayed in the task’s console window. Setting “logging parameters” in
a system environment variable can modify this behavior. This section describes
these “logging parameters”. The environment variable is parsed upon task startup
thus to change a parameter the environment variable must be modified and then the
task stopped and restarted. The default state for each parameter is disabled (off)
thus if one of the following parameters is desired it must be enabled (turned on) in
the environment variable. The environment variable is parsed left to right thus the
“last” (rightmost) reference to a parameter will define its final state.
The environment string is “ABEILOG” this can either be set in the “system environ-
ment dialog” from the control panel or from a DOS command session entering the
command:
“Set ABEILOG={parameters}”
A parameter is enabled by setting the parameters to “+{Parameter ID}” or disabled
by setting the parameters to “-{Parameter ID}” there must be at least one space be-
tween the parameters. Note: in the Set command there is no space between
“ABEILOG” and the equals sign “=”, a space after the equals sign is optional. All pa-
rameters are made up of lower case characters. The following parameters are de-
fined:
disk
Use this parameter to enable/disable the creation of the log file. If
enabled the log file “%FLAPP%\log\abei.log” will be recreated each
time the task is started. The log file is created so as to overwrite any
previous ABEI log file in the “%FLAPP%\log” directory.
unique
If the “disk” parameter above is enabled, enabling this parameter will
cause the task to create a unique log file name each time the task is
started. The task creates a unique name by inserting a time stamp in
the file name as “%FLAPP%\log\abeiYYMMDDHHMMSS.log”.
Where ‘YY’ is the two digit year, ‘MM’ is the two digit month, ‘DD’ is
the two digit day of month, ‘HH’ is the two digit (24 hour) hour, ‘MM’ is
the two digit minute, and ‘SS’ is the two digit second of when the file
was created (task startup).
Note: Using a unique file name can be useful however this keeps
the task from overwriting the previous file in the log directory.
Thus care should be taken to remove log files that are no
longer useful or excessive disk space may be used.
maxmsg
Enabling this parameter will limit the number of messages written to
the log file to 10,000. When 10,000 messages have been written to
the file the file will be closed and upon the next message to be
logged the file will be reopened.
Note: Enabling this parameter will force the enabling of the “unique”
parameter described above.
44
Axisware Allen-Bradley Ethernet Interface
warn
Use this parameter to enable/disable the displaying of “Warning” cat-
egory messages. Messages in this category display information
about potential problems in the application but do not prevent the
task from performing its function.
dvcsts
Use this parameter to enable/disable messages that denote when a
device changes its connection status.
dmpctinp
Use this parameter to enable/disable a “dump” of the configuration
data read by the task on startup. This information could be useful in
determining configuration problems.
dmptrig
Use this parameter to enable/disable a “dump” of the “triggers” (an
internal structure used to perform each operation on a Read/Write In-
formation Table) generated by the task from its configuration infor-
mation. This information could be useful in determining configuration
problems. This information includes a detailed description of all com-
mands (packets) built for each operation on a table.
dmptrgtag
This parameter is only valid if the “dmptrig” parameter above is en-
abled. Enabling this parameter will include individual tag information
in the trigger dump information.
proc&line
Use this parameter to enable/disable the inclusion of the source file
name, procedure, and source file line number in each “logged”
message. This information can be useful to tech-support in
identifying exactly which source code line generated the message.
Note: this information will only be added to the messages in the log
file; it will not be displayed in the console window.
all
Use this parameter to enable/disable all of the above parameters.
Examples:
Set ABEILOG=+all –dmptrgtag
Enable all logging parameters then disable the “dmptrgtag” parame-
ter
Set ABEILOG=+disk +warn +proc&line
Enable logging to disk, include warning messages, and include
source line information in messages. If sufficient disk space is avail-
able this mode is suggested for normal operation.
Set ABEILOG=+warn
45
Axisware Allen-Bradley Ethernet Interface
46