24
OPERATING INSTRUCTIONS Connecting a SICK Bar Code Scanner to Ethernet TCP/IP CMF400-3101 Fieldbus Gateway

CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Embed Size (px)

Citation preview

Page 1: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

O P E R AT I N G I N S T R U C T I O N S

Connecting a SICK Bar Code Scanner

to Ethernet TCP/IP

CMF400-3101

Fieldbus Gateway

Page 2: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions

CMF400-3101 for Ethernet TCP/IP

2 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Software Versions

Production status of the CMF400-3101

Copyright

Copyright © 2006

SICK AG Waldkirch

Auto Ident, Reute Plant

Nimburger Strasse 11

79276 Reute

Germany

Trademarks

Windows 98TM, Windows NTTM, Windows 2000TM, Windows XPTM and Internet ExplorerTM

are registered trademarks or trademarks of the Microsoft Corporation in the USA and other

countries.

Latest manual version

For the latest version of this manual (PDF), see www.sick.com.

Device type Designation Revision index

CMF400-3101 Field bus gateway for Ethernet TCP/IP 0000

Page 3: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions

CMF400-3101

Contents

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 3

Contents

1 Product Description .................................................................................................... 4

1.1 Features.................................................................................................................... 4

1.2 Scope of delivery...................................................................................................... 4

1.3 Prerequisites for Installation and Commissioning................................................. 5

1.4 Basic Functions........................................................................................................ 6

2 Installation ................................................................................................................... 8

2.1 Installation location in the connection module: .................................................... 8

3 Electrical Installation .................................................................................................. 9

3.1 Electrical Connections ............................................................................................. 9

4 Commissioning..........................................................................................................10

4.1 Configuration: Preparatory Steps..........................................................................10

4.2 Configuring the Bar Code Scanner and Gateway Using CLV Setup....................10

4.3 Configuring the Gateway with ComPro .................................................................15

5 Communication via Ethernet...................................................................................16

5.1 Ethernet Address (MAC Address)..........................................................................16

5.2 Internet Protocol Address (IP Address) ................................................................16

5.3 Port Number ...........................................................................................................16

5.4 Assigning the IP address .......................................................................................16

5.5 Subnet Mask (IP Mask) .........................................................................................16

5.6 Client/Server Connections ....................................................................................16

5.7 Testing the IP Configuration..................................................................................17

5.8 Data Format/Transmission Procedure.................................................................18

6 Troubleshooting........................................................................................................19

6.1 Serial Interfaces: "HST" (V1) and “AUX“ (V2) LEDs..............................................19

6.2 System LED: "SYS" (V3) .........................................................................................19

6.3 Bus LED: "LNK" (V4)...............................................................................................19

6.4 Status Bytes ...........................................................................................................20

7 Technical Data...........................................................................................................21

7.1 Data Sheet: Field Bus Gateway CMF400 for Ethernet TCP/IP ...........................21

7.2 Accessories ............................................................................................................22

8 Appendix.....................................................................................................................23

8.1 EC Declaration of Conformity ................................................................................23

Abbreviations used

ARP Address Resolution Protocol

BOOTP Bootstrap Protocol

CDM Connection Device Modular

CMF Connection Modular Fieldbus

CLV Code-Leser V-Prinzip (code reader V principle)

CLX Code-Leser X-Prinzip (code reader X principle)

DHCP Dynamic Host Configuration Protocol

ESD Electrostatic discharge

I Input

ICMP Internet Control Message Protocol

IP Internet Protocol

LED Light Emitting Diode

MAC Medium Access Control

O Output

TCP Transmission Control Protocol

Page 4: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 1 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

4 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Product Description

1 Product Description

1.1 Features

• Field bus gateway as a plug-in module for connecting SICK bar code scanners

CLV42x to 45x, CLV480, CLV490, or CLX490 to Ethernet TCP/IP.

• Can be used in the CDM420 and CDM490 connection modules (basic devices).

• Connection to the motherboard via the SMD connector.

• RJ-45 socket on the front panel for connection to Ethernet TCP/IP.

• Electrically isolated Ethernet interface, data transfer rate 10/100 MBit/s.

• Additional 2 digital inputs and outputs on the gateway.

• 4 LEDs for displaying status and malfunctions.

• 18 to 30 V DC power supply via the connection module.

• Configuration via the user interface of the connected bar code scanner.

• An active (client) or passive (server) connection can be established.

• Max. data packet length: 1,500 byte.

1.1.1 Supported Ethernet protocols

• ARP – Address Resolution Protocol (RFC 826)

• IP – Internet Protocol (RFC 791)

• ICMP – Internet Control Message Protocol (RFC 792)

