Contents
- 1. Manual 1
- 2. Manual 2
Manual 2
S60_2-019_828318_0303-e mit CRC.p65 Manual Electronic Identification Systems BIS Processor BIS S-60_2 Profibus DP Deutsch – bitte wenden! No. 828 318 D/E • Edition 0303 Subject to modification. http://www.balluff.de Balluff GmbH Schurwaldstrasse 9 73765 Neuhausen a.d.F. Germany Phone +49 (0) 71 58/1 73-0 Fax +49 (0) 71 58/50 10 E-Mail: balluff@balluff.de S60_2-019_828318_0303-e mit CRC.p65 Contents Safety Considerations ................................................................................................................. 4 Introduction, BIS S Identification Systems .............................................................................. 5/6 BIS S-60_2 Processor, Basic knowledge for application ........................................................ 7/8 BUS interface PROFIBUS-DP ................................................................................................ 9-11 Function Description: Communication with the processor .................................................... 12 Input and Output Buffers ................................................................ 13/14 Output buffer, configuration and explanation ................................ 15-18 Input buffer, configuration and explanation ................................... 19-21 Parametering the BIS S-60_2 processor ........................................ 22-24 Processing data carriers ................................................................. 25-31 Reading and writing ............................................................................ 25 Codetag Present .................................................................................. 26 Special characteristics ........................................................................ 26 Auto-Read ........................................................................................... 26 Reading and writing in dynamic mode ............................................... 27 Reading and writing with simultaneous data transmission ................ 27 Mixed Data Access ........................................................................ 28-30 CRC initialization ................................................................................. 31 Examples for protocol sequence ................................................... 32-47 Read/Write Times ................................................................................................................ 48/49 LED Display .............................................................................................................................. 50 BIS S-6002 BIS S-6022 Mounting the Processor .............................................................. 51 ....................................... 61 Opening the Processor / Interface information ........................... 52 ....................................... 62 Interface Information / Wiring Diagrams ................................. 52-55 ..................................62-65 Changing the EEPROM ............................................................... 56 ....................................... 66 Technical Data ........................................................................ 57/58 .................................. 67/68 Ordering Information ............................................................... 59/60 .................................. 69/70 Appendix, ASCII Table .............................................................................................................. 71 Safety Considerations Approved Operation Series BIS S-60_2 processors along with the other BIS S system components comprise an identification system and may only be used for this purpose in an industrial environment in conformity with Class A of the EMC Law. Installation and Operation Installation and operation should be carried out by trained personnel only. Unauthorized work and improper use will void the warranty and liability. When installing the processor, follow the chapters containing the wiring diagrams closely. Special care is required when connecting the processor to external controllers, in particular with respect to selection and polarity of the signals and power supply. Only approved power supplies may be used for powering the processor. See chapter 'Technical Data' for details. Use and Checking Prevailing safety regulations must be adhered to when using the identification system. In particular, steps must be taken to ensure that a failure of or defect in the identification system does not result in hazards to persons or equipment. This includes maintaining the specified ambient conditions and regular testing for functionality of the identification system including all its associated components. Fault Conditions Should there ever be indications that the identification system is not working properly, it should be taken out of commission and secured from unauthorized use. Scope This manual applies to processors in the series BIS S-6002-019-050-03-ST11 and BIS S-6022-019-050-03-ST14. S60_2-019_828318_0303-e mit CRC.p65 Introduction BIS S Identification Systems This manual is designed to assist the user in setting up the control program and installing and starting up the components of the BIS S Identification System, and to assure rapid, troublefree operation. Principles The BIS S Identification Systems belongs in the category of non-contact systems for reading and writing. This dual function permits applications for not only transporting information in fixed-programmed Data carriers, but also for gathering and passing along up-to-date information as well. ☞ Applications If 2 read/write heads are connected to a BIS S-60_2 processor, both heads can be operated independently of each other. This means for example that you can read a Data carrier from one head while writing to another Data carrier at the other head. Some of the notable areas of application include – for controlling material flow in production processes (e.g. in model-specific processes), for workpiece conveying in transfer lines, in data gathering for quality assurance, for gathering safety-related data, – in equipment organization; – in storage systems for monitoring inventory movement; – in transporting and conveying systems; – in waste management for quantity-based fee assessment. Introduction BIS S Identification Systems System Components The main components of the BIS S Identification Systems are: – Processor, – Read/Write Heads and – Data carriers Configuration with BIS S-6002 and BIS S-6022 processor PROFIBUS-DP Processor BIS S-6002 BIS S-3_ _ Schematic representation of an Identification System (example) Processor BIS S-3_ _ Read/write head BIS S-6022 BIS S-3_ _ Data carriers BIS S-1_ _-... BIS S-3_ _ S60_2-019_828318_0303-e mit CRC.p65 BIS S-60_2 Processor Basic knowledge for application Selecting System Components The BIS S-6002 processor has a plastic housing. The BIS S-6022 processor has a metal housing. Connection is made through round connectors. Two read/write heads can be cable connected. Series BIS S-60_2 processors have in addition a digital input. The input has various functions depending on the configuration (see Parametering). The read/write distances depend on which data carriers are used. Additional information on the read/write heads in series BIS S-3_ _ including all the possible data carrier/read-write head combinations can be found in the manuals for the respective read/write heads. The system components are electrically supplied by the processor. The data carrier represents a free-standing unit and needs no line-carried power. It receives its energy from the read/write head. The latter constantly sends out a carrier signal which supplies the code head as soon as the required distance between the two is reached. The read/write operation takes place during this phase. Reading and writing may be dynamic or static. BIS S-60_2 Processor Basic knowledge for application Control Function The processor writes data from the host system to the Data carrier or reads data from the tag through the read/write head and prepares it for the host system. Host systems may include: – a host computer (e.g. industrial PC) or – a programmable logic controller (PLC) When sending data between the read/write head and the Data carrier a procedure is required for recognizing whether the data were correctly read or written. Data checking The processor is supplied with standard Balluff procedure of double reading and comparing. In addition to this procedure a second alternative is available: CRC_16 data checking. Here a test code is written to the Data carrier, allowing data to be checked for validity at any time or location. Advantages of CRC_16 Data checking even during the non-active phase (CT outside read/write head zone). Shorter read times since each page is read only once. Advantages of double reading No bytes on the data carrier need to be reserved for storing a check code. Shorter write times since no CRC needs to be written. Since both variations have their advantages depending on the application, the user is free to select which method of data checking he wishes to use (see Parametering on 23). ☞ It is not permitted to operate the system using both check procedures! S60_2-019_828318_0303-e mit CRC.p65 BUS interface PROFIBUS-DP Communication between the BIS S-60_2 processor and the host system is via PROFIBUS-DP. PROFIBUS-DP The PROFIBUS-DP system consists of the components: – the bus master and – the bus modules/slaves (here the BIS S-60_2 processor). ☞ Important hints for use with PLC: In some control systems the PROFIBUS-DP data area is not synchronously transmitted with the updating of the input/output content. If more than 2 bytes of data are sent, a mechanism must be used which guarantees that the data in the PLC and the data in the BIS S are always identical! 1st alternative: Synchronous data transmission as a setting on the Master In this method the bus Master ensures that all the data necessary for the respective Slave are always sent contiguously. There is usually a special software function in the PLC which likewise controls access between the PLC and bus Master so that data are always sent contiguously. 2nd alternative: Set 2nd bit header Data exchange between PLC and BIS is controlled by the so-called bit header. This is always the first byte of the respective read/write head in the data buffer. This bit header exists both in the input range (data from BIS to the PLC) and in the output range (data from the PLC to the BIS). lIf this bit header is also sent as the last byte, a comparison of these two bytes can be used to guarantee the consistency of the transmitted data. In this method the PLC cycle is unaffected nor is the bus access time changed. All that is required is that a byte in the data buffer be used for the 2nd bit header instead of for user data. This 2nd alternative is the Balluff recommended setting (factory default). 10 BUS interface PROFIBUS-DP Unit's Master Data For the correct parametering of the bus master as per type, CD ROM, containing the unit’s master data in the form of a GSD file is included with the BIS S-60_2 processor. Station Address The Processor BIS S-60_2 is delivered with the station address 126. This has to be set individually before using in a bus system. See information on 11. Input/Output Buffer An input buffer and an output buffer are used for the data exchange with the control system. The size of these buffers has to be configured via the master. ☞ Parametering Bytes User-Parameter Bytes ☞ 10 The possible settings are entered in the GSD file (and Type file). A minimum of 4 and a maximum of 128 bytes can be accommodated. However, it must be an even number. Besides, in the case of the BIS S-60_2 processor, there are 6 further bytes (User-Parameter Bytes) which have to be set while parametering. The significance of the 6 bytes for parametering is described starting from 22. The preset is stored in the GSD file. S60_2-019_828318_0303-e mit CRC.p65 11 BUS interface PROFIBUS-DP Station Address setting The station address under which the unit is accessed on the bus can be assigned through the slide switch S1. Each address shall be assigned only once. The slide switch S1 is binary coded. The setting of the station address is carried out according to the scheme shown in the table. Switch position: no = left, yes = right. The address 85 is set in the following figure. Head2 Head1 S1 on on on on on on on on ➪ Station Address Head 2 Slide switch S1 26 25 24 Head 1 no yes 23 22 21 20 yes not allowed no no no no no no no no no no no yes no no no no no no yes yes no no no no yes no no no no no no yes no yes yes no yes no yes no yes 123 yes yes yes yes no yes yes 124 yes yes yes yes yes no no 125 yes yes yes yes yes no yes 126 yes yes yes yes yes yes no ... 85 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 ... on on on S2 always on no Slide switch S1 (with cover removed) 127 X1 X2 not allowed X3 To open the cover of the processor, see 52 for BIS S-6002 or 62 for BIS S-6022. 11 12 Function Description Communication with the processor Basic Procedure Communication between the host system and the processor takes place using a fixed protocol sequence. Data integrity from the control to the processor and vice-versa is indicated by a control bit. This bit is used to implement a handshake between the control and the processor. Following is a simplified representation of the sequence of a job sent from the control to the processor: 1. The control sends a command designator to the processor together with the associated command parameters and sets a bit (AV bit). This bit indicates to the processor that the transmitted data are valid and that the job is now beginning. 2. The processor takes the job and sets a bit (AA bit), which indicates this to the control. 3. If an additional exchange of data between the control and the processor is required to carry out the job, each uses a bit (TI bit and TO bit) to indicate that the control / processor is now ready for additional data exchange or has accepted the received data. 4. Once the processor has carried out the job correctly, it sets a bit (AE bit). 5. Once the control has accepted all the important data, it indicates this to the processor by resetting the bit that was set at the beginning (AV bit). 6. The processor now in turn sets all the control bits that were set during the sequence (AA bit, AE bit) and is ready for the next job. Please see also 25...31 and the examples on 32...47. 12 S60_2-019_828318_0303-e mit CRC.p65 13 Function Description Input and Output Buffers Input and Output Buffers In order to transmit commands and data between the BIS S-60_2 and the host system, the latter must prepare two fields. These two fields are: – the output buffer for the control commands which are sent to the BIS Identification System and for the data to be written. – the input buffer for the data to be read and for the designators and error codes which come from the BIS Identification System. The possible setting values are stored in the GSD file. The buffer size can be selected between 4 and 128 bytes in steps of 2 bytes. This must be given by the master during parametering. The total buffer size is divided into 2 ranges: Buffer range 1 for Read/Write Head 1; size is specified in paramter byte 6. Buffer range 2 for Read/Write Head 2; size = total buffer size – buffer size of Read/Write Head 1. See 14 for example. ☞ Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages If a buffer size of less than 8 bytes is set for a read/write head, a read/write request can be carried out without specifying the start address and the number of bytes. Automatic reading for Codetag present (see 26) remains active. This permits fast reading of small data quantities without placing an unnecessary load on the bus. Buffer size – 1 = number of bytes read without double bit header; Buffer size – 2 = number of bytes read with double bit header. 14 Function Description Input and Output Buffers Input and Output Buffers (continued) Example: The 82 bytes for the total buffer need to be distributed. An input/output buffer of 46 bytes is assigned to Read/Write Head 1. This results in an input/output buffer of 36 bytes for Read/Write Head 2. Procedure: The buffer size for Read/Write Head 1 is set to 46 bytes. This means using the parameter byte 6 to enter Hex value 2E (corresponds to 46 decimal), which corresponds to binary 00101110. PLC Organisation: The buffer range starts at input byte IB 32 and output byte OB 32. Result: Read/Write Head 1: (R/W 1) Read/Write Head 2: (R/W 2) ☞ Subaddress 00 Input buffer Output buffer IB 32 and OB 32 IB 32 to IB 77 OB 32 to OB 77 Subaddress 00 Input buffer Output buffer IB 78 and OB 78 IB 78 to IB 113 OB 78 to OB 113 Note that these buffers can be in two different sequences depending on the type of control. The following description is based on sequence 1! Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages 14 IB 0 / OB 0 PLC buffer Buffer for R/W 1 Buffer for R/W 2 Sequence 1 Sequence 2 Subaddress 00 01 02 03 04 05 06 07 Subaddress 01 00 03 02 05 04 07 06 13 S60_2-019_828318_0303-e mit CRC.p65 15 Function Description Output buffer, configuration and explanation Configuration of the output buffer for one (1) read/write head The last byte can be arranged as a 2nd bit header through parametering (default). Bit No. Subaddress 00Hex = Bit Header 01Hex 02Hex 03Hex 04Hex 05Hex 06Hex ... Last Byte Description of Output Buffer SubBit address Name CT 00Hex Bit Header TI GR Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages AV CT TI Command Designator Start Address (Low Byte) or Program No. Start Address (High Byte) No. of Bytes (Low Byte) No. of Bytes (High Byte) Data Data 2nd Bit Header (as above) Meaning GR or or or or or Data Data Data Data Data AV or Data Bit Name Function Description Data carrier type Select Data carrier type: for Data carrier type: 64 Byte block size BIS S-1_ _-32, -42 Toggle-Bit In Shows during a read action that the controller is ready for additional data. Ground state Causes the BIS system to go to the ground state for the respective read/write head. Any pending command is cancelled. Command Signals the identification system that a command for the respective read/write head is present. (continued next ) 15 16 Function Description Output buffer, configuration and explanation Description of Output Buffer (continued) Subaddress Meaning 01Hex Command designator No command present 00Hex Read data carrier 01Hex Write to data carrier 02Hex Store program in the EEPROM for the Mixed Data Access 06HEX function Store the start address for the Auto-Read function in the EEPROM 07HEX Initialize the CRC16 data check 12HEX Read for Mixed Data Access function 21HEX (corresponding to the program stored in the EEPROM) Write for Mixed Data Access function 22HEX (corresponding to the program stored in the EEPROM) Data for writing to the data carrier Program data for writing to the EEPROM. or: or: (continued next ) Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages 16 Function Description S60_2-019_828318_0303-e mit CRC.p65 17 Function Description Output buffer, configuration and explanation Description of Output Buffer (continued) Subaddress Meaning Function Description 02Hex Start address (Low Byte) Start address (Low Byte) Address at which reading from or writing to the data carrier begins. (The Low Byte includes the address range from 0 to 255). Address for the Auto-Read function, starting at which the code tag is to be read. The value is stored in the EEPROM. (The Low Byte covers the address range from 0 to 255). Number of the program to be stored in the EEPROM in conjunction with command ID 06Hex for Mixed Data Access function (values between 01Hex and 0AHex are allowed!). Number of the program stored in the EEPROM for read or write operations in conjunction with command ID 21Hex or 22Hex for the Mixed Data Access function. for writing to the data carrier for writing to the EEPROM. or: or: Program No or: Program No. or: or: Data Program data 03Hex or: Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages or: or: Start address (High Byte) Start address (High Byte) Data Program data Address for reading from or writing to the Data carrier (the High Byte is additionally used for the address range from 256 to 16.383). Address for the Auto-Read function, starting at which the code tag is to be read. The value is stored in the EEPROM (the High Byte is also required for the address range from 256 to 16.383). for writing to the Data carrier for writing to the EEPROM. (continued next ) 18 Function Description Output buffer, configuration and explanation Description of Output Buffer (continued) Subaddress Meaning Function Description 04Hex No. of bytes (Low Byte) Data Program data Number of bytes to read or write beginning with the start address (the Low Byte includes from 1 to 256 bytes). for writing to the data carrier for writing to the EEPROM. No. of bytes (High Byte) or: or: 05Hex or: or: Data Program data Number of bytes to read or write beginning with the start address (the High Byte is additionally used for the range between 257 and 16.384 bytes). for writing to the data carrier for writing to the EEPROM. 06Hex or: Data Program data for writing to the data carrier for writing to the EEPROM. ... Data Program data for writing to the data carrier for writing to the EEPROM. 2nd Bit header Data Program data The data are valid if the 1st and 2nd bit header are identical. for writing to the data carrier for writing to the EEPROM. or: Last byte Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages 18 or: or: 17 S60_2-019_828318_0303-e mit CRC.p65 19 Function Description Input buffer, configuration and explanation Configuration of the input buffer for one (1) read/write head The last byte can be arranged as a 2nd bit header through parametering (default). Bit No. BB HF TO IN AF AE AA Subaddress 00 Hex = Bit Header 01Hex Error Code 02Hex Data 03Hex Data 04Hex Data 05Hex Data 06Hex Data ... Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages CP Bit Name Data Data Last byte Description of Input Buffer or 2nd Bit Header (as above) or Data Subaddress Bit Meaning Name Function Description 00Hex BB Ready The BIS Identification System is in the Ready state. Head Error Cable break from read/write head or no read/write head connected. Toggle-Bit Out for read: BIS has new/additional data ready. for write: BIS is ready to accept new/additional data. Bit Header HF TO (continued on next ) 19 20 Function Description Input buffer, configuration and explanation Description of Input Buffer (continued) Subaddress Bit Meaning Name 00Hex (continued) Bit Header IN Input Function Description If the parameter "Input IN" is 1, this bit indicates the state of the Input. AF Command Error The command was incorrectly processed or aborted. AE Command end The command was finished without error. AA Command start The command was recognized and started. CP Codetag Present Data carrier present within the active zone of the read/write head. In addition to the CP bit, the output signal CT present is available. This allows you to process the presence of a data carrier directly as a hardware signal. Subaddress Meaning 01Hex Error code Error number is entered if command was incorrectly processed or aborted. Only valid with AF bit! No error. Reading or writing not possible because no data carrier is present in the active zone of a read/write head. Read error. 02Hex Data carrier was removed from the active zone of the read/write 03Hex head while it was being read. Write error. 04Hex (continued on next ) 00Hex 01Hex Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages 20 Function Description S60_2-019_828318_0303-e mit CRC.p65 21 Function Description Input buffer, configuration and explanation Description of Input Buffer (continued) Subaddress Meaning 01Hex Error code (continued) Data carrier was removed from the active zone of the read/write 05Hex head while it was being written. AV bit is set but the command designator is missing or invalid. 07Hex or: Number of bytes is 00Hex. Cable break to select read/write head, or head not connected. 09Hex The EEPROM cannot be read/programmed. 0CHex 0DHex Communication with the read/write head. The CRC of the read data does not coincide with the CRC of 0EHex the data carrier. Contents of the 1st and 2nd bit header (1st and last bytes) of 0FHex the output buffers are not identical (2nd bit header must be served). Addressing of the read/write job is outside the memory range of 20Hex the data carrier. Invoking of a function which is not possible for the data carrier 21Hex which is in front of the read/write head. Data Data which was read from the data carrier. or: Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages Function Description 02Hex Data Data which was read from the data carrier. ... Data Data which was read from the data carrier. 2nd Bit header The data are valid if the 1st and 2nd bit headers are in agreement. Data which was read from the data carrier. Last byte or: Data 21 22 Function Description Parametering the BIS S-60_2 processor Parameters, Overview Please note the basic procedure on 12 and 25...31 and the examples 32...47. on pages 22 There are 6 user parameter bytes stored on the Profibus master that can be used to activate and deactivate various functions. Setting is done directly by linking a device to the Profibus master. The parameter default settings are stored in the GSD file. – CRC_16 data check: If this function is activated, the correctness of the read or written data is ensured by a CRC_16 data check (see 8). – Simultaneous data transmission for both read/write heads: With simultaneous data transmission shorter read/write times can be achieved depending on the amount of data to be read/written and the type of controller. – Dynamic operation on read/write head 1 or 2: If dynamic operation is parametered, a read/write job can be sent even though there is no Data carrier in the active zone of the head. As soon as a Data carrier passes by the head, the command is immediately carried out. – "Auto-Read” for read/write head 1 or 2: If this function is activated, the processor reads out the first (max. 31) bytes from the Data carrier starting at a defined start address as soon as the tag enters the active zone of the read/write head. The start address must first have been stored in the processor’s EEPROM with the command ID 07Hex. – 2nd bit header at end of in- and output buffer: The 2nd bit header (factory setting) prevents data from being accepted by the bus as long as it is not fully updated. – Display state of the digital input in the bit header of the input buffer: If this function is activated, the IN-bit displays the state of the digital input of the processor: IN = 0 Õ digital input low; IN = 1 Õ digital input high – Reset BIS S-60_2 processor through the digital input: If this function is activated, the processor is reset when the digital input is set to high. S60_2-019_828318_0303-e mit CRC.p65 23 Function Description Parametering, Parametering Bytes Parametering Bytes User-Parameter Bytes For parametering all 6 bytes must always be transferred in Hex. Only the bits mentioned may be changed. No guaranty will be given for the proper functioning of the BIS S-60_2 if any of the other bits are changed. The default values (factory setting) for the 6 bytes are: Hex Binary These are used for configuration: 1st byte 00 00000000 2nd byte 80 10000000 bit 3 bit 5 3rd byte 00 00000000 bit 4 bit 5 4th byte 82 10000010 5th byte 00 00000000 bit 7 bit 2 bit 8 bit 4 bit 5 6th byte 02 00000010 bit 1...8 The bits which serve for parametering have the following functions: Having the following Activate CRC-16 data checking functions: 1st byte, bit 5, Bit state: 0 = no 1 = yes ☞ 1st byte, bit 3, Activate simultaneous data transmission for both read/write heads 2nd byte, bit 5, Dynamic mode on read/write head 1 (for effects on read/write times, see 2nd byte, bit 4, Activate Auto-Read function starting at specified address after CT-Present for Head 1 (the number of bytes read depends on the selected buffer size minus bit headers for Head 1) 4th byte, bit 8, Arrange a 2nd bit header at the end of the input and output buffers 48/49) If this function is selected, then the minimum size of both buffers is 4 words (8 bytes) each. Please note the basic procedure on 12 and 25...31 and the examples on pages 32...47. 23 24 Function Description Parametering, Parametering Bytes Parametering Bytes User-Parameter Bytes (continued) Bit state: 0 = no 1 = yes 4th byte, bit 7, 0 = no 1 = yes Display state of the digital input in the bit header of the input buffers: 4th byte, bit 2, 0 = no 1 = yes Reset the BIS S-60_2 processor through the digital input: 5th byte, bit 5 Dynamic mode on read/write head 2 (for effects on read/write times, see 5th byte, bit 4 Activate Auto-Read function for Head 2 starting at specified address after CT-Present (the number of bytes read depends on the selected buffer size minus bit headers for Head 2) 6th byte, bit 1...8 No. of bytes in input and output buffer which shall be used for read/write head 1, see example on 14 Input is Low: Input is High: Input is Low: Input is High: "IN" in the bit header of the input buffers = 0. "IN" in the bit header of the input buffers = 1. Do not reset. Reset. 48/49) The specification for the input and output buffer on the Master applies to both read/write heads, i.e. this buffer must be divided for both heads. The specification is done in Hex format and must be in a range between 02Hex and 80Hex (128 dec.). ☞ If only one read/write head (Head 1) will be used, you may enter the same value here as for the total buffer size. An entry of less than 2 bytes results in an undefined state. Please note the basic procedure on 24 12 and 25...31 and the examples on pages 32...47. S60_2-019_828318_0303-e mit CRC.p65 25 Function Description Processing data carriers Reading and writing To carry out a read or write job, the Data carrier must be located in the active zone of the read/ write head. A read/write job has the following sequence (see examples on 32ff): 1. The host sends to the output buffer: – the command designator to subaddress 01Hex, – the start address for reading or writing to subaddress 02HEX/03HEX, – the number of bytes for reading or writing to subaddress 04HEX/05HEX, – the CT bit in the bit header according to the Data carrier type (block size), – and sets the AV bit in the bit header to high. 2. The processor: – takes the request (AA in the bit header of the input buffer to high), – begins to transport the data; read = from data carrier to input buffer, write = from output buffer to data carrier. (Larger data quantities are sent in blocks block size with 2nd bit header = buffer size – 2), block size without 2nd bit header = buffer size – 1). The toggle bits in the two bit headers are used as a kind of handshaking between the host and the BIS S-60_2 processor. 3. The processor has processed the command correctly (AE bit in the bit header of the input buffer). If an error occurred during execution of the command, an error number will be written to subaddress 01Hex of the input buffer and the AF bit in the bit header of the input buffer will be set. 25 26 Function Description Processing data carriers Codetag Present ☞ As soon as the data carrier enters the active one of the read/write head, the processor indicates this by setting the CP bit (Codetag Present). To accelerate the reading of small amounts of data, the ID system makes the first bytes of the data carrier available in the input buffer of the respective read/write head as soon as the tag is detected (30 bytes with 2nd bit header, 31 bites without 2nd bit header, or less if the buffer size has been set smaller). The data are only valid after the rising edge of the CP bit in the bit header of the input buffer. They remain valid until the falling edge of the CP bit, or until the controller issues a new job. Special characteristics To adjust the read/write functions to the numerous possible applications, a few unique features have been implemented that the user can select and set when parametering or programming the processor. These are as follows: Auto-Read If the Auto-Read function is activated, the data are read as soon as a data carrier is recognized. No command from the controller is required. Since there is an in- and output buffer for each read/write head, the start address must be specified for each head using the command designator 07Hex. The start addresses may be different. The number of bytes read is determined by the selected size of the input buffer, which is distributed over both heads when 2 are used. This distinguishes the Auto-Read function from the standard setting for automatic reading, which always starts at Address 0 and includes a maximum number of 30 bytes with 2nd bit header or 31 bytes without 2nd bit header (or less if the buffer size has been set smaller). 26 S60_2-019_828318_0303-e mit CRC.p65 27 Function Description Processing data carriers Reading and writing in dynamic mode In normal operation a read/write job is rejected by the BIS S-60_2 processor by setting the AF bit and an error number if there is no data carrier in the active zone of the read/write head. If dynamic mode is configured, the processor accepts the read/write job and stores it. When a data carrier is recognized, the stored job is carried out. Reading and writing with simultaneous data transmission Reading without simultaneous data transmission: In the case of a read job the processor first reads our all requested data from the data carrier after receiving the start address and the desired number of bytes, and then sets the AE bit. Then the data read from the data carrier are written to the input buffer. In the case of larger data amounts this is done in blocks, controlled by the handshake with the toggle bits as described on 25. Reading with simultaneous data transmission: In the case of a read job the processor begins by transmitting the data into the input buffer as soon as the first 30 bytes (with 2nd bit header, or 31 bytes without 2nd bit header, or less if the buffer size was set smaller) have been read from the data carrier beginning with the start address, and indicates this by inverting the TO bit. As soon as the controller inverts the TI bit, the processor sends the data, which have in the meantime been read, to the input buffer. This is repeated until the processor has read out all the desired data from the data carrier. Now the processor sets the AE bit and outputs the remaining data on the input buffer. Writing without simultaneous data transmission: In the case of a write job the processor waits until it has received all the data that need to be written from the controller. Only then are the data written to the data carrier as described on 25. Writing with simultaneous data transmission: In the case of a write job the processor begins to write the data to the data carrier as soon as it has received the first data to be written from the controller’s output buffer. Once all the data have been written to the data carrier, the AE bit is set. 27 28 Function Description Processing data carriers Mixed Data Access Small read/write programs can be stored in the BIS S-60_2 processor’s EEPROM. The Mixed Data Access function is useful when the required information is stored on the data carrier at various addresses. This function makes it possible to read out this “mixed”, i.e. noncontiguously stored data from the data carrier in a single procedure and using just one command. Up to 10 programs with up to 25 instructions can be stored. Each program instruction contains a “start address” and a “number of bytes” specification. The amount of data for reading may not exceed 2 kB. Storing a program: The command identifier 06Hex is used to send the read/write program to the BIS S-60_2 processor. One program per command can be stored. All 25 program records plus an additional 2 bytes with FFHexFFHex as a terminator must always be sent. This means a total of 104 bytes of information per program must be sent (including the command identifier and program number). ☞ The individual program records must all be contiguous. They must be sent one after the other and be terminated with FFHexFFHex as a terminator. It is recommended that the remaining, unused memory sector be filled with FFHexFFHex. If an address range is selected twice, the data will also be output twice. 28 S60_2-019_828318_0303-e mit CRC.p65 29 Function Description Processing data carriers Mixed Data Access (cont.) The following shows the structure of a program: Program structure Subaddress Value Command designator 1. Program record Program number 1st data record: Start address Low Byte Start address High Byte Number of bytes Low Byte Number of bytes High Byte 2nd data record: ... 25th data record: Start address Low Byte Start address High Byte Number of bytes Low Byte Number of bytes High Byte Terminator 01Hex 06Hex 02Hex 01Hex Range 01Hex to 0AHex 03Hex 04Hex 05Hex 06Hex 03Hex 04Hex 05Hex 06Hex FFHex FFHex To store a second program, repeat this process. The procedure for writing these settings to the EEPROM is described in the 9th example on 42...44. Replacing the EEPROM is described on 56 for BIS S-6002 and on 66 for BIS S-6022. 29 30 Function Description Processing data carriers The command identifier 21Hex can be used to read out the program records stored in the proRead from data carrier, with program gram from the data carrier. The user must document exactly which data are to be read from where and with what number of bytes for the respective program (see example 10 on 45) Mixed Data Access Write to data carrier, with program Mixed Data Access 30 The command identifier 22Hex can be used to write the program records stored in the program to the data carrier. The user must document exactly which data are to be written from where and with what number of bytes for the respective program (see example 11 on 46) S60_2-019_828318_0303-e mit CRC.p65 31 Function Description Processing data carriers CRC initialization To be able to use the CRC check, the data carrier must first be initialized with the command identifier 12Hex (see 32/33). The CRC initialization is used like a normal write job. The latter is rejected (with an error message) if the processor recognizes that the data carrier does not contain the correct CRC. Data carriers as shipped from the factory (all data are 0) can immediately be programmed with a CRC check. If CRC-16 data checking is activated, a special error message is output to the interface whenever a CRC error is detected. If the error message is not caused by a failed write request, it may be assumed that one or more memory cells on the data carrier is defective. That data carrier must then be replaced. If the CRC error is however due to a failed write request, you must reinitialize the data carrier in order to continue using it. The checksum is written to the data carrier as a 2-byte wide datum. Two bytes per page are 'lost', i.e., the page size becomes 62 bytes. This means that the actual usable number of bytes is reduced: Data carrier type 8192 bytes 16384 bytes Usable bytes 7936 bytes 15872 bytes 32 Function Description Examples for protocol sequence Example No. 1 Initializing the Data carrier for the CRC_16 data checking For configuring with double bit header and 128-byte buffer size! The processing of this command is similar to a write command. Start address and number of bytes have to correspond to the maximum number of data to be used. In this example the complete memory range of a Data carrier with 8 kbytes shall be used (BIS S-1_ _-32/L with 64 byte block size). Because 2 bytes are used for the CRC only 7936 bytes can be used as data bytes, hence: start address = 0, number of bytes = 7936. Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/7FHex Command designator 12Hex Start address 00 Hex Start address 00 Hex No. of bytes 00 Hex No. of bytes 1FHex Set AV-Bit, CT-Bit to 1 3.) Process subaddresses of the output buffer: 01...7EHex 00Hex/7FHex Enter first 126 bytes of data Invert TI-Bit 5.) Process subaddresses of the output buffer: ...To be continued until the complete memory range is written. See next . 32 01...7EHex 00Hex/7FHex Enter the second 126 data bytes Invert TI-Bit 00Hex/7FHex Set AA-Bit, invert TO-Bit 4.) Process subaddresses of the output buffer: 01...7EHex Copy first 126 data bytes Process subaddress of the input buffer: 00Hex/7FHex Invert TO-Bit 6.) Process subaddresses of the output buffer: 01...7EHex Copy second 126 data bytes Process subaddress of the input buffer: 00Hex/7FHex Invert TO-Bit 31 S60_2-019_828318_0303-e mit CRC.p65 33 Function Description Examples for protocol sequence Example No. 1 (continued) For configuring with double bit header and 128-byte buffer size! Host: BIS S-60_2 Identification System: 127.) Process subaddresses of the output buffer: 01...7EHex 00Hex/7FHex Enter the remaining data byte Invert TI-Bit 129.) Process subaddresses of the output buffer: 00Hex/7FHex Reset AV-Bit 128.) Process subaddresses of the output buffer: 01...7EHex Copy the remaining data byte Process subaddress of the input buffer: 00Hex/7FHex Set AE-Bit 130.) Process subaddresses of the input buffer: 00Hex/7FHex Reset AA-Bit and AE-Bit 34 Function Description Examples for protocol sequence Example No. 2 For configuring with double bit header and 8-byte buffer size! Read 17 bytes starting at data carrier address 10 (Data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/07Hex Command designator 01Hex Start address Low Byte 0AHex Start address High Byte 00 Hex No. of bytes Low Byte 11Hex No. of bytes High Byte 00 Hex CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddresses of the input buffer: 01...06Hex Copy first 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 5.) Process subaddresses of the input buffer: 01...06Hex Copy second 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 7.) Process subaddresses of the input buffer: 01...05Hex Copy the remaining 5 data bytes Process subaddress of the output buffer: 00Hex/07Hex Reset AV-Bit 34 2.) Process subaddresses of the input buffer in the order shown: 00Hex/07Hex 01...06Hex 00Hex/07Hex Set AA-Bit Enter first 6 bytes of data Set AE-Bit 4.) Process subaddresses of the input buffer: 01...06Hex 00Hex/07Hex Enter the second 6 data bytes Invert TO-Bit 6.) Process subaddresses of the input buffer: 01...05Hex 00Hex/07Hex Enter the remaining 5 data bytes Invert TO-Bit 8.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AE-Bit 33 S60_2-019_828318_0303-e mit CRC.p65 35 Function Description Examples for protocol sequence Example No. 3 like 2nd example but with simultaneous data transmission Read 17 bytes starting at data carrier address 10, with simultaneous data transmission (data carrier type with 64 byte block size): For configuring with double bit header and 8-byte buffer size! The reply “Job End” = AE bit is reliably set no later than before the last data are sent. The exact time depends on the requested data amount, the input buffer size and the timing of the controller. This is indicated in the following by the note Set AE-Bit (in italics). While the read job is being carried out and as soon as the input buffer is filled, the first data are sent. The AE bit is not set until the “Read” operation is completed by the processor. Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/07Hex Command designator 01Hex Start address Low Byte 0AHex Start address High Byte 00 Hex No. of bytes Low Byte 11Hex No. of bytes High Byte 00 Hex CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddresses of the input buffer: 01...06Hex Copy first 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit Continued on next 00Hex/07Hex 01...06Hex 00Hex/07Hex 00Hex/07Hex Set AA-Bit Enter first 6 bytes of data Invert TO-Bit Set AE-Bit 4.) Process subaddresses of the input buffer: 01...06Hex 00Hex/07Hex 00Hex/07Hex Enter the second 6 data bytes Invert TO-Bit Set AE-Bit 36 Function Description Examples for protocol sequence Example No. 3 (continued) like 2nd example but with simultaneous data transmission For configuring with double bit header and 8-byte buffer size! 36 Host: BIS S-60_2 Identification System: 5.) Process subaddresses of the input buffer: 6.) Process subaddresses of the input buffer: 01...06Hex Copy second 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 7.) Process subaddresses of the input buffer: 01...05Hex Copy the remaining 5 data bytes Process subaddress of the output buffer: 00Hex/07Hex Reset AV-Bit 01...05Hex 00Hex/07Hex 00Hex/07Hex Enter the remaining 5 data bytes Invert TO-Bit Set AE-Bit 8.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AE-Bit 35 S60_2-019_828318_0303-e mit CRC.p65 37 Function Description Examples for protocol sequence Example No. 4 For configuring with double bit header and 8-byte buffer size! Read 30 bytes starting at data carrier address 10 with read error (data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: If an error occurs right away: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/07Hex Command designator 01Hex Start address Low Byte 0AHex Start address High Byte 00 Hex No. of bytes Low Byte 1EHex No. of bytes High Byte 00 Hex Set CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddress of the input buffer: 01Hex Copy error number Process subaddress of the output buffer: 00Hex/07Hex Reset AV-Bit 00Hex/07Hex Set AA-Bit 01Hex Enter error number 00Hex/07Hex Set AF-Bit 4.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AF-Bit 37 38 Function Description Examples for protocol sequence Example No. 5, like 4th example but with simultaneous data transmission For configuring with double bit header and 8-byte buffer size! Read 30 bytes starting at data carrier address 10, with read error and simultaneous data transmission (data carrier type with 64 byte block size): If an error occurs, the AF bit is set instead of the AE-Bit, with a corresponding error number. When the AF-BIT is set the job is interrupted and declared to be ended. Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: If an error occurs right away: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/07Hex Command designator 01Hex Start address Low Byte 0AHex Start address High Byte 00 Hex No. of bytes Low Byte 1EHex No. of bytes High Byte 00 Hex Set CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddress of the input buffer: 01Hex Copy error number Process subaddress of the output buffer: 00Hex/07Hex Reset AV-Bit ☞ 38 00Hex/07Hex Set AA-Bit 01Hex Enter error number 00Hex/07Hex Set AF-Bit 4.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AF-Bit An error can also occur after the data have already been sent (see 6th example on the next ). S60_2-019_828318_0303-e mit CRC.p65 39 Function Description Examples for protocol sequence Example No. 6, with simultaneous data transmission For configuring with double bit header and 8-byte buffer size! Read 30 bytes starting at data carrier address 10, with read error and simultaneous data transmission (data carrier type with 64 byte block size): If an error occurs after data have started to be sent, the AF-Bit is set instead of the AE-Bit along with the corresponding error number. The error message AF is dominant. It cannot be specified which data are incorrect. When the AF-BIT is set the job is interrupted and declared to be ended. Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: 01Hex 02Hex 03Hex 04Hex 05Hex 00Hex/07Hex Command designator 01Hex Start address Low Byte 0AHex Start address High Byte 00 Hex No. of bytes Low Byte 1EHex No. of bytes High Byte 00 Hex Set CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddress of the input buffer: 01...06Hex Copy first 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 5.) Process subaddress of the input buffer: 01Hex Copy error number Process subaddress of the output buffer: 00Hex/07Hex Reset AV-Bit 00Hex/07Hex 01...06Hex 00Hex/07Hex Set AA-Bit Enter the first 6 data bytes Invert TO-Bit 4.) Process subaddresses of the input buffer: If an error has occurred: 01Hex Enter error number 00Hex/07Hex Set AF-Bit 6.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AF-Bit 40 Function Description Examples for protocol sequence Example No. 7 For configuring with double bit header and 8-byte buffer size! Write 16 bytes starting at data carrier address 20 (data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 01Hex 02Hex/03Hex 04Hex/05Hex 00Hex/07Hex Command designator 02Hex Start address 14Hex / 00Hex No. of bytes 10 Hex / 00Hex CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddresses of the output buffer: 01...06Hex 00Hex/07Hex Enter the first 6 data bytes Invert TI-Bit 5.) Process subaddresses of the output buffer: 01...06Hex 00Hex/07Hex Enter the second 6 data bytes Invert TI-Bit 7.) Process subaddresses of the output buffer: 01...04Hex 00Hex/07Hex Enter the remaining 4 data bytes Invert TI-Bit 9.) Process subaddresses of the output buffer: 00Hex/07Hex 40 Reset AV-Bit 2.) Process subaddresses of the input buffer in the order shown: 00 Hex/07Hex Set AA-Bit, invert TO-Bit 4.) Process subaddresses of the output buffer: 01...06Hex Copy the first 6 data bytes Process subaddress of the input buffer: 00Hex/07Hex Invert TO-Bit 6.) Process subaddresses of the output buffer: 01...06Hex Copy the second 6 data bytes Process subaddress of the input buffer: 00Hex/07Hex Invert TO-Bit 8.) Process subaddresses of the output buffer: 01...04Hex Copy the remaining 4 data bytes Process subaddress of the input buffer: 00Hex/07Hex Set AE-Bit 10.)Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AE-Bit 39 S60_2-019_828318_0303-e mit CRC.p65 41 Function Description Examples for protocol sequence Example No. 8 Address assignment for the Auto-Read function For configuring with double bit header and 8-byte buffer size! Programming start address 75 (data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer: 01Hex 02Hex 03Hex 00Hex/07Hex Command designator 07Hex Start address Low Byte 4B Hex Start address High Byte 00 Hex CT-Bit to 1 (64 Byte block size), set AV-Bit 3.) Process subaddresses of the output buffer: 00Hex/07Hex ☞ 00Hex/07Hex 4.) Process subaddresses of the input buffer: 00Hex/07Hex Reset AV-Bit Set AA-Bit and AE-Bit Reset AA-Bit and AE-Bit To ensure correct data output, use command identifier 07Hex for each distributed buffer Head 1 and/or Head 2. If the Auto-Read function is not activated, the processor runs in standard mode and sends starting with data carrier address 0 until the buffer is filled, but a maximum of 30 bytes for double bit header or 31 bytes for a single bit header. 41 42 Function Description Examples for protocol sequence Example No. 9 Store Mixed Data Access program Storing a program for reading out 3 data records: For configuring with double bit header and 8-byte buffer size! Total number of bytes exchanged in the operation: 1st data record 2nd data record 3rd data record Start address Start address Start address 75 312 Number of bytes Number of bytes Number of bytes 17 27 bytes All 104 bytes are written for the programming. Host: Host: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer: 01Hex 02Hex 00Hex/07Hex Command designator 06Hex Program number 01Hex CT-Bit to 1 (64 bytes block size), set AV-Bit 3.) Process subaddresses of the output buffer: 01Hex 02Hex 03Hex 04Hex 05Hex 06Hex 00Hex/07Hex 1st start address (Low Byte) 05Hex (High Byte) 00 Hex 1st number of bytes (Low Byte) 07Hex (High Byte) 00 Hex 2nd start address (Low Byte) 4BHex (High Byte) 00 Hex Invert TI-Bit 00 Hex/07Hex Set AA-Bit, invert TO-Bit 4.) Process subaddresses of the input buffer: 00 Hex/07Hex Invert TO-Bit Continued on next . 42 S60_2-019_828318_0303-e mit CRC.p65 43 Function Description Examples for protocol sequence Example No. 9 Store Mixed Data Access program (continued) For configuring with double bit header and 8-byte buffer size! Host: BIS S-60_2 Identification System: 5.) Process subaddresses of the output buffer: 01Hex 02Hex 03Hex 04Hex 05Hex 06Hex 00Hex/07Hex 2nd number of bytes 3rd start address 3rd number of bytes (Low Byte) 03Hex (High Byte) 00 Hex (Low Byte) 38Hex (High Byte) 01Hex (Low Byte) 11Hex (High Byte) 00 Hex 00Hex/07Hex Invert TO-Bit Invert TI-Bit 7.) Process subaddresses of the output buffer: 01Hex/02Hex 03Hex/04Hex 05Hex/06Hex 00Hex/07Hex 6.) Process subaddresses of the input buffer: Terminator (not used) (not used) Invert TI-Bit FFHex/FFHex FFHex/FFHex FFHex/FFHex 8.) Process subaddresses of the input buffer: 00 Hex/07Hex Invert TO-Bit Fill all unused start addresses and number of bytes with FFHex! Continued on next . 44 Function Description Examples for protocol sequence Example No. 9 Store Mixed Data Access program (continued) For configuring with double bit header and 8-byte buffer size! Host: 01Hex/02Hex 03Hex/04Hex 05Hex/06Hex 00Hex/07Hex Terminator (not used) (not used) Invert TI-Bit FFHex/FFHex FFHex/FFHex FFHex/FFHex 37.)Process subaddresses of the output buffer: 00Hex/07Hex ☞ BIS S-60_2 Identification System: 35.)Process subaddresses of the output buffer: Reset AV-Bit 36.)Process subaddresses of the input buffer: 00Hex/07Hex Set AE-Bit 38.)Process subaddresses of the input buffer: 00Hex/07Hex Reset AA-Bit and AE-Bit We recommend that you carefully document which parameters are used for start addresses and number of bytes for writing/reading the desired data records. The data are sequenced in the exact order specified in the program. 44 43 S60_2-019_828318_0303-e mit CRC.p65 45 Function Description Examples for protocol sequence Example No. 10 Use Mixed Data Access program For configuring with double bit header and 8-byte buffer size! Read data carrier using Program No. 1 (data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: 01Hex 02Hex 00Hex/07Hex Command designator 21Hex Program number 01Hex CT-Bit to 1 (64 byte block size), set AV-Bit 3.) Process subaddresses of the input buffer: 01...06Hex Copy first 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 00Hex/07Hex 01...06Hex 00Hex/07Hex 4.) Process subaddresses of the output buffer: 01...06Hex 00Hex/07Hex ... A total of 27 bytes of data are exchanged. For the remainder of the procedure, see Example 2 on ☞ Set AA-Bit Enter first 6 bytes of data Set AE-Bit Enter the second 6 data bytes Invert TO-Bit 34. Dynamic mode is turned off while the Mixed Data Access program is being run. 46 Function Description Examples for protocol sequence Example No. 11 Use Mixed Data Access program For configuring with double bit header and 8-byte buffer size! Write data carrier using Program No. 1 (data carrier type with 64 byte block size): Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer in the order shown: 2.) Process subaddresses of the input buffer in the order shown: 01Hex 02Hex 00Hex/07Hex Command designator 21Hex Program number 01Hex CT-Bit to 1 (64 byte block size), set AV-Bit 3.) Process subaddresses of the input buffer: 01...06Hex Copy first 6 data bytes Process subaddress of the output buffer: 00Hex/07Hex Invert TI-Bit 00Hex/07Hex 01...06Hex 00Hex/07Hex 4.) Process subaddresses of the input buffer: 01...06Hex 00Hex/07Hex ... A total of 27 bytes of data are exchanged. For the remainder of the procedure, see Example 7 on ☞ 46 Set AA-Bit Enter first 6 bytes of data Set AE-Bit Enter the second 6 data bytes Invert TO-Bit 40. Dynamic mode is turned off while the Mixed Data Access program is being run. 45 S60_2-019_828318_0303-e mit CRC.p65 47 Function Description Examples for protocol sequence Example No. 12 Put the relevant read/write head into ground state: Both read/write heads can be independently set to the ground state. Host: BIS S-60_2 Identification System: 1.) Process subaddresses of the output buffer: 2.) Go to ground state; Process subaddresses of the input buffer: 00Hex/07Hex 00Hex/07Hex Set GR-Bit 3.) Process subaddresses of the output buffer: 00Hex/07Hex 00Hex/07Hex Reset GR-Bit Reset BB-Bit 4.) Process subaddresses of the input buffer: Set BB-Bit 47 48 Read/Write Times Read times from Data carrier to processor in static mode (parametering: 2nd byte, bit 5 = 0, without CRC-16 data check) Write times from processor to Data carrier in static mode (parametering: 2nd byte, bit 5 = 0, without CRC-16 data check) For double read and compare: Data carrier with 64 byte blocks No. of bytes Read time [ms] from 0 to 63 29 for each additional 64 bytes add 31 from 0 to 2047 = 990 Including readback and compare: Data carrier with 64 byte blocks No. of bytes Write time [ms] from 0 to 63 31 + n * 1.5 for 64 bytes or more y * 31 + n * 1.5 n = number of contiguous bytes to write y = number of blocks to be processed Example: 100 bytes from address 130 have to be written. Data carrier with 64 bytes per block. The blocks 3 and 4 will be processed since the start address 130 is in block 3 and the end address 229 in block 4. t = 2 * 31 + 100 * 1.5 = 212 ms ☞ 48 The indicated times apply after the Data carrier has been recognized. If the Data carrier is not yet recognized, an additional 45 ms for building the required energy field until the Data carrier is recognized must be added. S60_2-019_828318_0303-e mit CRC.p65 49 Read/Write Times Read times from Data carrier to processor in dynamic mode (parametering: 2nd byte, bit 5 = 1, without CRC-16 data check) Read times within the 1st block for dual read and compare: The indicated times apply after the Data carrier has been recognized. If the Data carrier is not yet recognized, an additional 45 ms for building the required energy field until the Data carrier is recognized must be added. Data carrier with 64 byte blocks No. of bytes Read time [ms] from 0 to 3 for each additional byte add from 0 to 63 0.5 29 m = highest address to be read Formula: t = (m + 1) * 0.5 ms Example: Read 11 bytes starting at address 9, i.e. the highest address to be read is 19. This corresponds to 10 ms. 50 LED Display Function displays on BIS S-60_2 The BIS S-60_2 uses the three side-mounted LED's to indicate important conditions of the identification system. LED Status Meaning Ready / Bus active red Supply voltage OK; no hardware error, however, bus not active. Supply voltage / hardware OK, bus active. green CT1 present / operating green yellow yellow flashes [f ≈ 2 Hz] yellow flashes faster [f ≈ 4 Hz] off CT2 present / operating green yellow yellow flashes [f ≈ 2 Hz] yellow flashes faster [f ≈ 4 Hz] off Data carrier read/write-ready at read/write head 1. Read/write command at read/write head 1 in process. Cable break to read/write head or not connected. Communication with R/W Head 1 is faulty or R/W Head 1 is defective. No data carrier in read/write range of read/write head 1. Data carrier read/write-ready at read/write head 2. Read/write command at read/write head 2 in process. Cable break to read/write head or not connected. Communication with R/W Head 2 is faulty or R/W Head 2 is defective. No data carrier in read/write range of read/write head 2. If all three LED's are synchronously flashing, it means a hardware error. Return the unit to the factory. 50 49 S60_2-019_828318_0303-e mit CRC.p65 51 BIS S-6002 Mounting the Processor The processor is attached using 4 M4 screws. 18.5 ~9.5 Mounting the BIS S-6002 processor Head2 Head1 150 71.6 16.8 12.8 4.3 12.5 ~19.6 82 21.5 BIS S-6002 dimensions X1 45.5 X2 X3 90 51 52 BIS S-6002 Opening the Processor / Interface information Opening the BIS S-6002 processor To set the PROFIBUS-DP address, activate or deactivate the internal termination resistor, or to change the EEPROM, you must open up the BIS S-6002 processor. Remove the 4 screws on the BIS S-6002 and lift off the cover. See the following tional information. BIS S-6002 interfaces Connection for read/write head 2 Head2 Head1 for addi- Connection for read/write head 1 Be sure before opening that the unit is disconnected from power. Mounting of the cover (4 screws), max. permissible tightening torque: 0.15 Nm Supply voltage digital input Connection locations and names 52 X1 X2 Function X3 ground FE PROFIBUS-DP PROFIBUS-DP Input Output S60_2-019_828318_0303-e mit CRC.p65 53 BIS S-6002 Interface Information / Wiring Diagrams PROFIBUS-DP Ensure that the device is turned off. To insert BIS S-6002 processor into the serial PROFIBUS-DP, there are the terminal X2 for the PROFIBUS input and the terminal X3 for the PROFIBUS output. Bus station Bus station BIS S-6002 green 2A red 3 DGND 4B ... Output 1 VP Bus station VP 1 green A 2 DGND 3 red B 4 Connect shield to connector housing Connect shield to connector housing 5-pin male X2, input Input 5-pin female X3, output 53 54 BIS S-6002 Interface Information / Wiring Diagrams PROFIBUS-DP Terminating resistor In case the processor is the last bus module in the chain, then only the incoming cable is connected to X2. The last bus module must terminate the bus with a resistor. In the case of the BIS S-6002, this can be realized in two different ways: 1. In the device by closing the switch S2 (factory standard is open) Note: Output terminal must be closed off with a screw cover in order to maintain the enclosure rating. S2 Terminating resistor closed open active passive 2. Outside the device in a connector to socket X3. In this case the signal VP (pin 1) and DGND (pin 3) should be brought out in order to connect the external resistor to the potential. Note: In this case S2 has to be open! Wiring 54 To insert BIS S-6002 processor into the serial PROFIBUS and to connect the supply voltage and the digital input, the cables have to be connected to the terminals of the processor. The read/write heads have to be connected to the terminals of Head 1 and Head 2. S60_2-019_828318_0303-e mit CRC.p65 55 BIS S-6002 Interface Information / Wiring Diagrams Wiring diagram for BIS S-6002 processor Connection for Read/Write Head 2 Head2 Head1 X1, supply voltage, digital input Connection for Read/Write Head 1 Pin Function +Vs IN Vs +IN n.c. Pin Function X2, PROFIBUSinput (male) X3, PROFIBUSoutput (female) VP DGND n.c. n.c. = do not connect Terminal location and designation Function ground FE Supply X1 voltage, digital input X2 X3 PROFIBUS-DP The function-ground connector FE should be connected to earth directly or through a RC combination depending on the system (potential counterpoise). When connecting the bus leads, make sure that the shield has proper connection to connector housing. 56 BIS S-6002 Changing the EEPROM Changing the EEPROM in the BIS S-6002 processor To replace the EEPROM, open up the processor as described on 52. Head2 Head1 Be sure before opening that the unit is disconnected from power.. S1 on on on on on on on on To avoid damaging the EEPROM, please observe the requirements for handling electrostatically sensitive components. Head 2 Head 1 The EEPROM is replaced by unplugging and plugging back into the socket. 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 on on on S2 Location of the EEPROM 56 X1 X2 X3 55 S60_2-019_828318_0303-e mit CRC.p65 57 BIS S-6002 Technical Data Dimensions, Weight Housing Dimensions Weight Plastic ca. 179 x 90 x 45,5 mm ca. 500 g Operating Conditions Ambient temperature 0 °C to + 60 °C Enclosure Rating Enclosure rating IP 65 (when connected) Connections Integral connector X1 for VS, IN Integral connector X2 for PROFIBUS-DP Input Integral connector X3 for PROFIBUS-DP Output Electrical Connections Supply voltage VS, input Ripple Current draw DC 24 V ± 10 % ≤ 10 % ≤ 600 mA PROFIBUS-DP slave Terminal block, electrically isolated Digital Input (+IN, –IN) Control voltage active Control voltage inactive Input current at 24 V Delay time, typ. Optocoupler isolated 4 V to 40 V 1.5 V to –40 V 11 mA 5 ms Read/Write Head 2 x connectors 8-pin (female) for all read/write heads BIS S-3_ _ with 8-pin connector (male) 5-pin (male) 5-pin (male) 5-pin (female) 58 BIS S-6002 Technical Data Function Displays BIS operating messages: Ready / Bus active CT1 present / operating CT2 present / operating LED red / green LED green / yellow LED green / yellow The CE-Mark is your assurance that our products are in conformance with the EC-Guideline 89/336/EEC (EMC-Guideline) and the EMC Law. Testing in our EMC Laboratory, which is accredited by the DATech for Testing of Electromagnetic Compatibility, has confirmed that Balluff products meet the EMC requirements of the Generic Standard EN 50081-2 (Emission) and EN 50082-2 (Noise Immunity). 58 57 S60_2-019_828318_0303-e mit CRC.p65 59 BIS S-6002 Ordering Information BIS S-6002-019-050-03-ST11 Ordering Code Balluff Identification System Type S Read/Write System Hardware Type 6002 = plastic housing, PROFIBUS-DP Software-Type 019 = PROFIBUS-DP Read/Write Head, connection 050 = with two connections for read/write heads BIS S-3_ _ Interface 03 = bus versions User Connection ST11 = Connector version X1, X2, X3 (2× male 5-pin, 1× female 5-pin) 60 BIS S-6002 Ordering Information Accessory (optional, not included) 60 Type Ordering code Connector for X1 for X2 for X3 BKS-S 79-00 BKS-S103-00 BKS-S105-00 Termination Protective cap for X3 for Head_, X3 BKS-S105-R01 BKS 12-CS-00 Connector for Head 1, Head 2 no cable BKS-S117-00 Connection cable for Head 1, Head 2; 25 m BIS-S-501-PU1-25 one end with molded-in connector, one end for user-assembled connector, length as desired, max. 25 m Connection cable for Head 1, Head 2; 25 m BIS-S-502-PU1-25 one end with molded-in right-angle connector, one end for user-assembled connector, length as desired, max. 25 m 59 S60_2-019_828318_0303-e mit CRC.p65 61 BIS S-6022 Mounting Processor The processor is mounted using 4 M4 screws. Head 2 Head 1 M4 ca. 15 Mounting the BIS S-6022 processor 145 X2 160 X1 ca. 15 X3 X4 ca. 20 60 63 100 62 BIS S-6022 Opening the processor / Interface information Opening the BIS S-6022 processor To set the PROFIBUS-DP address, activate or deactivate, or to change the EEPROM, you must open up the BIS S-6022 processor. Remove the 4 screws on the BIS S-6022 and lift off the cover. See the following tional information. BIS S-6022 interfaces Head 2 Head 1 Connection for read/write head 2 Supply voltage, digital input Connection locations and names 62 for addi- Connection for read/write head 1 Be sure before opening that the unit is disconnected from power. X1 PROFIBUS-DP Input X2 PROFIBUS-DP Output X3 Service interface X4 Mounting of the cover (4 screws), max. permissible tightening torque: 0.15 Nm Function ground FE 61 S60_2-019_828318_0303-e mit CRC.p65 63 BIS S-6022 Interface Information / Wiring Diagrams PROFIBUS-DP Ensure that the device is turned off. To insert BIS S-6022 processor into the serial PROFIBUS-DP, there are the terminal X2 for the PROFIBUS input and the terminal X3 for the PROFIBUS output. Bus station Bus station BIS S-6022 green 2A red 3 DGND 4B ... Output 1 VP Bus station VP 1 green A 2 DGND 3 red B 4 Connect shield to connector housing Connect shield to connector housing 5-pin male X2, input Input 5-pin female X3, output 63 64 BIS S-6022 Interface Information / Wiring Diagrams PROFIBUS-DP Terminating resistor In case the processor is the last bus module in the chain, then only the incoming cable is connected to X2. The last bus module must terminate the bus with a resistor. In the case of the BIS S-6002, this can be realized in two different ways: 1. In the device by closing the switch S2 (factory standard is open) Note: Output terminal must be closed off with a screw cover in order to maintain the enclosure rating. S2 Terminating resistor closed open active passive 2. Outside the device in a connector to socket X3. In this case the signal VP (pin 1) and DGND (pin 3) should be brought out in order to connect the external resistor to the potential. Note: In this case S2 has to be open! Wiring 64 To insert BIS S-6002 processor into the serial PROFIBUS and to connect the supply voltage and the digital input, the cables have to be connected to the terminals of the processor. The read/write heads have to be connected to the terminals of Head 1 and Head 2. S60_2-019_828318_0303-e mit CRC.p65 65 BIS S-6022 Interface Information / Wiring Diagrams Head 2 Head 1 Wiring diagram for BIS S-6022 processor X1, supply voltage, digital input S1 on on on on on on on on X1 Head 2 Head 1 X2, PROFIBUS input (male) X2 +Vs IN Vs +IN n.c. Pin Function on on on X3 Function X3, PROFIBUS output (female) 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 S2 Pin VP DGND ☞ n.c. Pin Function X4, Service interface X4 Function ground FE The function-ground connector FE should be connected to earth directly or through a RC combination depending on the system (potential counterpoise). When connecting the bus leads, make sure that the shield has proper connection to connector housing. n.c. TxD GND RxD n.c. = do not connect! 66 BIS S-6022 Changing the EEPROM Changing the EEPROM in the BIS S-6022 processor To change the EEPROM, open the processor as described on 62. Be sure before opening that the unit is disconnected from power. Head 2 Head 1 To avoid damaging the EEPROM, please observe the requirements for handling electrostatically sensitive components. S1 X1 on on on on on on on on The EEPROM is replaced by unplugging and plugging back into the socket. Head 2 Head 1 X2 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 on on on S2 X3 Location of the EEPROM 66 X4 65 S60_2-019_828318_0303-e mit CRC.p65 67 BIS S-6022 Technical Data Dimensions, weight Housing Dimensions Weight Metal 190 x 120 x 60 mm 820 g Operating conditions Ambient temperature 0 °C to +60 °C Enclosure Protection class IP 65 (when connected) Connections Integral connector X1 for VS, +IN Integral connector X2 for PROFIBUS-DP input Integral connector X3 for PROFIBUS-DP output Integral connector X4 for Service interface 5-pin (male) 5-pin (male) 5-pin (female) 4-pin (male) Electrical connections Supply voltage VS Ripple Current draw Digital input +IN Control voltage active Control voltage inactive Input current at 24 V Delay time, typ. PROFIBUS-DP, Connector X2, X3 Head 1, Head 2, Read/Write Head DC 24 V ± 10 % ≤ 10 % ≤ 600 mA Optocoupler isolated 4 V to 40 V 1.5 V to –40 V 11 mA 5 ms serial interface for PROFIBUS stations via 2 x connectors 8-pin connector (female) for all read/write heads BIS S-3_ _ with 8-pin connector (male) RS 232 Service interface X4 68 BIS S-6022 Technical Data Function displays BIS operating messages: Ready / Bus active CT1 present / operating CT2 present / operating LED red / green LED green / yellow LED green / yellow The CE-Mark is your assurance that our products are in conformance with the EC-Guideline 89/336/EEC (EMC-Guideline) and the EMC Law. Testing in our EMC Laboratory, which is accredited by the DATech for Testing of Electromagnetic Compatibility, has confirmed that Balluff products meet the EMC requirements of the Generic Standard EN 50081-2 (Emission) and EN 50082-2 (Noise Immunity). 68 67 S60_2-019_828318_0303-e mit CRC.p65 69 BIS S-6022 Ordering Information Ordering code BIS S-6022-019-050-03-ST14 Balluff Identification System Type S Read/Write System Hardware Type 6022 = metal housing, PROFIBUS-DP Software Type 019 = PROFIBUS-DP Version 050 = with two connections for read/write heads BIS S-3_ _ Interface 03 = bus versions User Connection ST14 = Connector version X1, X2, X3, X4 (male: 2× 5-pin, 1× 4-pin, female: 1× 5-pin) 70 BIS S-6022 Ordering Information Accessory (optional, not included) 70 Type Ordering code Mating connector for X1 for X2 for X3 for X4 BKS-S 79-00 BKS-S103-00 BKS-S105-00 BKS-S 10-3 Termination Protective cap Protective cap for X3 for Head_, X3 for X4 BKS-S105-R01 BKS 12-CS-00 BES 12-SM-2 Connector for Head 1, Head 2 no cable BKS-S117-00 Connection cable for Head 1, Head 2; 25 m BIS-S-501-PU1-25 one end with molded-in connector, one end for user-assembled connector, length as desired, max. 25 m Connection cable for Head 1, Head 2; 25 m BIS-S-502-PU1-25 one end with molded-in right-angle connector, one end for user-assembled connector, length as desired, max. 25 m 69 S60_2-019_828318_0303-e mit CRC.p65 71 Appendix, ASCII Table D eciC ontrol H ex ASC II mal C ode 10 11 12 13 14 15 16 17 18 19 20 21 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 Ctrl @ Ctrl A Ctrl B Ctrl C Ctrl D Ctrl E Ctrl F Ctrl G Ctrl H Ctrl I Ctrl J Ctrl K Ctrl L Ctrl M Ctrl N Ctrl O Ctrl P Ctrl Q Ctrl R Ctrl S Ctrl T Ctrl U NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK D eciC ontrol H ex ASC II mal C ode 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B Ctrl V Ctrl W Ctrl X Ctrl Y Ctrl Z Ctrl [ Ctrl \ Ctrl ] Ctrl ^ Ctrl _ SYN ETB CAN EM SUB ESC FS GS RS US SP D eciH ex ASC II mal 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 D eciH ex ASC II mal 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 D eciH ex ASC II mal 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A D eciH ex ASC II mal 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 6B 6C 6D m 6E 6F o 70 71 q 72 73 74 75 76 77 w 78 x 79 y 7A z 7B 7C 7D 7E ~ 7F DEL 71
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.2 Linearized : No Create Date : 2003:08:12 14:50:31+02:00 Modify Date : 2003:08:12 14:50:31+02:00 Page Count : 36 Creation Date : 2003:08:12 12:50:31Z Mod Date : 2003:08:12 12:50:31Z Producer : Acrobat Distiller 5.0.5 (Windows) Metadata Date : 2003:08:12 12:50:31ZEXIF Metadata provided by EXIF.tools