Page 2
All the trademarks and names appearing here are for identification purposes only. Some of these trademarks may be registered trademarks of the respective owners. Balluff is not liable for any technical or printing errors, removal of the text contained herein or unintended damage resulting from use of the material.
Assembly Product specification Connections and pin assignment Display elements Cleaning First steps Step 1: Establishing a network connection with the SMARTCAMERA Step 2: Turn on SMARTCAMERA Step 3: Opening the BVS Cockpit web interface Startup Updating software Network topologies System settings...
The web-based software interface integrated in the SMARTCAMERA is described in the separate software manual (BVS Cockpit manual). Both manuals are available on the Balluff product website via www.balluff.com or via the help system of the BVS Cockpit interface. The SMARTCAMERA was developed to identify objects in automated industrial environments via optical codings (barcode, 2D codes or plain text) and to recognize and verify characteristics of objects such as presence, contours, dimensions, colors and positions.
Page 5
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus User instructions Numbers: – Decimal numbers are shown without additional indicators (e.g. 123). – Fixed-point numbers are shown with a period (e.g. 0.123). – Hexadecimal numbers are shown with the additional indicator hex (e.g. 00 Parameters: Parameters are shown in italics (e.g.
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus User instructions Abbreviations Balluff Vision Solution CMOS Complementary metal-oxide-semiconductor Discovery and basic Configuration Protocol DHCP Dynamic Host Configuration Protocol Device ID I/O port Digital input and output port EEPROM Electrical Erasable and Programmable ROM Electromagnetic compatibility ...
Balluff GmbH is authorized – but not obligated – to make updates or upgrades of the firmware upgrades available via the website of Balluff GmbH or in any other form. In such a case, Balluff GmbH is authorized – but not obligated – to inform you about the updates or upgrades. The use of such upgrades or updates assumes that you accepted the validity of the current GTC as well as the additional conditions in the operating instructions.
– Components are used that are not part of the SMARTCAMERA BVS SC. – Components are used that have not been explicitly approved by Balluff. For a list of the approved components, see chapter “Accessories” on page 86. Operation ► Before commissioning, carefully read the user's guide.
SMARTCAMERA Fieldbus Product description The Balluff SMARTCAMERA BVS SC is a camera for the acquisition and analysis of black-and- white and color images. Application areas are optical identifications of codes and plain text, inspections for quality assurance and the measurement of objects. The camera can also be used in robot environments.
– C-mount lenses (BAM LS-VS-004-C2/3-xx14-2) – Screw-on filter (BAM OF-VS-002-xx-yy) – Lights (BAE LX) – Touchpanel PC (BAE-PD-VS-011-01) – Mounting accessories – Connection cable – Power supply units Note Visit www.balluff.com for more information on available software and accessories. English...
The lateral screw connections have an M5 thread. The maximum engagement length is 5 mm. The maximum tightening torque is 2.6 Nm. ► The SMARTCAMERA and accessories must be firmly attached. Use only installation mate- rials which are sufficiently dimensioned and ensure secure attachment.
Max. current consumption ► The SMARTCAMERA and accessories shall be supplied by limited energy in accordance to UL 61010-1 Third Edition, Sub. Clauses 9.4 or LPS in accordance to UL 60950-1 or Class 2 in accordance to UL 1310 or UL 1585.
Page 13
80 % for temperatures up to 31 °C, decreasing linearly to 50 % at 40 °C Pollution degree Pollution degree 2 Vibration/shock was verified for the SMARTCAMERA – the C-mount lens used and its adjustment rings must be secured accordingly for operation. www.balluff.com English...
In order to ensure enclosure rating IP67, unused I/O ports must be closed with cover caps. ► The SMARTCAMERA and accessories shall be supplied by limited energy in accordance to UL 61010-1 Third Edition, Sub. Clauses 9.4 or LPS in accordance to UL 60950-1 or Class 2 in accordance to UL 1310 or UL 1585.
Page 15
3.5.1 Power The power plug connector supplies the SMARTCAMERA with the supply voltage and offers two I/O-24V switching signals (I/O 0 & I/O 1) for the connection with sensors, actuators or PLC. These two inputs and outputs feature a push-pull output stage. This allows using the output signal for PNP logic as well as NPN logic.
Page 16
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Product description I/O 0 & I/O 1 (power plug connectors) Operation as input Voltage Signal 0 0…5 V < 2 mA Signal 1 11…30 V 2…5 mA Delay < 160 µs Operation as output Voltage Signal 0 0 V (+V 100 mA max.
Page 17
3.5.3 Fieldbus The fieldbus version of the SMARTCAMERA is selectable between the fieldbus systems PROFINET and EtherNet/IP. Both are open bus systems for process and field communication in cell networks with few slaves.
Page 18
IO-Link-capable devices are parameterized via the IO-Link interface and then switched to SIO mode. – From this point on, the IO-Link port pin acts as simple switching input that furnishes a binary signal. Note Visit www.balluff.com for more information on available IO-Link devices and accesso- ries. English...
The operating states of the vision system, the IO-Link master as well as the LAN and fieldbus elements interface are displayed using LEDs. The display elements are distributed across the front and the underside of the SMARTCAMERA. Displays on the front Power LED...
Page 20
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Product description PROFINET Indicator Function Fieldbus 1 No fault or no voltage MS: Bus Failure Red, flashing No data exchange or no configuration Red on PROFINET IO not configured or not connected Fieldbus 2 No fault or no voltage...
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Product description Indicator Function LAN Link No LAN connection Green on LAN connection established LAN Act No data transfer Yellow, flashing Data transmission Cleaning The outside of the camera can be cleaned with a soft cloth. Persistent dirt can be removed with a cloth that is first moistened with a soap solution and wrung out.
► Now connect the power supply at the Power port with the power supply (24 V). Step 2: Turn on SMARTCAMERA The SMARTCAMERA starts up and is operational after approx. 30 seconds. At the start, the SMARTCAMERA opens the most recently opened inspection program and is in the same process state it occupied at switch-off. English...
Page 23
1. Record the serial number of the SMARTCAMERA. The serial number is located on the nameplate on the SMARTCAMERA. If the nameplate is not visible, you can also locate the SMARTCAMERA in the network via Windows Explorer (e.g. sc-150800015de). 2. To do so, select the network folder to display all the network devices.
4. Copy the update file (BVS_Cockpit_X.X.X.sh) to the updates folder. The SMARTCAMERA will now automatically start the update process. This may take up to 5 minutes. The Power LED on the front side will flash red during the update. The SMARTCAMERA is inaccessible in the network during the update.
Page 25
SMARTCAMERA Fieldbus Startup Network For the startup of the SMARTCAMERA, it is first integrated in the network environment. The topologies different options are described in the following examples. This covers a large part of the application cases. To operate the SMARTCAMERA requires that the supply voltage is provided via the power connection in any case.
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup IO-Link can also be combined with the fieldbus 2 topology. PROFINET DHCP Switch Server I/O (Power) IO-Link Figure 16: Fieldbus 2 topology in combination with IO-Link The following sections describe the configuration of the individual interfaces in detail.
To do so, it is recommended to configure the DHCP server in such a way that the SMARTCAMERA is assigned the same address in every case. As an alternative, the IP address can also be assigned manually (see the next section).
Page 28
PC and reconnect it. The fieldbus variant of the SMARTCAMERA features an additional second network port for the fieldbus communication. This port can also be used to configure the camera using the web interface.
Page 29
SMARTCAMERA Fieldbus Startup Digital I/O The SMARTCAMERA provides eight internal I/O signals. Depending on the variant, they are interface connected with the signals at the plug connectors. The digital I/O 2 to 5 are not directly connected with physical outputs.
Page 31
Startup Note After switching the fieldbus and after setting a few fieldbus parameters, the fieldbus module of the SMARTCAMERA must be restarted. Only then does the change take effect. In this case the button will appear for initiating the restart.
Page 32
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup EtherNet/IP settings Figure 22: Ethernet/IP parameters in the System Settings (Communication tab) Setting and Displays Description Version Version of fieldbus firmware (for service purposes only) MAC address Basic MAC address of the fieldbus Handshake timeout...
Page 33
Slot 0 must always be occupied by the “BVS-SC” head module. Slot 1 may host a data module for the SMARTCAMERA. Depending on use, an IO-Link port, a standard I/O, an IO-Link data module or an SIO module can be plugged in at slot 2.
Page 34
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Slot Module Function Header module of Parameter configuration, no process data SMARTCAMERA SMARTCAMERA Process data IO-Link port IO-Link data modules of various data widths or configurable as a standard I/O port; IO-Link para- meterization IO-Link station diagnos-...
Page 35
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Data modules for IO-Link inputs and outputs Data module Data width Input Output OL_I/O_1/_1byte 1 byte 1 byte IOL_I/O_2/_2byte 2 bytes 2 bytes IOL_I/O_2/_4byte 2 bytes 4 bytes IOL_I/O_4/_4byte 4 bytes 4 bytes IOL_I/O_4/_2byte 4 bytes...
Page 36
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup IO-Link station diagnostics Meaning 0…3 – Supply voltage short circuit (pin 3) (IO-Link mode) Overload warning pin 2 or pin 4 Actuator warning pin 2 or pin 4 Supply voltage short circuit (pin 3) (IO mode)
Page 37
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup IO-Link port parameter Slot 2, Subslot 1 Index Byte Bit Length Contents Values Default 6 bits Cycle time 0…63 2 bits Cycle time base 0/1/2 1 byte Data window offset 0…31 1 byte Max. data input length 0…32...
Page 38
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup IO-Link safe state pin 4/2 This function is an extension of the IO-Link port starting configuration. A safe state that the port is to take on in the case of a loss of bus communication can be predefined for the respective port.
Page 39
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup 5.7.3 Integration into The connection of a SMARTCAMERA to a Siemens S7 controller is shown with the project SIMATIC Manager. The exact procedure depends on the configuration software used. planning Installing the GSDML file software To perform project planning on the PC, the GSDML file for the module must be installed: 1.
Page 40
Adding a PROFINET device The devices are located in the hardware catalog under > More field devices > Identsystems > Balluff Vision Solutions > Balluff SMARTCAMERA. The module is added as PROFINET IO. ► Select the PROFINET rail. ► Double-clicking adds the device as a PROFINET IO.
Page 41
Figure 26: Changing the device's IP address Configuring SMARTCAMERA data The number of process data (buffer size) of the SMARTCAMERA can be selected by deleting or inserting a corresponding module (min. 16 bytes, max. 1280 bytes). When a module is not plugged in, no process data are configured.
Page 42
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Configuring the IO-Link module If an IO-Link module is to be configured, it must be dragged to slot two. It may be necessary to delete the default IO module first. ► Drag the selected module to slot 2 (slots 3...9 are reserved for optional additional modules for IO-Link).
Page 43
Startup EtherNet/IP Device master data fieldbus To parameterize the correct SMARTCAMERA model in an EtherNet/IP network, device database interface information in the form of an EDS file is required. The file is located on the Balluff homepage (see www.balluff.com). 5.8.1 Process data The following values describe the data sizes of the input, output and configuration data.
Page 44
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Config assembly All camera functions are set via the Web interface. The configuration data include only IO-Link functions. Start byte Length Description IO-Link port function 0: Standard-I/O, 1: IO-Link Cycle time Bit 0-5: Multiplier Bit 6-7: Time base...
Page 45
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Validation type Whether a connected IO-Link device receives access to the IO-Link master can be controlled using validation. Configuration options: Description No validation Allows communication to the IO-Link master only for devices whose vendor ID (VID) and device ID (DID) correspond to the configured values.
Page 46
If the Fault State function is not enabled, IOs are high-impedance if the bus connection fails, and behave then like an input. Note The fault state settings are stored only temporarily in the SMARTCAMERA. They are deleted after a restart. To ensure a long-term fault state configuration, the configuration has to be program- med via the host system so that the settings are transferred to the module again whenever the system is restarted.
Page 47
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Configuration of IO-Link devices The parameters of an IO-Link device are addressed by Index and Subindex. Reading a parameter Service Class Instance Attribute Value 3 (Read Byte Meaning Parameter) Index, lowest byte Index, highest byte Subindex The response contains the addressed data.
Page 48
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup 5.8.3 SMARTCAMERA This example shows how the SMARTCAMERA is connected to a CompactLogix or ControlLogix integration in PLC. Rockwell Studio 5000 1. Start EDS Hardware Installation Tool in the Logix Designer and register EDS file.
Page 49
2. Right-click Ethernet on the corresponding scanner card. Select a new module. Note: The function is not available in online mode! Figure 31: Add module 3. Select SMARTCAMERA Module BVS_SC-1280 and apply to the configuration. Figure 32: Select camera www.balluff.com...
Page 50
Startup 4. The input, output and configuration tags are automatically created in the controller tags. Figure 33: Camera controller tags 5. Set the desired IP address and connection parameters for the SMARTCAMERA under Module Properties Figure 34: Set connection parameters...
5.9.2 Camera mode This mode allows controlling some special IO-Link devices by the SMARTCAMERA. In this case, the control is done via the 8 IO channels of the camera. IO-Link parameters of the controller are not taken into account, no data or diagnostics are exchanged with the controller.
Page 52
Some of these I/O modules require a voltage supply for actuators at pin 2 of the IO-Link connection. For details, see the manual of the respective device. The SMARTCAMERA provides the actuator supply. The connection must be made with a 4-conductor cable.
Page 53
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Startup Device class 2: SMARTLIGHT – BNI007T BNI IOL-800-000-Z036 (1-stage) The 1-stage SMARTLIGHT is controlled with the IO channels I/O5, I/O 6 and I/O 7. I/O 5 I/O 6 I/O 7 Description Yellow Green Red, flashing...
Page 54
5.9.3 IO mode In this mode, the interface is controlled by the SMARTCAMERA. Pin 2 and pin 4 can each be configured as an input or output. I/O 6 of the SMARTCAMERA is linked with pin 2 and I/O 7 with pin 4.
IO-Link …3E …5F … Figure 38: Example for total buffer size 96 bytes (64 bytes SMARTCAMERA, 32 bytes IO-Link) Next, potential additional ranges for IO-Link The process data buffer is divided into multiple ranges: – Range 1 = SMARTCAMERA communication –...
Page 56
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 5. The controller sees the acknowledge bit, reads the data from the camera and then resets the strobe bit. 6. The camera sees the reset strobe bit and resets the acknowledge bit. The camera is ready for the next command.
Page 57
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Note Camera waits have a deselectable timeout of 500 milliseconds (see “Toggle mecha- nism” on page 56, step 4 (3), 9, and 12). If there is no response within this timeout, the camera cancels the handshake and resumes the initial state.
(bit strings) at the start and end of the data buffer for the process data of the SMARTCAMERA and compared. If both bit strings are the same, then the data between these bytes were updated completely and can be taken over. This means that the data for each R/W head is only valid if both bit headers are the same.
Page 59
Communication functions of the device with fieldbus Output buffer The control commands are transferred to the SMARTCAMERA via the output buffer. Control commands are triggered either as individual bit or via handshake. The camera responds to commands transferred via handshake with a status and possibly result data.
Page 60
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Commands The controller writes command codes in byte 2. The following codes are allowed: Name Command Meaning code Switch Application Switches the application Get Application ID Gets the ID of the currently active application...
Page 61
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Structure of byte 1 – information bits Subaddress Name Function description number Overtriggered A trigger was rejected by the camera Buffer Bit This bit becomes active as soon as a result container was not picked up by the controller and overwritten by a new result.
Page 62
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Structure of byte 3: Responses to commands / status Name Status code Meaning Command was successfully executed OK Application ID Response to the command Get Application ID; transfer of application ID OK Results Response to the command Get Results;...
Page 63
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.1.5 Commands The following responses are possible for all commands: and responses – NOK Error: General error (e.g. command format error, error in internal communication, …) NOK Communication Error: Communication error (e.g. handshake timeout violation, –...
Page 64
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Switching the application – Switch Application Subaddress Meaning Content / functional description Control bits Command code : Switch Application Data length byte 0 : Length 1 byte Data length byte 1...
Page 65
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Getting the time stamp – Get Date Time Subaddress Meaning Content / functional description Control bits Command code : Get Date Time Data length byte 0 Data length byte 1...
Page 66
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Setting the sequence number – Set Sequence Number Subaddress Meaning Content / functional description Control bits Command code : Set Sequence Number Data length byte 0 : Length 4 bytes...
Page 67
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.1.7 Structure of Bytes 00 and 01 contain warning and error bits and have no direct meaning for the responses handshake. Note All values are represented with the little-endiansetting.
Page 68
Consequently, different result data can also define formats for different applications. While the result data are being picked up, a maximum of one additional result data record of the next analysis is buffered in the background. If the bus communication or the SMARTCAMERA restarts, the result data are discarded.
Page 69
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus All elements of the time stamp are binary coded (see “Set time stamp” on page 82). General error – NOK Error Subaddress Meaning Function description Status/Control bits Command status byte...
Page 70
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Communication error – NOK Communication Error Subaddress Meaning Function description Status/Control bits Command status byte : NOK Communication Error Data length byte 0 Data length byte 1 Data byte 0 No meaning …...
Page 71
FFFFFFFF UNKNOWN_ERROR An unknown error occurred None 6.1.9 Function To simplify communication between SMARTCAMERA and the host system Balluff GmbH module provides function blocks: – For Siemens controllers there is a PROFINET function block. – For Rockwell controllers there is an EtherNet/IP function block.
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus Examples of – 16 bytes output buffer; 16 bytes input buffer fieldbus – Representation for the setting little-endian (lowest value byte first) communication Notation Meaning Logic combination Set bits...
Page 73
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.2.3 Switch Controller SMARTCAMERA application, 1. Process output buffer (observe sequence): 2. Process input buffer (observe sequence): problem: camera not yet Command identifier: Command status: ready (NOK Busy) Data length byte 0:...
Page 74
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.2.5 Get result Controller SMARTCAMERA container 1. Process output buffer (observe sequence): 2. Process input buffer (observe sequence): (without toggling) (4 byte Command identifier: Command status: (OK result container) Results)
Page 75
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.2.6 Get result Controller SMARTCAMERA container 1. Process output buffer (observe sequence): 2. Process input buffer (observe sequence): (without toggling) (20 byte result Command identifier: Command status: (OK container)
Page 76
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Communication functions of the device with fieldbus 6.2.7 Set input data Controller SMARTCAMERA (with toggling) 1. Process output buffer (observe sequence): 2. Read output buffer (22 byte input Command identifier: …0E Copy first 10 input bytes...
Page 77
– Controller sets wrong data length (FF = 255), but wants to transfer only one application ID byte. SMARTCAMERA expects additional data after the start of the handshake and starts toggle – process. While waiting for the next partial data, a timeout occurs in the camera → the camera cancels –...
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface LAN interface The TCP and UDP sockets provide a similar functionality as that provided via the fieldbus interface. The camera always uses port 36701. The controlling system can use any available port.
Page 79
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface Every message has a unique ID: Message Connect Disconnect Status Result containers Query application Switch application Get time stamp Set time stamp Set input data Set sequence number Trigger application...
Page 80
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface Status After every status change, the camera sends the new status to the client. Length in Struc- Value Designation bytes ture UINT32 42565350 Magic Number UINT32 User data length in bytes...
Page 81
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface Query application The client can use this message to query the application ID of the active application. Length in bytes Structure Value Designation UINT32 42565350 Magic Number UINT32 User data length in bytes...
Page 82
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface The camera responds to it with the current values: Length in bytes Structure Value Designation UINT32 42565350 Magic Number UINT32 User data length in bytes UINT32 Message ID UINT32 Year (e.g. 2016) UINT32 Month (1...12)
Page 83
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface Set sequence number Every application pass generates a result that contains a unique sequence number. This sequence number is displayed in the BVS Cockpit. The result container can also be configured in such a way that it contains the sequence number.
Page 84
BVS SC-_1280Z00-30-000 SMARTCAMERA Fieldbus Device communication via the LAN interface Trigger reset Restarts the camera. After this message, the network connection is being lost and must be re-established after the restart. The restart takes approx. 30 seconds. Length in Structure...
Page 85
The entire command is thus: (Magic number) (user data length) (Message-ID) Reply from SMARTCAMERA: (ASCII: 'H', 'a', 'l', 'l' 'o', space, 'W', 'e', 'l', ‚t‘, '!', 9× fill-bytes) Other examples (values always in hex): – Start application: 50535642 00000000 41000000 –...
Page 87
3D holder system BAM01YP BMS CS-M-S25-DX15-00 Removable disk for 3D fastener system BAM02ZU BMS CU-M-S25-D030-01 Attachment for interchangeable plate Ring light mounting bracket – SMARTCAMERA BAM02P7 BAM MB-VS-026-B14-1 Connection cable BCC0HZK BCC M418-E818-8X0-723-PS58N9-020 GigE cable RJ45, M12, 2 m BCC06K7...