• IGMPv2 – Internet Group Management Protocol, Version 2 (RFC 2236)

• TCP – Transmission Control Protocol (RFC 793, RFC 896)

• BOOTP – Bootstrap Protocol (RFC 951, RFC 1542, RFC 2132)

• DHCP – Dynamic Host Configuration Protocol (RFC 2131, RFC 2132)

• Ethernet frame types: Ethernet II (RFC 894), IEEE 802.3 receive only (RFC 1042)

1.1.2 Conformity according to RFC 791 to 793, with following limitations

• IP fragmentation not supported

• TCP urgent data not supported

• TCP port 0 not supported

1.2 Scope of delivery

• CMF400-3101 field bus gateway for Ethernet TCP/IP

• Front panel set with RJ-45 wall bushing for the connection module

• Installation set for mounting the CMF in the connection module

• "Manuals & Software Bar Code Scanners" CD (no. 2029112)

Note The latest versions of all the current publications/programs on the CD can also be down-

loaded from www.sick.com.

Further product information:

See www.sick.com/cmf

EC declaration of conformity:

On request

Page 5: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 1

CMF400-3101

Product Description

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 5

1.3 Prerequisites for Installation and Commissioning

• CDM420 or CDM490 connection module with operating instructions.

• Bar code scanner with CMF400-compatible firmware and operating instructions

(see Chapter 7.1 Data Sheet: Field Bus Gateway CMF400 for Ethernet TCP/IP,

Page 21).

• PC with "CLV Setup" user software from version 4.0 for configuring the CMF400 (on the

"Manuals & Software Bar Code Scanners" CD).

• 3-core RS 232 data cable (null modem cable) for connecting the PC to the CDM connec-

tion module

• If ComPro configuration tool is used: additionally the parameterization cable

no. 2030490 (see also Chapter 4.3 Configuring the Gateway with ComPro, Page 15)

Page 6: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 1 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

6 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Product Description

1.4 Basic Functions

1.4.1 Operating Principle

The CMF400-3101 field bus gateway is used for connecting a SICK bar code scanner to Eth-

ernet TCP/IP. The gateway enables user data to be transferred transparently between the

bar code scanner and a host computer. An active (client) or passive (server) connection can

be established.

The bar code scanner can be connected to the gateway via its host interface (RS 232 vari-

ant) or/and the terminal interface (RS 232). Both interfaces can also be connected to the

gateway at the same time. Each interface can then be addressed via the corresponding port

using the Ethernet.

Instead of a bar code scanner, a different device with an RS 232 interface and STX/ETX

frame can also be connected to Ethernet TCP/IP via the gateway. This enables hand scan-

ners, for example, to be easily integrated in Ethernet TCP/IP networks

(see also Chapter 4.3 Configuring the Gateway with ComPro, Page 15).

Fig. 1-1: Block diagram of the field bus gateway for Ethernet TCP/IP in the connection module

Fig. 1-2: Structure of the field bus gateway for Ethernet TCP/IP

CMC

400 Bar code scanner

PC

Host

Term

CDM420/490

Ethernet

CMF400-3101

RS 232

I/O

Aux

HST

AUX

OFF

Terminals

Configuration

Diagnosis

RS 232

ON

OFF

ON

S 1

S 2

Ethernet

LEDs

Switch S 1

(host interface)

SMD connector

for motherboard

5-pin terminal strip (I/O)

RJ-45 socket for

Ethernet TCP/IP connection

Switch S 2

(terminal interface)

„OFF“

„ON“

LEDs:

S 2 and S 1:

V 4 (LNK) V 3 (SYS)

V 2 (AUX)

V 1 (HST)

Molex socket

(for use with ComPro)

Page 7: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 1

CMF400-3101

Product Description

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 7

1.4.2 Configuration Switches and Displays

Configuration switches:

The configuration switches S 1 and S 2 switch the host and the terminal interface of the bar

code scanner to the gateway.

Note Use the "OFF" position of S 2 to configure or diagnose the connected bar code scanner via

the AUX connector in the connection module.

LEDs:

Switch Function Default

S 1 ON: host interface of the bar code scanner connected to the gateway

OFF: host interface of the bar code scanner NOT connected to the gateway

ON

S 2 ON: terminal interface of the bar code scanner connected to the gateway

OFF: terminal interface of the bar code scanner NOT connected to

the gateway

OFF

S 3 internal (only for use with ComPro configuration software) −

Table 1-1: Function of the gateway configuration switches S 1 and S 2

LED Function Color Status Description

V1

HST

Serial

Data

Green On Communication with bar code scanner OK

Off No communication with bar code scanner for 200 ms

XOFF Yellow On Gateway has sent XOFF. LED extinguishes when XON is sent.

