Professional Documents
Culture Documents
Add-On Instruction
User Guide
December 2, 2013
Balluff Inc.
8125 Holton Drive
Florence, KY 41042
1-800-543-8390
www.balluff.com
Table of Contents
1.0 Scope ..................................................................................................................................................... 3
2.0 Products ................................................................................................................................................ 3
3.0 Instructions ........................................................................................................................................... 4
4.0 User-Defined Data Type (UDT) ........................................................................................................... 11
5.0 Software Validation ............................................................................................................................. 17
6.0 Troubleshooting Tips ......................................................................................................................... 22
7.0 Definitions ........................................................................................................................................... 24
8.0 Related Documents ............................................................................................................................ 26
9.0 References .......................................................................................................................................... 26
2.0 Products
2.1 This guide was developed for use with the software module AOI_BNI004A_40_27_041.L5X. This
software module is available for download at the web site www.Balluff.com/AOI.
2.2 This software module was developed for use with the Balluff EtherNet/IP Connectivity block BNI EIP-
508-105-Z015 (hardware version 5.0, firmware version 3.1).
2.3 For the development of this software module and hardware configuration, the following system
components were used and validated:
2.3.1 RSLogix5000, version 18.01 (or later)
2.3.2 Rockwell 1756-L63 controller
Embedded
Ethernet
Switch
New
Display
Menu
Dual Aux
Power
Ports
8 IO-Link Ports
Pin 2 – Free
Configurable
Pin 4 –Manually
Configured
• IO-Link
• Input/Output
5.2.2.5 Depending on the application and network design, verify whether a Unicast connection is
required:
Locate your folder containing the downloaded Balluff AOI modules, highlight
AOI_BNI006A_50_31_040.L5X and click Import…
Add-On Instruction
3.4.3 All parameters must be defined with tags of valid data type as defined by the AOI module. The
user should create each Tag Name relevant to the user’s project.
Tag Name
Parameter Name Description Data Type
(User specific)
Note that in this example, Module_Name has been defined in the I/O Configuration Tree as
Balluff_IO_Link_Master.
4.3.1 Data – this is a single 16-bit INT register that contains all discrete input data bits. If a port is
configured in IO-Link mode, the indicated result is 0.
4.3.2 Short_Circuit – this is a single 16-bit register that contains all discrete short circuit bits. These
bits indicate a short circuit between pins 1 and 3 on stated port.
4.3.3 Overload – this is a single 16-bit register that contains all discrete overload bits. These bits
indicate an overload has occurred on the indicated port and pin number. Note that these bits
will only function if the port is configured as an output.
4.3.4 UA_Fault – this Boolean value indicates whether auxiliary power is currently applied to the
BNI004A device’s output points. This bit is typically used to indicate an Emergency Stop has
occurred.
4.3.5 US_Fault – this Boolean value indicates whether sensor power is currently applied to the
BNI004A device.
4.3.6 Port_x_IO_Link_Status – (x = 1, 2, 3, or 4) this Boolean value indicates whether the indicated
Port (1-4) has been placed in IO-Link mode.
4.3.7 Port_x_Device_Connected – (x = 1, 2, 3, or 4) this Boolean value indicates whether the
indicated Port (1-4) has an operational IO-Link device connected to the port.
4.3.8 Port_x_Validation_Failed – (x = 1, 2, 3, or 4) this Boolean value indicates whether the indicated
Port (1-4) has passed the validation type as defined in the Configuration UDT (see Section 4.5).
4.4.1 Data – this is a single 16-bit INT register that contains all discrete output data bits.
4.4.2 Restart – this is a single 16-bit INT register that contains all discrete Restart bits. A Restart bit
must be toggled following a detected short-circuit event.
4.4.3 Display_RED – this Boolean value transitions the Red LED display on the BNI004A block.
4.4.4 Display_GREEN – this Boolean value transitions the Green LED display on the BNI004 block.
4.4.5 Display_LOCK – this Boolean value locks the display and prevents the user or PLC from
changing the display. While this bit is “high” or ON, a key icon will be indicated on the display.
4.5.1 Port_x_Function – (x = 1, 2, 3, or 4) this SINT value determines whether the indicated Port (1-4)
will function in Standard Input/Output (=0) mode or IO-Link (=1) mode. It is important to note
that after changing the value for any Port_x_Function registers, power must be cycled to the
BNI004A block for the change to take effect. (Note: values of 2 or higher will adjust port into
Fallback mode, which ceases all process data flow)
4.5.2 Port_x_Cycle_Time –(x = 1, 2, 3, or 4) this SINT value holds the cycle time for the indicated
Port (1-4). Bits 0-6 hold the cycle time value while bits 7-8 represent the time base.
4.5.3 Port_x_Validation_Type –(x = 1, 2, 3, or 4) this SINT value determines the type of validation
used for each Port (1-4). If this value is 0, then no validation is used – this is the default setting.
If this value is 1, then a compatible device (matching Vendor ID and Device ID) must be
connected to the port. If this value is 2, then the exact device (matching Vendor ID, Device ID
and Serial Number). (Note: The connected IO-Link device must support this feature)
4.5.4 Port_x_Vendor_ID – (x = 1, 2, 3, or 4) this SINT value indicates the Vendor ID of the device
connected to the Port. For any Balluff device, this value will be 0378hex.
4.5.5 Port_x_Device_ID – (x = 1, 2, 3, or 4) this SINT value indicates the Device ID of the device
4.6.1 Inputs – this 48-byte SINT array contains all raw input data values being passed from the IO-
Link slave device input array to the master device input array.
4.6.2 Outputs – this 48-byte SINT array contain all raw output data values being passed from the IO-
Link slave device output array to the master device output array.
Note that when the AOI module was used in the logic, the parameter Mapped_BNI_EIP_502_Data was
assigned to a tag named “Mapped_Master_Data”.
5.2.2 While this bit (Mapped_Master_Data.I.Data.12) is ON or “high”, the corresponding LED on the
I/O block should be lit. If this is not the case, please refer to Section 7.0 Troubleshooting.
Note that when the AOI module was used in the logic, the parameter Mapped_BNI_EIP_502_Data was
assigned to a tag named “Mapped_Master_Data”.
5.3.2 While this bit is ON or “high”, the discrete output device should transition to its ON state,
indicating that power is being passed to the device.
5.3.3 While this bit is ON or “high”, the corresponding LED on the I/O block should be lit. If this is not
the case, please refer to Section 7.0 Troubleshooting.
5.3.4 After confirming the operation of this output bit, return the bit to “low” or OFF to ensure that the
operation of logic is not affected.
Note that this screen shot and the following screen shot display the same information except that two tags
have been changed to Hex format.
5.4.2 While any Balluff IO-Link device is connected to Port 1 in IO-Link mode, these values will be
displayed. When the IO-Link slave is disconnected from Port 1, these values will return to 0. If
this is not the case, please refer to Section 6.0 Troubleshooting.
5.5 All released Balluff AOI modules have been validated according to Balluff QF 4.4.12. A copy of this
validation report can be obtained by contacting Balluff Technical Support at
technicalsupport@balluff.com.
Note that byte 8 corresponds only to Port 1 on the BNI004A master. This input bit will be indicated in
byte 56 (Port 2), byte 104 (Port 3), or byte 152 (Port 4).
6.3 If all system components are consistent with those described in Section 6.1 above and the raw data is
being received properly in RSLogix5000 but the user does not view AOI data as described in Section
5.1 above, additional steps can be taken to verify the proper operation of both the software
configuration and the hardware system and components.
6.3.1 To validate the software configuration:
6.3.1.1 Ensure that the Balluff hardware is communicating properly with the Logix processor. A
communication error is easily identified when RSLogix5000 is online with the processor
as the network hardware will be identified with a yellow warning triangle when the
communication fails.
6.3.1.2 Start a new RSLogix5000 project using only the Balluff hardware and AOI module. This
should eliminate any potential software conflicts.
6.4 If the system still does not respond properly, please contact the Balluff Technical Support Group at
technicalsupport@balluff.com.
7.1.2 AOI – Add On Instruction – reusable software module created with RSLogix5000. Balluff’s AOI
modules are composed of UDTs and associated logic to implement control algorithms. This
module is hardware specific. All AOI modules contained in a project will be located in the
Controller Organizer as shown below:
7.1.3 Controller scoped tag – a tag of any valid data type that is available to all programs within a
project and must be used uniformly throughout the entire project.
7.1.4 AOI Parameter – a tag of any valid data type that is created during the definition of the AOI
module and is isolated to that AOI. Its scope is limited to the each discrete use of AOI function.
7.1.6 I/O Configuration Tree – the area of RSLogix5000 where all physical, or “real world”, Inputs and
Outputs associated with the controller are defined. One example of an I/O Configuration Tree is
shown below:
7.1.7 EDS – Electronic Data Sheet – software configuration file that defines how a hardware product
will communicate with the network master using EtherNet/IP. The format and content of an
EDS is defined by ODVA, the controlling organization for EtherNet/IP specficiations.
8.2 Other documents – Each Balluff IO-Link device that may be connected to this IO-Link Master device will
have its own User Guides, both for hardware and for the AOI module software. These AOI modules
and User Guides can be downloaded from Balluff’s AOI website: www.Balluff.com/AOI.
9.0 References
9.1 None