The text of a manual · part 21 of 24
AccuLazr AL5010 Product Line Manual, pages 201 to 210
Pages 201 to 210 of 236
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Datalogic AL5010
Page 201
EtherNet/IP Options When EtherNet/IP is enabled, a new tab become available within AccuLazr user interface that allow you to configure some additional options.
These parameters are described in more detail earlier in this manual, but a quick overview provides some context here. (See Chapter 5.) The Bar Code Data parameters allow you to manipulate the format of the bar code data. Most notable if your bar codes only contain numeric digits, you can configure the AL5010 to convert the bar codes to a numeric value instead of transmitting them as ASCII text. Additionally, you can enable the On-Demand Messaging Option for ControlLogix Processors. This is described in more detail later in this document. If the EtherNet/IP Trigger Input is enabled, the AL5010 Trigger settings are ignored and the AL5010 is triggered solely by manipulating the Trigger Bit in the Output Word (contained in the AL5010 Assembly and Output Objects). The AL5010 Outputs function the same as AL5010 relay outputs, but they manipulate bits within the AL5010 Input Word (contained in the AL5010 Assembly and Input Objects). The AL5010 can relinquish control of the internal AL5010 relays to another EtherNet/IP device. When this has been done, these relays are controlled by bits within the Output Word.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 202
Explicit Messaging Example Used for communication between AL5010 and a Programmable Logic Controller (PLC). Contact Accu-Sort support at 1-800-BAR-CODE (1-800-227-2633) for help with your specific application.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 203
I/O Messaging Example The following example illustrates how an AL5010 can be configured to communicate with a ControlLogix processor using I/O messaging. Utilizing this information along with the AL5010 Object definitions (on page B-19), it should be possible to adapt these directions for other EtherNet/IP devices. When EtherNet/IP is enabled on the AL5010, EtherNet/IP I/O Messaging is automatically enabled. No further configuration is needed to setup I/O messaging. Since the ControlLogix processor will treat the AL5010 as an I/O device, to setup an EtherNet/IP I/O message transfer between an AL5010 and a ControlLogix processor, you need to configure your AL5010 as a Generic Ethernet Module in the ControlLogix RSLogix 5000 interface I/O tree. To add a module: 1. Under the I/O Configuration Tree, right-click on the entry for your Ethernet module (e.g., 1756-ENET/A) and select New Module. 2. You will be presented with a list of options similar to what is shown below. From this list select ETHERNET-MODULE for the Generic Ethernet Module. 3. Specify the Module Properties for your AL5010. a. The most important step is that you must first set the Comm Format to Data-INT. This must be done first since it cannot be changed later. b. After this you can specify the Name, Description and IP Address of the AL5010. 4. The Connection Parameters must be specified as follows: Input Output Configuration
Assembly Instance 100 112 128
Size 68 2 0
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 204
NOTE: You can only “schedule” I/O message transfers to the AL5010 at a fixed interval. The Connection Tab allows you to specify this interval. The AL5010 will handle intervals down to 10 milliseconds. However, intervals this small may affect the overall AL5010 performance.
After this module definition for the AL5010 has been completed, tags will be created in the controller based on the name you specified for this AL5010 on the properties page for the module. These tags will consist of the name followed either by the letter ‘C’ (Configuration), the letter ‘O’ (Outputs) or the letter ‘I’ (Inputs). These tags are based on the AL5010 assembly objects.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 205
AL5010:C Configuration Data This data is not used.
AL5010:I Input Data Tag Name AL5010:I.Data[0] AL5010:I.Data[1]
Value Discrete Input Word Bar Code Sequence Number
AL5010:I.Data[2] AL5010:I.Data[3]
Bar Code Status Bar Code Size (words)
AL5010:I.Data[4-67]
Bar Code Data
Bit 0 1 2 3 4 5 6 7 8-15
Description See bit definitions. This field is updated every time the bar code data is updated. However, the bar code data will only be updated when the “Last Bar Code Sequence Number” (see Output Data) is set equal to this value. Not currently used. Number of words which contain the bar code data
Discrete Input Word
AL5010 Programmable Output #1 AL5010 Programmable Output #2 AL5010 Programmable Output #3 AL5010 Programmable Output #4 AL5010 Programmable Output #5 AL5010 Programmable Output #6 AL5010 Programmable Output #7 AL5010 Programmable Output #8 Unused
AL5010:O Output Data Tag Name AL5010:O.Data[0] AL5010:O.Data[1]
Value Discrete Output Word Last Bar code Sequence Number Received
Discrete Output Word Bit Bit = 0 0* Trigger Off 1–7 Unused 8* AL5010 Relay #1 Off 9* AL5010 Relay #2 Off 10* AL5010 Relay #3 Off 11* AL5010 Relay #4 Off 12-15 Unused * If enabled on AL5010
Description See bit definitions. This field must be updated to match the Bar Code Sequence Number each time the bar code data has been processed. Bit = 1 Trigger On Unused AL5010 Relay #1 On AL5010 Relay #2 On AL5010 Relay #3 On AL5010 Relay #4 On Unused
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 206
On-Demand Messaging (ControlLogix) On-Demand messaging provides another option for transferring bar code data to your ControlLogix processor. With on-demand messaging, the data transfer occurs as soon as the bar code data is available, not as the result of constant messaging at a schedule interval. Typically, On-Demand messaging is used in conjunction with I/O messaging. For applications requiring only the transfer of bar code data, using OnDemand Messaging allows the I/O packet interval to be increased (just to provide a heartbeat with the AL5010) reducing overall network utilization. On-Demand messaging can be enabled on the AL5010 from the EtherNet/IP tab on the network page within the user interface. When enabled, you need to specify the IP address and slot for the ControlLogix processor, along with the name of the Tag to contain the bar code data.
Once this is complete, you need to define a new Tag on the ControlLogix using its RSLogix 5000 interface. The new tag should have a type of INT and a dimension of 67 words. The name must match the name specified on the AL5010.
These tags will be updated every time a bar code is read. The following table defines the format of the data within this tag.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 207
On-Demand Tag Tag Name AL5010Tag.Data[0]
Value Bar Code Sequence Number
AL5010Tag.Data[1] AL5010Tag.Data[2]
Bar Code Status Bar Code Size (words)
AL5010Tag.Data[3-66]
Bar Code Data
Description This field is updated every time the bar code data is updated. However, the bar code data will only be updated when the “Last Bar Code Sequence Number” (see Output Data) is set equal to this value. Not currently used. Number of words which contain the bar code data
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 208
EtherNet/IP Object Models Glossary
This is a description of the different data types that are used in the documentation of the object model. These are standard definitions of the Open DeviceNet Vendor Association (ODVA). For additional information, visit their web site: http://www.odva.org/.
Summary of Objects
The following standard objects are supported. More details than provided in this appendix can be found in the EtherNet/IP™ Specification available from the Open DeviceNet Vendors Association (ODVA).
Identity Object (01HEX ) Message Router Object (02HEX) Assembly Object (04HEX) Connection Manager Object (06 HEX) TCP Object (F5HEX) Ethernet Link Object (F6 HEX)
The following Vendor Specific Objects have been defined to support the AL5010 Bar Code Reader.
Bar code Data Object (70 HEX) Discrete Input Data Object (71 HEX) Discrete Output Data Object (72 HEX)
Definitions
The following table has a description of all of the data types used. USINT UINT UDINT STRING BYTE WORD DWORD
Unsigned Short Integer (8-bit) Unsigned Integer (16-bit) Unsigned Double Integer (32-bit) Character String (1 byte per character) Bit String (8-bits) Bit String (16-bits) Bit String (32-bits)
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 209
Standard Objects Identity Object (01HEX - 1 Instance) Class Attributes Attribute ID Name 1 Revision Instance Attributes Attribute ID Name 1 2 3 4 5 6 7
Data Type UINT
Vendor Number Device Type 0x00 – Generic Product Code Number Product Major Revision Product Minor Revision Status Word (see below for definition) Product Serial Number Product Name Structure of: Product Name Size Product Name String
Data Value 1
Access Rule Get
Data Type
Data Value
Access Rule Get Get
UINT UINT
25DEC 00HEX
UINT USINT USINT WORD
01 03 01 See Below
Get Get
UDINT
Unique 32 Bit Value
Get
Get
Get UINT USINT[0-32]
15 “Bar Code Reader”
Status Word Bit Bit = 0 Bit = 1 0 No I/O Connection I/O Connection Allocated 1 – 15 Unused Unused Common Services Service Code Implemented for Service Name Class Level Instance Level 0EHEX Yes Yes Get_Attribute_Single 05HEX No Yes Reset Reset Service Code Service Code Class Instance Attribute Description 05HEX 1 1 0 Force software reset 05HEX 1 1 1 Reload factory settings and reset
Message Router Object (02HEX)
This object has no supported attributes.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Page 210
Assembly Object (04HEX – 4 Instances) Class Attributes Attribute ID
Name
1 Revision 2 Max Instance Instance 0x64 Attributes (Input Instance 1) Attribute ID Name 3
Data Type
Data Value
UINT UINT
1 81
Data Type
Input Data Structure of: Discrete Input Word (see below) Bar code Sequence Number Bar code Status (reserved) Bar code Size Word Bar code Data [UINT]
UINT UINT UINT UINT UINT [ ] varies (up to 64) Discrete Input Word
Bit 0 AL5010 Programmable Output #1 1 AL5010 Programmable Output #2 2 AL5010 Programmable Output #3 3 AL5010 Programmable Output #4 4 AL5010 Programmable Output #5 5 AL5010 Programmable Output #6 6 AL5010 Programmable Output #7 7 AL5010 Programmable Output #8 8-15 Unused Instance 0x70 Attributes (Output Instance 1) Attribute ID Name 3
Data Type
Default Data Value
Access Rule Get Get Access Rule Get
0 0 0 0 0
Default Data Value
Access Rule Get / Set
Output Data Structure of: Discrete Output Word (see below) UINT 0 Last Bar code Seq. Num Received UINT 0 Discrete Output Word Bit Bit = 0 Bit = 1 0* Trigger Off Trigger On 1–7 Unused Unused 8* AL5010 Relay #1 Off AL5010 Relay #1 On 9* AL5010 Relay #2 Off AL5010 Relay #2 On 10* AL5010 Relay #3 Off AL5010 Relay #3 On 11* AL5010 Relay #4 Off AL5010 Relay #4 On 12-15 Unused Unused * If enabled on AL5010 Instance 0x80 Attributes (Configuration Instance) Most I/O clients include a Configuration path when opening an I/O connection to a server. There is no Configuration data needed. Instance 0x81 Attributes (Heartbeat Instance – Input Only) This instance allows clients to monitor input data without providing output data. Common Services Service Code Implemented for Service Name Class Level Instance Level 0EHEX Yes Yes Get_Attribute_Single 10HEX No Yes Set_Attribute_Single
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net