Off Initial state (OK)

Regular flashing Gateway receive buffer or transmit buffer has overflowed.

Terminate flashing by releasing receive and/or transmit buffer.

V2

AUX

Serial

Data

Green On Communication with bar code scanner OK

Off No communication with bar code scanner for 200 ms

Buffer

Overflow

Yellow Off Initial state (OK)

Regular flashing Gateway receive buffer or transmit buffer has overflowed.

Terminate flashing by releasing receive and/or transmit buffer.

V3

SYS

RUN Green On Communication active

Irregular flashing Parameterization error

Regular flashing Ready to communicate

Off No communication

RDY Yellow On Gateway ready

Cyclic flashing Bootstrap loader active

Irregular flashing Hardware or system error

Off Hardware defect

V4

LNK

STA Orange On Connection to Ethernet TCP/IP network

Flashing Communication active (Ethernet TCP/IP)

Off No connection to Ethernet TCP/IP network

Red − not used

− not used

HST: host interface; AUX: terminal interface; SYS: system; LNK: link

Table 1-2: Function of the LEDs on the gateway

Page 8: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 2 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

8 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Installation

2 Installation

2.1 Installation location in the connection module:

Risk of damage to the gateway due to electrostatic charge

Do not touch the gateway without equipotential bonding because electrostatic discharge

from your body may damage electronic components.

Before removing the module from the ESD pouch, carry out equipotential bonding be-

tween the body and shield of the connection module.

Handle the module on the sides only.

When carrying out installation work, you are advised to wear a grounding wrist band.

2.1.1 Installing the Gateway in the Connection Module

1. Loosen the screws in the cover of the connection module and remove the cover.

2. Disconnect the connection module from the power supply.

To do so, set switch S 1 (power) to the "OFF" position.

3. Unscrew the old metal front panel and remove the shield connector.

4. Align the gateway in such a way that the RJ-45 socket points towards the front of the

connection module. Insert the module to the left of the motherboard (Fig. 2-1).

The SMD connector must rest on the mating connector of the motherboard.

5. Secure the module using the two threaded pins provided in the installation kit.

6. Connect the shield connector to the new front panel (RJ-45 wall bushing).

7. Screw the new front panel into place. Make sure that the RJ-45 socket fits into the wall

bushing. The shield must be located at the bottom of the connection module.

8. Connect the gateway shield (PE, terminal 1 on the 5-pin terminal strip) to the shield (ter-

minal 6, 7, or 8) on the motherboard using the cable supplied.

9. Switch on the power supply for the connection module with switch S 1.

10. Replace and secure the cover.

Note If a standard RJ-45 connector (IP 20) is used to connect the device to the Ethernet TCP/IP,

the RJ-45 wall bushing must be removed for IP 65 so that the connector can fit securely into

the socket.

Fig. 2-1: Slot for the field bus gateway for Ethernet TCP/IP in the connection module

Slot

Motherboard

Page 9: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 3

CMF400-3101

Electrical Installation

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 9

3 Electrical Installation

3.1 Electrical Connections

Note Diagrams showing you how to connect the CMF400 for Ethernet TCP/IP are also available

in the "CLV Connect" PC program (from version 2.0). The software is available on the "Man-

uals & Software Bar Code Scanners" CD. The software can also be downloaded from the

SICK home page (www.sick.com) in the Internet.

It can be called up using a standard HTML browser (e. g. Internet ExplorerTM).

3.1.1 Pin Assignment for the 5-Pin Terminal Strip (Gateway)

3.1.2 Pin Assignment for the 8-Pin RJ-45 Socket (Ethernet) on the Front Panel

Recommendation Do not use any cable longer than 100 m (328 ft).

To meet enclosure rating IP 65, a push-and-pull connector (Harting) must be used (see

Chapter 7.2 Accessories, Page 22).

3.1.3 Pin Assignment for the 9-Pin D Sub Plug “Aux“ in the Connection Module

Pin Signal Function

1 PE Shield (connection to connection module)

2 IN 1 Digital input (Uin = DC 0 to 30 V)

3 IN 2 Digital input (Uin = DC 0 to 30 V)

4 OUT 1 Digital output (Uout = DC 0 to Vs, max. 30 V)*)

5 OUT 2 Digital output (Uout = DC 0 to Vs, max. 30 V)*)

*) Cable length max. 30 m (98.4 ft)

Table 3-1: Pin assignment for the 5-pin terminal strip (gateway)

Pin Signal Function

1 Tx+ Sender+

2 Tx− Sender−

3 Rx+ Receiver+

6 Rx− Receiver−

4, 5,

7, 8

− n. c.

