FACTORY AUTOMATION Instruction Manual connection box C-Box 300
With regard to the supply of products, the current issue of the following document is applicable: The General Terms of Delivery for Products and Services of the Electrical Industry, published by the Central Association of the Electrical Industry (Zentralverband Elektrotechnik und Elektroindustrie (ZVEI) e.V.) in its most recent version as well as the supplementary clause: "Expanded reservation of proprietorship" We at Pepperl+Fuchs/VISOLUX recognize a duty to make a contribution to the future.
Date od issue 07/25/2003 Connection box C-BOX 300 Contents 1 Safety precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Safety notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 General View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 General features . . . . . . . . .
Passive connection box C-BOX 100 General information 5.5.4 Fragmentation and reassembling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.6 C-BOX PROFIBUS station address field . . . . . . . . . . . . . . . . . . . . . . . 30 5.7 SAP field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.8 Length field. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.9 Application data buffer . . . . . . .
Connection box C-BOX 300 Safety precautions 1 Safety precautions 1.1 Power supply Read this information before installing the product • This product is intended to be installed by Qualified Personnel only. The C-BOX 300 is intended to be supplied either by a UL Listed NEC Class 2 power source, or a UL Listed ITE Limited Power Source (LPS), rated 10 ... 30 VDC, minimum 0.5 A. 1.2 Safety notes Observe the general rules for PROFIBUS components when planning the C-BOX installation.
Connection box C-BOX 300 Safety precautions Bus connectors It is recommended to use only commercially available PROFIBUS connectors for connecting the bus. Cable shield Shielded cables are less sensitive to interference due to electromagnetic fields. With shielded cables, the interference currents are led to ground through the shielding rail, which is electrically connected to the case.
Connection box C-BOX 300 General View 2 General View 1 4 3 2 1 25-pin scanner connector 2 Cable glands 3 Cover screws (4) 4 PROFIBUS connector C-BOX 300 Date od issue 08/15/2003 Figure 2.1 Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group • Tel.: Germany (06 21) 7 76-0 • USA (330) 4 25 35 55 • Singapore 7 79 90 91 • Internet http://www.pepperl-fuchs.
Connection box C-BOX 300 General View 2 3 4 5 6 1 7 1 Configuration switch 4 Diagnostic LED 1 2 Power on LED 5 Diagnostic LED 2 3 Tx LED 6 Diagnostic LED 3 7 Node address selector Housing cover inside view Date od issue 08/15/2003 Figure 2.2 8 Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group • Tel.: Germany (06 21) 7 76-0 • USA (330) 4 25 35 55 • Singapore 7 79 90 91 • Internet http://www.pepperl-fuchs.
Connection box C-BOX 300 General View 4 5 6 7 8 3 2 9 1 1 Power on switch 6 SEND button 2 Chassis grounding selector 7 Auxiliary port connector 3 Spring clamp terminal blocks 8 not used 4 GET button 9 Warning LED 5 TEST button Housing base inside view Date od issue 08/15/2003 Figure 2.3 Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group • Tel.
Connection box C-BOX 300 General features 3 General features 3.1 Description The C-BOX 300 is a connection box without display. It can be used as an accessory of the P+F Scanners to perform the following functions: • Facilitate the connection of the scanner signals using a spring clamp connector. • Perform a conversion from RS232 to Profibus to connect a RS232 scanner to a Profibus network. • Get the scanner configuration and store it in memory. • Force the scanner to the Test operating mode.
Connection box C-BOX 300 Installation 4 Installation 4.1 Package contents Verify that the C-BOX 300 and all the parts supplied with the equipment are present and intact when opening the packaging; the list of parts includes: 1. 2. 3. C-BOX 300 2 mounting screws 1 adhesive label A CD-ROM with the required software and drivers comes separately with each delivery 4.
Connection box C-BOX 300 Installation 4.3 Mechanical installation The diagram below gives the overall dimensions of the C-BOX 300 and may be used for its installation. Figure 4.2 Mechanical dimensions C-BOX 300 can be installed to operate in different positions. The two screw holes inside the housing of the C-BOX 300 are for mechanical fixture (Figure 4.3). 1. 2. 12 Open the C-BOX 300 by unscrewing the 4 cover screws.
Connection box C-BOX 300 Installation Figure 4.3 4.4 Mounting the C-BOX 300 Electrical connections and setup The following figure shows the typical layout. PROFIBUS Master C-Box 300 Scanner TX DATA EXT TRIG GOOD READ POWER ON System wiring Figure 4.4 System layout Date od issue 08/15/2003 A PC can be connected to the C-BOX 300 (and consequently to the scanner auxiliary interface) through the internal 9-pin connector.
Connection box C-BOX 300 Installation the C-BOX 300 and the scanner. During this phase, requiring a few seconds, the warning LED is turned ON. Once the procedure had been completed successfully, the warning LED is turned OFF. After sucessful system check, close the C-BOX 300 using the 4 cover screws making sure the rubber seal is fitted correctly between the parts of the housing. 4.5 Power Supply Power is supplied to the C-BOX 300 through the pins provided on the spring clamp connector.
Connection box C-BOX 300 Installation Refer to the scanner Installation Manual for details. Pin 1, 3, 5 2, 4, 6 7, 8 9 ... 12, 20, 33, 34, 40 21 23 27 28 35 37 39 VB10, VB12, VB14 22, 24 25, 26, 29, 30, 31, 32 36 38 Description VS GND EARTH GROUND Reserved OUT1+ OUT2+ EXT TRIG+ EXT TRIGTXA RXA SGND OUT REF NC RTSA CTSA Pin 7 or 8 should be connected to the earth ground. 4.6 Chassis Grounding Jumper Settings The scanner chassis grounding method can be selected by positioning a jumper (see Figure 4.7).
Connection box C-BOX 300 Installation 4.7 Profibus Node Address Selection To interface the C-BOX 300 with a Profibus network, the Node Address should be set using the rotary switches placed in the cover inside. The valid address range is from 000 to 126. If an invalid value is detected (127-199) the C-BOX cannot communicate with the Profibus network and the green LED remains off. The Node Address can also be assigned through VisoSetup. Refer to Help on-Line. HUNDREDS Figure 4.8 4.
Connection box C-BOX 300 Installation 4.9 C-BOX 300 Configuration for Profibus DP Slave Node In order to setup the C-BOX 300, you need to install the function blocks in your PLC programming software and configure it. The procedure below can be generally applied for this purpose: 1. 2. 3. 4. Start the PROFIBUS configurator on the DP Master. The .GSD-file is extracted automatically with the installation of the VisoSetup software. It can be found under ...\Visosetup\CBox3x0. Load the .GSD file HMS_1810.
Connection box C-BOX 300 Installation 4.10 Configuration switch and 9-pin internal connector The 9-pin internal connector may have two different functions according to the position of the configuration switch. Figure 4.10 Configuration switch 9-pin male connector 4.10.1 Switch position "NORMAL OPERATION" (default): In this position, the C-BOX 300 is in the normal operating mode. It communicates with the scanner through the 9-pin internal connector and the scanner auxiliary serial interface.
Connection box C-BOX 300 Installation Pin 2 3 5 Name RX TX SGND 9-pin connector pinout Description C-BOX 300 Configuration C-BOX 300 Configuration Signal Ground When the C-BOX 300 configuration is completed, remember to replace the Configuration switch in the Normal Operation position. 4.11 OPERATING MODES With the C-BOX 300, three operating modes are possible: 4.11.
Connection box C-BOX 300 Installation The procedure to enable the GET/TEST/SEND function is the following: 1. 2. 3. Press both the buttons left and right simultaneously for at least one second; the warning LED turnes ON. Release the buttons. Press the left button corresponding to the GET function, the center button corresponding to the TEST function or the right button corresponding to the SEND function.
Connection box C-BOX 300 Installation In the C-BOX 300 the warning LED is repeated in the base. Warning LED Figure 4.13 LED Indicators in base The internal LEDs of the C-BOX 300 (see Figure 17) indicate the following: indicates the C-BOX 300 is connected to the power supply and the power switch is ON. WARNING (red): indicates a warning or error condition. It is ON when a connection procedure is in progress (the system is busy), during a GET/TEST/SEND procedure or during the Configuration Mode.
Connection box C-BOX 300 Installation 4.13 PROFIBUS connector (9-pin female external connector) To connect C-BOX 300 as a PROFIBUS DP Slave, use a standard PROFIBUS cable with a 9-pin male connector (see DIN 19245 part 1) and plug it into the 9-pin female external connector. Figure 4.14 PROFIBUS connector pinout 9-pin external female connector pinout Pin Name Description 1 N.C. not connected 2 N.C.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation 5 The C-BOX PROFIBUS protocol implementation 5.1 Definitions In the following description we will use the following definitions: • Input field: is the set of master inputs that can be modified by the specific slave • Output field: is the set of master outputs that can be read by the specific slave. • MaxInBytes: is the number of input bytes shared by the master and the specific slave.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation 5.3 Dynamic PROFIBUS Driver (DPD) The Dynamic PROFIBUS Driver (DPD) is a layer that is built upon the intrinsic DP data exchange mechanism. Such a layer is required because the intrinsic DP PROFIBUS mechanism is not message oriented (a service that otherwise might be easily obtained if the PROFIBUS FDL layer were available). PROFIBUS DP could be better seen as a method to share memory between remote stations.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation • byte 2: Service Access Point Field, used to distinguish among different services but also to provide future expandability. Since this SAP definition is introduced by the Datalogic PROFIBUS Driver, it must not be confused with the PROFIBUS SAP that is defined by the international standard. • byte 3: Length Field, that contains the number of bytes used by the application layer.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation More precisely: Function of the IN[0] byte: IN[0].bit0 = TxBufferFull, toggles when new data is available on IN[1] .. IN[Nin] input area IN[0].bit1 = RxBufferEmpty, toggles when rx block has been read on OUT[1] .. OUT[ Nout] IN[0].bit2 = Resync Acknowledge, set to 1 as an acknowledge to a resync request. With this bit, the master can detect a slave is on line. IN[0].
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation MASTER Profibus DP 0 tx_buffer_full (bit 0) rx_buffer_empty (bit 1) SLAVE 0 1 1 2 2 IN handshake (byte 0) tx buffer (byte 1 ... NIN) tx data NIN NIN tx_buffer_empty (bit 0) rx_buffer_full (bit 1) 0 0 1 1 2 2 handshake (byte 0) rx buffer (byte 1 ... NOUT) OUT rx data NOUT Figure 5.3 NOUT Message exchange with flow control 5.5.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation 5.5.2 Data transmission master --> slave The receive state machine is shown to understand how a single block is transmitted by the master and received by a slave. This protocol guarantees a basic flow control mechanism from master to slave. First bit shown in transition --> OUT[0].1 / RX Buffer Full = data written by master Second bit shown in transition --> IN[0].
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation 5.5.4 Fragmentation and reassembling When application data cannot be contained into the related Exchange Area buffer, a fragmentation process should be activated. This is always done at the C-BOX side. C-BOX is not able to manage application buffers longer than 256 bytes (this is true both when it fragments and when it reassembles). The fragmentation process is initiated by setting the More Bit (bit 3) of the related buffer to 1.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation 5.6 C-BOX PROFIBUS station address field The INPUT and OUTPUT buffers keep the information of the selected PROFIBUS address in this field. 5.7 SAP field SAP (Service Access Point) is an identifier that is used to share the same communication channel between processes of two remote stations. This allows splitting the single PROFIBUS DP service into different services.
Connection box C-BOX 300 The C-BOX PROFIBUS protocol implementation SAP=2) will permit application events to be queued in the opposite direction, waiting for use by the C-BOX application layer. The queues are sized in the following way: • X elements of 32 bytes each for input queue (flow from C-BOX to the Master station); • Y elements of 32 bytes each for output queue (flow from the Master station to CBOX). The number of 32-byte elements X and Y are application dependent.
Connection box C-BOX 300 C-BOX data collection using minimum flow control Application data areas are to be formatted as follows: Request Format Command Flush data buffer byte 4 '[' byte 5 'F' Response Format depending on the Retcode Retcode byte 4 byte 5 Command accepted 'A' '' Command rejected 'C' '' All other bytes are insignificantly. 6 C-BOX data collection using minimum flow control Some examples of the Datalogic PROFIBUS Driver (DPD) managing C-BOX are described for the following cases.
Connection box C-BOX 300 C-BOX data collection using minimum flow control 6.2 What to Implement As a result of the previous definitions we have that: 1. 2. 3. 4. 5. 6. 7. 6.3 C-BOX toggles the first bit of the first byte of the input area whenever a new barcode event is inserted in the input area; this will happen if and only if the previous barcode event had been acknowledged by the Master.
Connection box C-BOX 300 C-BOX data collection using minimum flow control .... // Master receives and acknowledges the barcode event "0123456"; Input Area 0x01 0x03 0x00 0x07 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x00 0x00 0x00 0x00 0x00 Output Area 0x01 0x03 0x00 0x00 0x00 0x00 0x00 0x00 ..... // C-BOX sends the barcode string equal to "5678" received from the scanner.
Connection box C-BOX 300 C-BOX data collection using minimum flow control Input Area 0x00 0x03 0x00 0x03 0x44 0x50 0x2B 0x46 0x00 0x00 0x00 Output Area 0x00 0x03 0x00 0x00 0x00 0x00 0x00 0x00 Host command sent to C-BOX - C-BOX reply to host request ....(continued from previous exchange) // Master sends a 0x1B 0x02 0x31 0x10 command (as a sample) to the C-BOX. Input Area 0x00 0x03 0x00 0x03 0x44 0x50 0x2B 0x46 0x00 0x00 0x00 Output Area 0x02 0x03 0x00 0x04 0x1B 0x02 0x31 0x10 ....
Connection box C-BOX 300 C-BOX data collection using minimum flow control 0x02 0x03 0x02 0x04 0x1B 0x58 0x0D 0x0A 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Output Area 0x03 0x03 0x02 0x03 0x1B 0x5B 0x41 0x00 .... // Master acknowledges the Exit Host mode string.
Connection box C-BOX 300 TECHNICAL FEATURES 7 TECHNICAL FEATURES Electrical Features Power Supply voltage Power consumption max. User interface LED indicators Physical features Mechanical dimensions Weight Software features Parameter storage PROFIBUS interface Interface type Data transfer rate [bit/s] Environmental features Operating temperature Storage temperature Humidity max. Vibration resistance Shock resistance Protection class 10 V DC ... 30 V DC 2.
Date od issue 07/25/2003 Connection box C-BOX 300 TECHNICAL FEATURES 38 Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group • Tel.: Germany (06 21) 7 76-0 • USA (330) 4 25 35 55 • Singapore 7 79 90 91 • Internet http://www.pepperl-fuchs.
With regard to the supply of products, the current issue of the following document is applicable: The General Terms of Delivery for Products and Services of the Electrical Industry, published by the Central Association of the Electrical Industry (Zentralverband Elektrotechnik und Elektroindustrie (ZVEI) e.V.) in its most recent version as well as the supplementary clause: "Expanded reservation of proprietorship" We at Pepperl+Fuchs/VISOLUX recognize a duty to make a contribution to the future.
gn f d e worl of autom ati on Si s al th or www.pepperl-fuchs.com Worldwide Headquarters Pepperl+Fuchs GmbH · Königsberger Allee 87 68307 Mannheim · Germany Tel. +49 621 776-0 · Fax +49 621 776-1000 e-mail: info@de.pepperl-fuchs.com Asia Pacific Headquarters Pepperl+Fuchs Pte Ltd. · P+F Building 18 Ayer Rajah Crescent · Singapore 139942 Tel. +65 67799091 · Fax +65 68731637 e-mail: sales@sg.pepperl-fuchs.com USA Headquarters Pepperl+Fuchs Inc.