BECKHOFF C1300 User Manual

C1300 VME to II/O Interface Unit Beckhoff II/O-System
VME to II/O Interface Unit
Technical Documentation
Eiserstraße 5 phone: +49(0)5246/963-0 33415 Verl fax: +49(0)5246/963-149
Date : 18.12.95 Version : 2.01 Page 1 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
Table of contents
1.1 The Beckhoff II/O System ...........................................................................5
2. Function Description Hardware.....................................................................10
3. Function Description Software.......................................................................11
3.1. About the Software ....................................................................................11
3.2. Description of the Handshake Channels ....................................................13
3.3. Test and Analysis Functions ......................................................................17
3.4. Configuration .............................................................................................27
3.4.1. CDL-Communication.......................................................................29
3.4.2. Free programmable Communication................................................32
3.4.3. Initialisation of "Fast Fiber Optic - Interrupts"................................36
3.5. Signal state control functions.....................................................................38
4. Technical Data..................................................................................................41
5. Installation........................................................................................................42
5.1. Configuration .............................................................................................42
Page 2 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
Date : 18.12.95 Version : 2.01 Page 3 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
...........................................................................................................................43
5.3. Installation on the VME Card Cage...........................................................44
Page 4 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
1. System Description
1.1 The Beckhoff II/O System
the Beckhoff Industrial Input Output System, which is abrevated II/O System, consists of a smart central modul and a field bus that is based on fiber optics. Picture 1 shows an overview of the II/O system.
picture.1
Date : 18.12.95 Version : 2.01 Page 5 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
The connection of the II/O system to the host system is established by a DPRAM. This is providing fast and comfortable communications. The processing of the diverse signal states is supported by several II/O peripheral modules, which are linked in a ring structure.The use of fiber optics minimizes the sensitivity for interferences and allows a high transmission rate of 2.5 MBd. Errors, occuring in the FO-­ring, will be detected and reported to the host system by the central module. Functions implemented for ring diagnosis, enable quick detection and correction of errors. There is a speed and simplicity optimized communications protocol which, in the further course of this documentation, will be called a telegram. Communications on the FO-ring are controlled by the central module. This module will send telgrams, that pass each of the modules in the FO-ring and are eventually received and checked.
Page 6 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
A telegram consists of a frame and the contents.
picture 2: Telegram structure of the II/O-System
The frame is needed for serial and asynchronous data communications. There is a single start bit, 6 CRC check bits and 2 stop bits. The frame is created and checked by the hardware, so that there is no need for additonal software support.
Date : 18.12.95 Version : 2.01 Page 7 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
The contents of the telegram is mainly organized for each byte. AD0 - AD7 create the address field.Using this address field up to 254 modules can be addressed ( Address 00h and 0fh are reserved. ). CR0 - CR3 define the type of telegram. Following functions can be defined in the telegram:
CR3 CR2 CR1 CR0 Function Beschreibung
0000
0001
0010
0100
1001
READ
READ/WRITE
ADDRESS INITIALIZITION
ADDRESS CHECK AND COUNT COMMAND
LOW INT ENSITY COMMAND
The modul addressed writes the entry data into the Data fields D0 - D3 .
The modul addressed writes the entry data into the Data fields D0 - D3 and loads the Ausgangsinformation.
The module addressed loads the contents of D0 as a module address und sets D0 = 0.
Each module passed increases the contents of D0 by 1. The module addressed is loads the contents from D0 into D3.
The module addressed reduces the transmission intensity by 20%.
picture 3:Controlfield
Byte D0 - D3 contain the actual Data to use. The processing of this data is determined by the controll field. The last Byte in a telegram contains two spare bits and 6 bits to create a CRC checksum. The contents, having a length of 50 bits, achieves a Hamming distance of d = 3.
Page 8 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
The Beckhoff II/O fieldbus consists of a physical ring, that can be split into 8 logical rings in order to process the signal states. A logical ring can only be run on preselected modules, which are defined by Communication Description Lists ( CDLs ) or freely programmable comunications. Later in this text the way this definitions are transmitted will be delt with. The host system is provided with the signal states via the DPRAM, which can be divided into 3 areas.
-Data : Input , output
-Communications : Initialization, test, analysis and configuration of the II/O- Systems
-Process control : Refresh of signal states
The central module needs an area of 4 Kbyte in the address space of the host system.
Date : 18.12.95 Version : 2.01 Page 9 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
2. Function Description Hardware
C1300
The central module C1300 is a smart port for communications between the II/O-System and the VMEbus. There is a 2k*8 dual ported SRAM for comunications between the II/O -System and the VMEbus. It is addressed directly through the VMEbus. The VMEbus slave interface has the following properties:
* AMO’s: Standart Supervisory Program Access
Standart Supervisory Data Access Standart Non-Privileged Program Access Standart Non-Privileged Data Access
* A24/D16 and A24/D08 - Slave according to VMEbus Rev.C1, no block-transfer
* D08 Interrupter according to VMEbus Rev.C1
Page 10 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
3. Function Description Software
3.1. About the Software
Address space (hex) Funktion
000 - BFF Data area
(input, output ) 3 kByte
C00 - CFF Handshake-channel 0 : VME -> C1300
(configuration, test, analysis)
D00 - DFF Handshake-channel 1 : C1300 -> VME
(configuration, test, analysis)
E00-FF9 reserved
FFA - FFF GCB (General Control Block)
(demand, ready und error mask)
Overview : Distribution of the port‘s workspace.
The port between VMEbus and C1300 module enables the following functions:
- Data exchange of signal states
- Test- und analysis functions for II/O-System
- Configuration
- Control of signal states
The II/O System can be configurated through the comunications channels by 4 functions. This way the input and output lines are distributed to the addresses in the DPRAM. The communications channels can also be used to reach nine more functions for t esting and anal­ysi s . The lower 2 Kbyte area, which is used by the C1300 module in the VME address space, is the place for the data areas of the CDLs. The call to refresh the signal states is done by setting a bit in the demand mask of the GCB ( General Control Block ). The ready message can be taken from the predefined bit in the ready mask of the GCB.
Date : 18.12.95 Version : 2.01 Page 11 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
Page 12 of 44 Version : 2.01 Date : 18.12.95
C1300 VME to II/O Interface Unit Beckhoff II/O-System
3.2. Description of the Handshake Channels
Communications between VMEbus and C1300 are supported by two channels, which contain 255 bytes. The VME master writes the data, needed to run a certain function, to channel 0 and then transmitts a DV ( data valid ) signal. When the module has received all of the data, it will send the "Quit" signal. The VME master erases the DV signal and as soon as the "Quit" signal is set to zero, new communications can be started.
Channel 0 leading from the VMEbus to the C1300 module has an address range from C01h to CFFh. DV is the MSB of address C00h. "Quit" is the second highest bit of address D00h.
Handshake-Channel 0 :
Byte 0
COO
h
Byte 1 ................ Byte 254 Byte 255
CFF
h
Channel 1 leading from the VMEbus to the C1300 module has an address range from C01h to CFFh. DV is the MSB of address C00h. "Quit" is the second highest bit of address D00h.
Handshake-Channel 1 :
Byte 0
D00
h
Byte 1 ................ Byte 254 Byte 255
DFF
h
Date : 18.12.95 Version : 2.01 Page 13 of 44
C1300 VME to II/O Interface Unit Beckhoff II/O-System
Address Address Bits Contents
(hex)
76543210
C00 1 x 0 0 0 0 0 0 ’Data Valid’ of channel 0
( for Data transfer VME -> C1300)
C00 x1000000’Quit’ of channel 1
( for Data transfer C1300 -> VME)
C01 Length ( from 2 to FEh)
C02 Function number
( 1 bis FEh )
C03 Argument 0
.. ..
Cnn Argument n
.. ..
CFF ..
D00 1x000000’Data Valid’ of channel 1
( for Data transfer C1300 -> VME)
D00 x1000000’Quit’ of channel 0
( for Data transfer VME -> C1300)
D01 Length (from 2 to FEh)
D02 Function number
( 1 to FFh )
D03 Argument 0
.. ..
Dnn Argument n
.. ..
DFF ..
Addresses of Handshake Channels
Page 14 of 44 Version : 2.01 Date : 18.12.95
Loading...
+ 30 hidden pages