Table 3-2: Pin assignment for the 8-pin RJ-45 socket (Ethernet TCP/IP)

8 7 6 5 4 3 2 1

Pin Signal Function

2 RxD Receiver

3 TxD Transmitter

5 GND Signal ground

Table 3-3: Pin assignment for the 9-pin D Sub plug “Aux“ (RS 232)

51

96

Page 10: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 4 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

10 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Commissioning

4 Commissioning

4.1 Configuration: Preparatory Steps

Note When configuring the gateway using the "CLV Setup" configuration software (PC connec-

ted to the terminal interface of the bar code scanner), ensure that the gateway configura-

tion switch S 2 (AUX) is not in the "ON" position because the bar code scanner is then

connected to the gateway and PC at the same time.

1. Set the gateway configuration switch S 2 (AUX) to “OFF“.

2. Connect the bar code scanner to the connection module.

3. Switch on the power supply for the connection module (switch S 1 to “ON“).

4. Connect the PC to the terminal interface of the bar code scanner.

To do so, connect the 3-core RS 232 data cable (null modem cable) to the internal

9-pin "Aux" connector on the connection module.

5. Switch on the PC and install the "CLV Setup" configuration software on the

"Manuals & Software Bar Code Scanners" CD if you have not already done this.

6. Start the "CLV Setup" software.

When it successfully establishes communication with the bar code scanner, CLV Setup

copies the current scanner parameter set and displays the values on the tabs.

7. Configure the bar code scanner and field bus gateway as described below.

4.2 Configuring the Bar Code Scanner and Gateway Using CLV

Setup

Note The bar code scanner firmware must support the gateway

(see Chapter 7.1 Data Sheet: Field Bus Gateway CMF400 for Ethernet TCP/IP, Page 21).

The sections below explain how to configure the gateway using bar code scanner CLV44x.

If you are using a different type, the bar code scanner-specific tabs in CLV Setup are identi-

cal or similar.

4.2.1 Overview

• Configure the host interface of the bar code scanner.

• Configure the field bus gateway.

• Download the new parameter set to the bar code scanner.

• Restart the bar code scanner and gateway.

4.2.2 Configuring the Host Interface of the Bar Code Scanner

Note Once the configuration parameters have been downloaded to the bar code scanner, the

gateway automatically recognizes the settings of the serial interface using an AutoDetect

function after it has been restarted.

Choose the HOST INTERFACE tab.

Page 11: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 4

CMF400-3101

Commissioning

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 11

Set the following values on the tab:

• Target of the result data string: Asynchronous host interface

• Baud rate: 9,600; 19,200; 38,400; or 57,600 Bd

• Stop bits: 1

• Data/parity bits: 8 bit/no parity or 8 bit/odd parity

• Hardware: RS 232

• Interface protocol type: No handshake or ACK/NAK

• Standard start character: Send: STX, receive: STX

• Standard stop character: Send: ETX, receive: ETX

• XON/XOFF: Active/not active

The values in bold are the recommended gateway settings.

XON/XOFF:

When the XON/XOFF protocol is active, the gateway can interrupt the data flow from the bar

code scanner by sending the control character "XOFF" to the bar code scanner. If the bar

code scanner then receives the control character "XON", it resumes data transmission.

The gateway sends XOFF when 7 of the 8 buffers are full and a 8th telegram is received from

the bar code scanner. As soon as at least two buffers are free, the gateway sends XON to

the bar code scanner. The bar code scanner only processes the control characters "XON"

and "XOFF" at its host interface.

The gateway processes a maximum telegram length of 1,500 bytes.

Fig. 4-1: CLV Setup: "Host Interface" tab

Page 12: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 4 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

12 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Commissioning

4.2.3 Configuring the Field Bus Gateway

Choose the FIELD BUS GATEWAY tab.

Depending on the planned gateway data connection to the bar code scanner, choose the

list entry ETHERNET TCP/IP in the HOST GATEWAY or/and AUX GATEWAY field.

Click ETHERNET TCP/IP PARAMETERS.

The ETHERNET TCP/IP PARAMETERS dialog box is displayed.

Fig. 4-2: CLV Setup: "Field Bus Gateway" tab

Fig. 4-3: CLV Setup: "Ethernet TCP/IP Parameters" dialog box

Page 13: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 4

CMF400-3101

Commissioning

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 13

Note For a more detailed description of the individual addresses and ports, see Chapter 5 Com-

munication via Ethernet, Page 16.

Set the following values on the tab:

Addresses:

• IP Address of the gateway: 192.168.000.002 dec.

• IP Mask (Subnet mask): 255.255.255.000 dec.

• IP Gate Address: 000.000.000.000 dec.

Ports:

