Safety instructions 1. Safety instructions 1.1 Scope of validity This user manual applies exclusively to the following rotary encoders with PROFIsafe interface: - CRDxx-xxxxRxxxxC2Z01 - CRDxx-xxxxRxxxxC2L01 1.2 Documentation The following documents must be noted: - The owner's system-specific operating instructions - This user manual - Data sheet number CRD 10534 - The pin assignment enclosed with the device...
General 2 General The PROFIBUS is a field bus standard according to EN 50170. The technical and functional characteristics of the field bus system are defined in this standard. The protocol architecture is based on the OSI reference model, in accordance with the international ISO 7498 standard.
Installation instructions 3. Installation instructions for PROFIBUS-DP - RS 485 Basic characteristics of RS-485 transmission technology /2/: Network topology: Linear bus, terminating resistors for bus termination Stub lines are only permissible in the case of baudrates < 1.5 MBit/s Lead: Sheathed, twisted pair cable ...
Installation instructions 3.1 Connection of encoder with RS plug The-pin assignment for the 12-pin RS plug (Note: Numeration of the-pins in clockwise direction (view facing contact side of the bushing), encoder: Bushing) conforms to the profile definition for encoders /1/. The terminating resistors must be implemented in the counterplug or in the subsequent electronics.
Installation Status LED (connecting cap) Status LED LED-Statusanzeigen Incorrect configuration Impermissible parameter Befestigungs- schrauben M4 Screw M4 Code error (see diagnosis bytes 62 - 63) Class 1 Gerätekonfiguration i.O. Class 2 Gerätekonfiguration i.O. VS - power supply, Err - error, C - class, SRD - data traffic Configuration 4.
Data exchange function 5. Data exchange function (DDLM_Data_Exchange) Input data are data which are transmitted from the peripheral devices to the master or into the bus. The control of the preset value (see below) is listed as an example of output data at this point. 5.1 Actual position value The actual position value is output in 16 or 32 bit data format (input data), Please refer to the configuration of the encoder in the previous chapter.
Data exchange function 5.3 Example: Setting the preset value in 32 bit data format Output-Data Octet 30 - 0 Data 00.0000.0000.0000.0000.0000.0000.1000 Preset Control reference value: 8 Following the receipt of this message, an offset value (from the current actual position value and preset value) is cal- culated by the encoder.
Programming parameters 6. Programming parameters for class 1/2 encoder (DDLM_Set_Prm) /4/ The parameterisation data are comprised from bus-specific data and DP slave-specific data. Bus-specific data: Octet 1-7 Octet 1 – Station status Octet 2 - WD_Fact_1 Octet 3 - WD_Fact_2 Octet 4 - Min.
Programming parameters Definition of the operating parameters: Code sequence: The code sequence defines the direction of rotation in which the position value corre- sponds to increasing values (viewed in the direction of the shaft). CW - clockwise CCW - counter clockwise ...
Programming parameters (Note: The above mentioned note must be taken into consideration in the event of irreversible operation. In the example which is described, the position 0 is only achieved after 32767 steps and not, as desired, after 20479 steps.) 6.2 Examples for parametration (User_Prm_Data) Class 1 encoder ( 9 parameter bytes, inclusive 7 bytes bus specifid data)* Class 1 encoder...
Diagnosis messages 7.2.2 Alarm messages (Octet 8): Output of the current alarm status. TWK currently supports memory errors only. Parameter alarm messages Diagnosis octet 0=no /1=yes Data 0=no /1=yes 0=no /1=yes 0=no /1=yes 0=no /1=yes Supply voltage Commissioning Memory currently not Definition Position error Current to high...
Diagnosis messages 7.2.16 Single turn resolution (Octet 40-43) In this case, the single turn resolution set in the parameter programme is reflected. Parameter single turn resolution Diagnosis Octet (MSB) 31-24 23-16 15-8 7-0 (LSB) Data 7.2.17 Total measuring steps (Octet 44-47) In this case, the total measuring units per revolution set in the parameter programme is reflected.
Diagnosis messages * If a faulty preset value is input, control bit 31 must be set to zero before inputting the correct preset value in order to eradicate the error. The preset value can subsequently be reset after setting control bit 31 to 1. After resetting bit 31 to the value zero, the position value may then be output.
Simatic Step7 8. Simatic Step7 This Chapter explains the procedure for integrating the TWK encoder into the profibus of Siemens S7 control system, and the set up and the utilisation of the example programmes for Step7. The basis of the documentation is Step 7 Version 5.1.
Simatic Step7 8.1.5 Allocation of profibus address If you have selected your nominal configuration, the following window, in which you must specify the profibus address set in the encoder, appears. For the example programmes, please select address 123 for the first and address 122 for the second encoder here.
Simatic Step7 8.1.6 Setting the I/O addresses (S7 addresses) Double-clicking onto the “Slot 0” line opens the Properties - DP slave window with the Address / ID and Parameter Assignment registers. In the Address / ID registers, under output (in the case of class 2 encoder only) and input, the addresses under which the encoder is to be addressed...
Simatic Step7 8.1.8 Setting the diagnosis address Setting the diagnosis address is only required if the special profibus diagnosis functions are used within the S7 programme. So that the diagnosis range of the encoder can be accessed within the S7 programme, a special S7 diagnosis address must be allocated to this.
Simatic Step7 I.e. if the encoder is not the only slave on the profibus/MPI card, all slaves contained in the bus must possess a unique (allocated only once) address, and the master (S7-CPU) must be disconnected from the bus. It is therefore impossible, for example, to simultaneously connect two encoders with address 123 to the bus and to then assign a new address to one of the two.
Simatic Step7 Program Istwert: The program Istwert is comprised only of an OB1 and is intended to briefly show the manner in which the actual position value of the encoder is accessed within the S7 programme. Program Diag1: In addition to the program Istwert, the Diag1 programme also contains error handling for a class 1 encoder.
Page 26
Simatic Step7 Installation: In the Simatic Manager, select File, Retrieve. Change the file type to *.arj and select the downloaded file In the next window, specify your project directory (normally S7proj). Via integration with OK, the dearchiving programme is started. After terminating this, you will find your selected TWK example project in your S7 project directory.
Simatic Step7 8.3.4 Explanations regarding the example programmes Each programme folder contains a symbol table, which contains all global variables of the maximum expansion (class 2 project, Diag2 programme). The programme structure of this maximum expansion is explained in the following. The reference data provide the following overview: (The symbolic name is always contained in the round brackets) Cyclical programme: - Reading the actual value in...
Scope of delivery 9. Scope of delivery The scope of delivery includes: - Encoder with DP interface - Pin assignment TY XXXXX (depending on the device variant) Remark: The GSD-file, the complete documentation and the example programms are available for download in the internet www.twk.de under documentation Literature 10.
Need help?
Do you have a question about the CRD R C2Z01 Series and is the answer not in the manual?
Questions and answers