• IP Port “Host“ (1024): Connection type:

Client (gateway active) or

Server (gateway passive).

• IP Port “Aux“ (1025): Connection type:

Client (gateway active) or

Server (gateway passive).

• IP Port “I/0“ (1026): Connection type:

Client (gateway active), Server (gateway passive)

or unused (I/O Port not active).

• I/O Refresh Timer: Can only be set when IP Port “I/O“ is activated:

10 to 500 ms to 60 s.

If the timer has not been activated, the I/O data

(digital input/output states) is only

transmitted when the state changes.

Client settings:

• Server Address: Can only be set when the gateway is active

(host computer) while the connection is being established (client).

Server Address: 192.168.000.002 dec.

Retry connection time: 1,000 to 25,500 ms

The values in bold are the default gateway settings.

4.2.4 Downloading the Parameter Set and Restarting the System

1. Download the modified parameter set to the bar code scanner.

To do so, choose the icon in the toolbar.

The PARAMETER DOWNLOAD dialog box is displayed.

2. Confirm the dialog box by choosing the Permanent storage option.

3. Save the modified parameter set as a new configuration file in CLV Setup.

4. To restart the bar code scanner and gateway, briefly disconnect the connection module

from the power supply (e.g. switch S 1 to "OFF" and back again).

The new settings are activated.

Fig. 4-4, Page 14 shows the power up message of the bar code scanner after restarting.

Page 14: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 4 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

14 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Commissioning

4.2.5 Further Activities

1. If the bar code scanner communicates additionally with the gateway via its terminal in-

terface, set the gateway configuration switch S 2 also to "ON".

2. Connect the connection module to Ethernet TCP/IP (RJ-45 socket on front panel).

3. Start communication with the host computer.

4. Test the installation.

(see Chapter Chapter 5.7 Testing the IP Configuration, Page 17)

Fig. 4-4: CLV Setup: Power up message in the Terminal Emulator

Page 15: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 4

CMF400-3101

Commissioning

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 15

4.3 Configuring the Gateway with ComPro

Instead of a bar code scanner, a different device with an RS 232 interface and STX/ETX

frame can also be connected to Ethernet TCP/IP via the gateway. Since CLV Setup cannot

be used to configure the (external) device, a special configuration tool called ComPro is re-

quired. For configuring, the parameterization cable no. 2030490 is additionally required to

the 3-core RS 232 data cable (null mdoem cable), see Table 7-2, Page 22.

In the following cases, configuration must be carried out with ComPro in order to integrate

a device in Ethernet TCP/IP via the gateway in the connection module:

• The SICK bar code scanner firmware does not allow you to configure the gateway.

• A SICK hand scanner is operated on the connection module.

• An external device with an RS 232 interface and STX/ETX frame is operated on the con-

nection module.

Note If the field bus gateway has already been configured using ComPro, it cannot be reconfig-

ured using CLV Setup via the connected bar code scanner.

In this case, the gateway always uses the settings made with ComPro.

To configure the gateway using CLV Setup again, you first have to reset the internal gate-

way database using ComPro.

Pin Assignment for the 3-Pin Molex Socket (Gateway)

Connect the PC to the 3-pin Molex socket on the gateway.

To do so, connect the 3-core RS 232 data cable (null modem cable) to the PC. Connect

the free D Sub socket of the RS 232 data cable to the D Sub plug of the parameteriza-

tion cable no. 2030490 (1:1 connection). Connect the parameterization cable to the

Molex socket.

Pin Signal Function

1 GND Signal ground

2 TxD Transmitter

3 RxD Receiver

Table 4-1: Pin assignment for the 3-pin Molex socket of the gateway (RS 232)

Page 16: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 5 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

16 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Communication via Ethernet

5 Communication via Ethernet

5.1 Ethernet Address (MAC Address)

The MAC address constists of 6 bytes:

• The first 3 bytes indicate the manufacturer ID (vendor ID).

• The SICK CMF400 Gateways use MAC addresses from

00-06-77-C5-00-00 hex to 00-06-77-C5-0F-FF hex

5.2 Internet Protocol Address (IP Address)

Each device to be integrated in the IP network requires a unique IP address, which is used

to communicate with the device in the network.

5.3 Port Number

• Each TCP connection is defined by a target IP address and a port number.

• The port number is an extension of the IP address.

• The CMF400 gateway uses the following standard ports:

- Host interface: 1024 dec. (400 hex)

- Terminal interface (Aux): 1025 dec. (401 hex)

- I/O data: 1026 dec. (402 hex)

5.4 Assigning the IP address

The IP address in the CMF400 Gateway can be set by using two methods:

• DHCP:

A DHCP server automatically assigns the IP addresses to the individual network nodes

every time it is restarted. The MAC addresses of the nodes are used to assign the ad-

dresses.

• CLV Setup software:

If the IP address is not assigned dynamically (DHCP), it can be configured manually using

CLV Setup.

5.5 Subnet Mask (IP Mask)

In order to be fully integrated in the network, host computers need an IP address, a sub-

network screen, and a default gateway (or default router). The host computer can use this

information to decide how the data packets to be sent must be handled.

5.6 Client/Server Connections

Before data can be exchanged via a TCP connection, a logical connection must be estab-

lished between the two nodes:

• The client initiates the connection. The server waits for the client to establish the con-

nection.

• You can decide whether the CMF400 is to act as a client or server for each individual

port.

Page 17: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 5

CMF400-3101

Communication via Ethernet

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 17

5.7 Testing the IP Configuration

Once all the relevant Ethernet communication parameters have been configured for the

CMF400, communication should be tested from a PC. The following functions are available

for this purpose:

In MS-DOS: “ping: IP address” command

This command is used to check that the IP addresses have been configured correctly.

If the CMF400 settings are incorrect, the PC does not receive any response to its echo re-

quest.

In MS-DOS: “arp –a” command:

This command is used to display the reference table, which contains the corresponding

MAC address for the IP addresses. The table is created dynamically and updated continu-

ously. All the network nodes use the information in ARP request and ARP reply to update

their ARP cache.

Fig. 5-1: Results for “ping” DOS command

Fig. 5-2: Results for “arp –a” DOS command

Page 18: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 5 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

18 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Communication via Ethernet

5.8 Data Format/Transmission Procedure

The CMF400 transmits all the host interface data with an STX/ETX frame:

• It only forwards the telegrams from the barcode scanner to the host computer when the

corresponding frame in the bar code scanner has been activated (default setting).

• If the host computer is to transmit data to the barcode scanner, this data must also in-

clude an STX/ETX frame, otherwise the gateway cannot forward the data to the bar code

scanner.

The CMF400 transmits the terminal interface data (Aux) transparently, that is, it forwards

all the characters bi-directionally. In this way, unframed data (system messages, diagnosis

telegrams, etc.) can also be sent to the host computer via the Ethernet gateway.

The I/O data can be transmitted cyclically (10 ms to 60 s) or when the state is changed.

Page 19: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 6

CMF400-3101

Troubleshooting

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 19

6 Troubleshooting

If an error occurs while data is being transmitted, the gateway signals the error using the

error LED of the corresponding data interface.

6.1 Serial Interfaces: "HST" (V1) and “AUX“ (V2) LEDs

On the barcode scanner side, the gateway includes two duo LEDs for the two serial interfac-

es. These each comprise the “Serial data” and “XOFF” or “Buffer overflow” LEDs.

6.2 System LED: "SYS" (V3)

The “SYS” duo LED (SYS = system) comprises the following individual LEDs: “RDY” (RDY =

ready) and “RUN”. The “RDY” LED indicates whether the gateway is ready. The “RUN” LED

indicates whether the gateway is carrying out its communication functions. The following ap-

plies:

6.3 Bus LED: "LNK" (V4)

The “LNK” duo LED (LNK = link) signals the status of the Ethernet connection.

The following applies:

LED Function Color Status Description

V1

HST

Serial Data Green On Communication with bar code scanner OK

Off No communication with bar code scanner for 200 ms

XOFF Yellow On Gateway has sent XOFF. LED extinguishes when XON is sent.

Off Initial state (OK)

Regular flashing Gateway receive buffer or transmit buffer has overflowed.

Terminate flashing by releasing receive and/or transmit buffer.

V2

AUX

Serial Data Green On Communication with bar code scanner OK

Off No communication with bar code scanner for 200 ms

Buffer

Overflow

Yellow Off Initial state (OK)

Regular flashing Gateway receive buffer or transmit buffer has overflowed.

Terminate flashing by releasing receive and/or transmit buffer.

Table 6-1: Function of the “HST“ (V1) and “AUX“ (V2) LEDs on the gateway

LED Function Color Status Description

V3

SYS

RUN Green On Communication active

Irregular flashing Parameterization error

Regular flashing Ready to communicate

Off No communication

RDY Yellow On Gateway ready

Cyclic flashing Bootstrap loader active

Irregular flashing Hardware or system error

Off Hardware defect

Table 6-2: Function of the “SYS“ (V3) LED on the gateway

LED Function Color Status Description

V4

LNK

STA Orange On Connection to Ethernet TCP/IP network

Flashing Communication active (Ethernet TCP/IP)

Off No connection to Ethernet TCP/IP network

Red − not used

Table 6-3: Function of the “LNK“ (V4) LED on the gateway

Page 20: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 6 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

20 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Troubleshooting

6.4 Status Bytes

In addition to the digital input/output statuses, status bytes are transmitted via the “I/O” IP

port cyclically or when the state changes (depending on the configuration).

Assignment Input telegram (sender: gateway)

Assignment Output telegram (sender: host):

Note All characters are represented in the ASCII format.

Byte Name Meaning

0 IN 1 Digital inputs

- Low = 48 dec. = 30 hex = logical “0“

- High = 49 dec. = 31 hex = logical “1“1 IN 2

2

to

7

reserved

8 Heartbeat bit*) Global bits

9

to

15

reserved

16 SCCError AUX error bits

17 BufferOverrun

18 NackScanner

19 TimeoutScanner

20

to

23

reserved

24 SCCError HST error bits

25 BufferOverrun

26 NackScanner

27 TimeoutScanner

28

to

31

reserved

*) With transmission type “change of state”, a telegram is not transmitted when the heartbeat bit is changed.

Table 6-4: Assignment of the status bytes for the input telegram

Byte Name Meaning

0 OUT 1 Digital outputs

- Low = 48 dec. = 30 hex = logical “0“

- High = 49 dec. = 31 hex = logical “1“1 OUT 2

2

to

31

reserved

Table 6-5: Assignment of the status bytes for the output telegram

Page 21: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 7

CMF400-3101

Technical Data

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 21

7 Technical Data

7.1 Data Sheet: Field Bus Gateway CMF400 for Ethernet TCP/

IP

Type CMF400-3101

Order no. 1026357

Supported bar code scanners CLV42x From firmware version V 1.70

CLV43x to 45x From firmware version V 3.60

CLV480, CLV/X490 From firmware version V 3.50

Basic devices (connection modules) CDM420-0001 (no. 1025362)

CDM490-0001 (no. 1025363)

Host interface RS 232

Data transfer rate 9,600 to 57,600 Bd

Data format 1 start bit, 8 data bits, 1 stop bit, no/odd parity

Protocol start character STX (02 hex), transmit and receive

Protocol stop character ETX (03 hex), transmit and receive

Terminal interface RS 232, transparent data transfer

Data transfer rate 9,600 Bd

Data format 1 start bit, 8 data bits, 1 stop bit, no parity

Ethernet interface Electrically isolated

Data transfer rate 10/100 Mbit/s

Supported protocols • ARP – Address Resolution Protocol (RFC 826)

• IP – Internet Protocol (RFC 791)

• ICMP – Internet Control Message Protocol (RFC 792)

• IGMPv2 – Internet Group Management Protocol, Version 2 (RFC 2236)

• TCP – Transmission Control Protocol (RFC 793, RFC 896)

• BOOTP – Bootstrap Protocol (RFC 951, RFC 1542, RFC 2132)

• DHCP – Dynamic Host Configuration Protocol (RFC 2131, RFC 2132)

• Ethernet frame types: Ethernet II (RFC 894), IEEE 802.3 receive only (RFC 1042)

Further technical data • Number of sockets: 4

• ARP cache size: 64 entries

• ARP timeout: 600 s

• Route Cache size: 32 entries

• Route timeout: 900 s

• IP mulitcast groups: receive 64, send: not limited

• IP telegram size (packet): max. 1,500 bytes

Compatibility Conformity according to RFC 791 to 793, with following limitations:

• IP fragmentation not supported

• TCP urgent data not supported

• TCP port 0 not supported

Inputs 2 x digital

Outputs 2 x digital, cable lenght max. 30 m (98.4 ft)

Indicators 4 x LED (for indicating statuses and malfunctions/errors)

Configuration 2 x slide switch

Via CLV Setup configuration software

Via ComPro configuration software (alternative)

Electrical connections 1 x 26-pin SMD connector to the basic device

1 x 8-pin RJ-45 socket for Ethernet on front panel

1 x 5-pin terminal strip for digital inputs/outputs

Power supply 18 to 30 V DC via the basic device

Power consumption 3 W

Enclosure rating IP 65 (to DIN 40 050), built-in in the basic devices and push-and-pull plug (Harting)

Table 7-1: Technical data for the CMF 400 for Ethernet TCP/IP

Page 22: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Chapter 7 Operating Instructions

CMF400-3101 for Ethernet TCP/IP

22 © SICK AG · Division Auto Ident · Germany · All rights reserved 8010735/0000/2006-01-26

Technical Data

7.2 Accessories

EMC tested According to EN 55011, Class B/EN 61000-6-3

Temperature (operating/storage) 0 °C to +40 °C / −20 °C to +70 °C (+32 °F to +104 °F/−4 °F to +158 °F)

Max. rel. humidity 90 %, without condensation

Attachment With 2 threaded pins on spacer washer

Type CMF400-3101

Table 7-1: Technical data for the CMF 400 for Ethernet TCP/IP (contd.)

Part No. Description Wires Length Connection

6029064 Ethernet data cable for IP 65 installation, shielded (Cat. 5), with Harting

push-and-pull plug Harting (IP 65) and standard RJ-45 plug (IP 20).

8 1 m

(3.28 ft)

CMF400 to

Ethernet

2030490 Parameterization cable for connecting to the CMF400-3101, with 9-pin

D Sub plug and 3-pin Molex plug.

Required if the ComPro configuration software is used.

3 x

0.14 mm2

(26 AWG)

0.25 m

(0.82 ft)

PC to CMF400

2014054 RS 232 data cable (SICK null modem cable), dia. 5 mm, shielded, with two

9-pin D Sub sockets. Pin2 (RxD) and Pin 3 (TxD) crossed.

3 x

0.34 mm2

(22 AWG)

3 m

(9.84 ft)

PC to

CDM420/490

Table 7-2: Available accessories: cables

Page 23: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

Operating Instructions Chapter 8

CMF400-3101

Appendix

8010735/0000/2006-01-26 © SICK AG · Division Auto Ident · Germany · All rights reserved 23

8 Appendix

8.1 EC Declaration of Conformity

Fig. 8-1 shows the scaled down copy of the EC Declaration of Conformity (page 1).

Complete copy of EC Declaration of Conformity on request.

Fig. 8-1: Copy of the Declaration of Conformity (Page 1, scaled down)

Page 24: CMF400-3101 Fieldbus Gateway - SICK · CMF400-3101 Fieldbus Gateway. Operating Instructions ... TCP Transmission Control Protocol (RFC 793, RFC 896) BOOTP Bootstrap Protocol (RFC

SICK AG | Waldkirch/Reute | Germany | www.sick.com

AustraliaPhone +61 3 9497 4100 1800 33 48 02 – tollfreeE-Mail [email protected]

Belgium/LuxembourgPhone +32 (0)2 466 55 66E-Mail [email protected]

BrasilPhone +55 11 5091-4900E-Mail [email protected]

Ceská RepublikaPhone +420 2 57 91 18 50E-Mail [email protected]

ChinaPhone +852-2763 6966E-Mail [email protected]

DanmarkPhone +45 45 82 64 00E-Mail [email protected]

DeutschlandPhone +49 (0)2 11 53 01-270E-Mail [email protected]

EspañaPhone +34 93 480 31 00E-Mail [email protected]

FrancePhone +33 1 64 62 35 00E-Mail [email protected]

Great BritainPhone +44 (0)1727 831121E-Mail [email protected]

IndiaPhone +91–22–2822 7084E-Mail [email protected]

ItaliaPhone +39 02 27 40 93 19E-Mail [email protected]

JapanPhone +81 (0)3 3358 1341E-Mail [email protected]

NederlandsPhone +31 (0)30 229 25 44E-Mail [email protected]

Norge Phone +47 67 81 50 00E-Mail [email protected]

ÖsterreichPhone +43 (0)22 36 62 28 8-0E-Mail [email protected]

PolskaPhone +48 22 837 40 50E-Mail [email protected]

Republic of KoreaPhone +82-2 786 6321/4E-Mail [email protected]

Republika SlowenijaPhone +386 (0)1-47 69 990E-Mail [email protected]

RussiaPhone +7 95 775 05 30E-Mail [email protected]

SchweizPhone +41 41 619 29 39E-Mail [email protected]

SingaporePhone +65 6744 3732E-Mail [email protected]

SuomiPhone +358-9-25 15 800E-Mail [email protected]

SverigePhone +46 8 680 64 50E-Mail [email protected]

TaiwanPhone +886 2 2365-6292E-Mail [email protected]

TürkiyePhone +90 216 388 95 90 pbxE-Mail [email protected]

USA/Canada/MéxicoPhone +1(952) 941-6780 1 800-325-7425 – tollfreeE-Mail [email protected]

More representatives and agencies in all major industrial nations at www.sick.com

8010

735/

2006

-01-

26 •

5M

/TR

<PM

6.5/

FM7.

0/PD

F>/V

D .

Prin

ted

in G

erm

any

. Su

bjec

t to

chan

ge w

ithou

t not

ice

. Th

e sp

ecifi

ed p

rodu

ct fe

atur

es a

nd te

chni

cal d

ata

do n

ot re

pres

ent a

ny g

uara

ntee

. 0

5 Af

t int

55