background image

Access from the user program

KL3361 and KL3362

61

Version: 2.2.0

R38: Index register 1 for input data

The content of this register (default value: 0x0000) determines which date is shown in the process data
register

DataIN0 [

}

 51]

 of oscilloscope terminal KL3361

DataIN0 (channel 1) [

}

 51]

 or 

DataIN0 (channel 2) [

}

 51]

 of oscilloscope terminal KL3362

The following indices are supported:

Index

Decimal

Date

0x0000

0

Current analog value

0x0001

1

Maximum value of a recording

0x0002

2

Minimum value of a recording

0x0003

3

RMS value of the recording: Sqrt((Sum (x

n

2

))/n

0x0004

4

Mean value of the recording: (Sum (x

n

))/n

0x0005

5

Peak-peak value of the recording

0x0006

6

Cycle duration

0x0007

7

Pulse width - high: switching threshold is trigger level 1

• The trigger starts as soon as four successive values are above the

switching threshold

• The trigger is stopped as soon as four successive values are below

the switching threshold

0x0008

8

Pulse width - low: switching threshold is trigger level 1

• The trigger starts as soon as four successive values are below the

switching threshold

• The trigger is stopped as soon as four successive values are above

the switching threshold

0x0009

9

Duty factor

0x000A

10

reserved for jitter T

max

0x000B

11

reserved for jitter T

min

0x000C

12

reserved for jitter T

mean

0x000D

13

Histogram max, i.e. the value that has occurred most frequently.

0x000E

14

Timer1LatchValue

0x000F

15

Timer1Run (read/write)

0x0010

16

Timer2LatchValue

0x0011

17

Timer2Run (read/write)

0x0012

18

Error counter inner envelope curve

0x0013

19

Error counter outer envelope curve

0x0014

20

Number of samples up to analog value greater than switching threshold
1

0x0015

21

Number of samples up to analog value less than switching threshold 1

0x8000

First sampling value.
The recorded sampling values are available from here. The MSB has to
be set to zero in order to determine the trace offset.

0x8001

Second sampling value.

0x8002

Third sampling value.

...

...

...

0x8063

Hundredth sampling value (in the delivery state, 100 values are stored).

...

...

...

0x8F9F

Four thousandth sampling value (a maximum of 4,000 values can be
stored).

Summary of Contents for KL3361

Page 1: ...Documentation KL3361 and KL3362 Oscilloscope Terminal 2 2 0 2019 10 17 Version Date...

Page 2: ......

Page 3: ...3 4 1 Connection system 20 3 4 2 Wiring 22 3 4 3 Shielding 23 3 5 Connecting the KL3361 24 3 6 Connecting the KL3362 26 3 7 ATEX Special conditions standard temperature range 27 3 8 ATEX Documentatio...

Page 4: ...ocess image 51 5 1 1 Process image of the KL3361 51 5 1 2 Process image of the KL3362 51 5 1 3 Control and status bytes 52 5 2 RAM and ROM register 56 5 2 1 Register overview 56 5 2 2 Register descrip...

Page 5: ...ification of products that have already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT EtherCAT G EtherCAT G10...

Page 6: ...for trained specialists in control automation and drive engineering who are familiar with the applicable national standards Description of instructions In this documentation the following instructions...

Page 7: ...re updated trigger logic details 0 5 Description of the process image revised 0 4 Description of control and status byte extended Register description updated English version available 0 3 Connection...

Page 8: ...dard MH10 8 2 2016 Fig 1 BIC as data matrix code DMC code scheme ECC200 The BIC will be introduced step by step across all product groups Depending on the product it can be found in the following plac...

Page 9: ...tifiers are used by Beckhoff and serve internal processes Structure of the BIC Example of composite information from item 1 to 4 and 6 The data identifiers are marked in red for better display BTN An...

Page 10: ...a recording Envelope monitoring Cycle duration Most frequent value of a recording etc The result or all the measured values are transported to the higher level automation unit Supported Bus Couplers N...

Page 11: ...can also carry out envelope monitoring A trigger starts cyclical processes The result or all the measured values are transported to the higher level automation unit The supply voltage Uv can be drawn...

Page 12: ...cs via the K bus Current input from the K Bus with external supply of the measuring bridge typically 120 mA Current consumption from the K Bus with supply of the measuring bridge 4 x 350 Ohm via KL336...

Page 13: ...process the values Limit values maximum and minimum values will be determined or monitored The KL3362 can also carry out envelope monitoring A trigger starts cyclical processes The result or all the...

Page 14: ...yte Bit width in the output process image Per channel 2 data words 1 status byte Power supply for the electronics via the K bus Current consumption from K bus typically 120 mA Dielectric strength 500...

Page 15: ...trigger can be enabled 41 as follows always i e each trigger event is immediately enabled via the signal at the analog inputs or the digital input each with positive or negative logic and associated s...

Page 16: ...ntact with highly insulating materials synthetic fibers plastic film etc Surroundings working place packaging and personnel should by grounded probably when handling with the devices Each assembly mus...

Page 17: ...l the lock clicks onto the mounting rail If the terminals are clipped onto the mounting rail first and then pushed together without tongue and groove the connection will not be operational When correc...

Page 18: ...components The six spring contacts of the K Bus E Bus deal with the transfer of the data and the supply of the Bus Terminal electronics The power contacts deal with the supply for the field electronic...

Page 19: ...points for testing these Power Feed Terminals can be released and pulled at least 10 mm from the group of terminals WARNING Risk of electric shock The PE power contact must not be used for other poten...

Page 20: ...in relief and the wire connection should be kept as short as possible A distance of approx 10 cm should be maintained to the cable duct 3 4 Connection 3 4 1 Connection system WARNING Risk of electric...

Page 21: ...ual connection wires when the connector is removed Conductor cross sections between 0 08 mm2 and 2 5 mm2 can continue to be used with the proven spring force technology The overview and nomenclature o...

Page 22: ...y don t toggle 2 The wire can now be inserted into the round terminal opening without any force 3 The terminal point closes automatically when the pressure is released holding the wire securely and pe...

Page 23: ...5 mm2 Wire size width fine wire conductors 0 25 1 5 mm2 Wire size width conductors with a wire end sleeve 0 14 0 75 mm2 Wire size width ultrasonically bonded conductors only 1 5 mm2 Wire stripping le...

Page 24: ...ply voltage for digital output OUT 24 V 2 Digital output UB 3 Input for differential voltage of the measuring bridge UV 4 5 V supply voltage for the strain gauges in a bridge circuit or reference inpu...

Page 25: ...nd UV connections for reference must be within the range 5 V to 10 V must not vary by more than 5 during operation Fluctuations of the external supply voltage increase the measurement error After chan...

Page 26: ...ws the connection of two function generators FG1 FG2 to the channels of the KL3362 oscilloscope terminal Terminal point No Connection 24V 1 Supply voltage for digital output OUT 24V 2 Digital output I...

Page 27: ...e rated operating voltage being exceeded by more than 40 due to short term interference voltages The individual terminals may only be unplugged or removed from the Bus Terminal system if the supply vo...

Page 28: ...of the Beckhoff terminal systems in potentially explosive ar eas ATEX Pay also attention to the continuative documentation Notes about operation of the Beckhoff terminal systems in potentially explosi...

Page 29: ...eldbus Box Modules can be prepared before the commissioning phase Later on this configuration can be transferred to the terminal station in the commissioning phase by means of a download For documenta...

Page 30: ...modules directly online The same high level dialogs and register access are available for this purpose as in the configuration phase The KS2000 offers access to the process images of the bus couplers...

Page 31: ...connected fieldbus station In the sample shown this is a BK9000 Bus Coupler for Ethernet a KL1xx2 digital input terminal a KL3661 oscilloscope terminal a KL9010 Bus end terminal Fig 15 Display of the...

Page 32: ...00 tree branches for channel 1 of the KL3681 Click on Settings You can now change the settings of the oscilloscope terminal KL3361 Trigger logic 33 Operating mode and trigger values 33 Process data 35...

Page 33: ...ger logic in detail 40 Enable Connect the lower input of the And gate with the desired function in order to specify when the And gate should switch through a trigger pulse see Trigger logic in detail...

Page 34: ...42 General Here you can specify the general trigger settings see General settings in detail 42 Scaling Here you can specify the scaling see General settings in detail 42 Trigger unit 1 Here you can sp...

Page 35: ...For trigger unit 2 select which trigger parameter you wish to specify with data word 1 DataOUT1 51 of the KL3361 see Output process data in detail 44 Input process image Data word 0 Here you can spec...

Page 36: ...an specify the trigger event see Trigger logic in detail 40 Enable Connect the lower input of the And gate with the desired function in order to specify when the And gate should switch through a trigg...

Page 37: ...lloscope terminal Fig 21 General settings for KL3362 Operation mode Here you can specify the trigger type see General settings in detail 42 General Here you can specify the general trigger settings se...

Page 38: ...rminal Fig 22 Trigger values for KL3362 Trigger unit 1 Here you can specify the trigger values for trigger unit 1 see Trigger values in detail 43 Trigger unit 2 Here you can specify the trigger values...

Page 39: ...of the KL3362 see Output process data in detail 44 Data word 2 For trigger unit 3 select which trigger parameter you wish to specify with data word 2 DataOUT0 channel 2 51 of the KL3362 see Output pro...

Page 40: ...vent Here you can specify the event R40 62 that triggers the trigger Rising edge default The trigger unit responds to the rising edge of the input signal The associated threshold level can be specifie...

Page 41: ...hrough if the signal at analog input 2 of the oscilloscope terminal decreases below the specified switching threshold 2 The threshold level can be specified via the Trigger values 43 tab Action Connec...

Page 42: ...nds on the sample rate Sample Sample Rate Ts 200 s Skipped Samples nSTD 100 tTD Ts x nSTD 200 s x 100 20 ms Test mode active R32 5 59 default not activated Switches the test mode on In test mode a ram...

Page 43: ...unit 1 Scaling Threshold value full scale value x parameter resolution Sample for KL3361 16 mV x 1000 32767 0 488 mV Switching threshold 2 R42 63 default 1000 Here you can specify the switching thres...

Page 44: ...gger unit 3 KL3362 only See Trigger unit 1 Trigger unit 4 KL3362 only See Trigger unit 2 4 5 4 Output process data Output process data in detail Data word 0 Here you can choose which trigger parameter...

Page 45: ...arameter you wish to specify with data word 2 of the oscilloscope terminal for trigger unit 3 see Data word 0 for trigger parameters Data word 3 KL3362 only Here you can choose which trigger parameter...

Page 46: ...ive values have to be below the switching threshold for activating the stop Duty factor Duty factor Jitter Tmax reserved Jitter Tmin reserved Jitter Tmean reserved Histogram Max Most frequent value of...

Page 47: ...a EtherCAT on KL3314 exemplary Using the sample programs This document contains sample applications of our products for certain areas of application The application notes provided here are based on ty...

Page 48: ...sent coupler e g BK1120 or embedded PC KL3314 KL9010 Download https infosys beckhoff com content 1033 kl336x Resources zip 5996114571 zip Preparations for starting the sample programs tnzip file TwinC...

Page 49: ...AT configuration of the example Checking NetId the EtherCAT tab of the EtherCAT device shows the configured NetId The first 4 numbers have to be identical with the project NetId of the target system T...

Page 50: ...appears Multiple evaluation of the memory is thus possible Mean value maximum value minimum value RMS value of the recording can thus be read sequentially Reading the trace memory Samples can be read...

Page 51: ...alignment The Bus Coupler places values on even byte addresses Analog voltages are represented by the oscilloscope terminal KL3361 as follows Voltage Decimal Hexadecimal 20 mV 32767 0x7FFF 0 mV 0 0x0...

Page 52: ...These registers can be set via the register communication or with the KS2000 29 configura tion software CB1 6 reserved CB1 5 reserved CB1 4 reserved CB1 3 bSetDigitalOut Setting the digital output CB...

Page 53: ...ommunication See note below 53 1bin Write access The process data word DataOUT0 51 is used to write the register specified with the register number CB1 5 CB1 0 The process data word DataOUT1 51 is not...

Page 54: ...register communication The control byte of the second channel can be found in the output image of the oscilloscope terminal and is transferred from the controller to the terminal Bit CB2 7 CB2 6 CB2 5...

Page 55: ...f the second channel can be found in the input image of the oscilloscope terminal and is transferred from the terminal to the controller Bit SB2 7 SB2 6 SB2 5 SB2 4 SB2 3 SB2 2 SB2 1 SB2 0 Name bRegAc...

Page 56: ...AM R20 Manufacturer scaling Gain typically 0x0100 typically 256dec R W SEEROM RAM R21 R30 reserved R W SEEROM RAM R31 58 Code word register 0x0000 0dec R W RAM R32 59 Feature register 0x0000 0dec R W...

Page 57: ...mware version the diagnostic register will be used to provide diagnostic information about the state of the oscilloscope terminal R7 Command register This register can be used to transfer commands to...

Page 58: ...ing e g 0x0000 0dec User register The user registers of the oscilloscope terminal can be written by the user program in order to change the characteristics of the oscilloscope terminal at run time R31...

Page 59: ...o trigger 42 0bin not active 0bin 1bin active The trigger unit is automatically activated once the preceding event has been evaluated To this end bit 0 is toggled in status byte 1 SB1 with each new ev...

Page 60: ...rs Low byte The content of the Low byte of this register determines which parameter of the oscilloscope terminal KL3361 is assigned process data register DataOUT0 51 KL3362 is assigned process data re...

Page 61: ...threshold is trigger level 1 The trigger starts as soon as four successive values are below the switching threshold The trigger is stopped as soon as four successive values are above the switching thr...

Page 62: ...KL3362 only 11bin Digital input R40 9 R40 8 Trigger mode 00bin Shot The trigger is activated with an edge of bit bEnableTrigger of control byte 1 CB1 0 if enableSource is set 01bin 01bin Edge The tri...

Page 63: ...it 2 trigger logic see Trigger detector 1 62 R47 Trigger unit 2 switching threshold 1 Switching threshold for the trigger source TriggerSource of trigger unit 2 R48 Trigger unit 2 switching threshold...

Page 64: ...s reset to zero at the start of a recording Offset zero to 0x3FFF contains the trace data From 0x8000 the envelope curve is given R63 Zoom register With the zoom register you can specify that only cer...

Page 65: ...rminal returns the firmware version 0x3341 in the input data word byte 1 and byte 2 This is to be interpreted as an ASCII code ASCII code 0x33 represents the digit 3 ASCII code 0x41 represents the let...

Page 66: ...byte Byte 1 DataIN1 high byte Byte 2 DataIN1 low byte 0x9F 1001 1111bin 0x12 0x35 Explanation The terminal returns the value of the control byte as a receipt in the status byte The terminal returns t...

Page 67: ...eaning during read access Input Data answer of the bus terminal Byte 0 Status byte Byte 1 DataIN1 high byte Byte 2 DataIN1 low byte 0xA0 1010 0000bin 0x00 0x02 Explanation The terminal returns the val...

Page 68: ...Access from the user program KL3361 and KL3362 68 Version 2 2 0 The input data word byte 1 and byte 2 is of no importance after the write access Any values still displayed are invalid...

Page 69: ...for Beckhoff components there Beckhoff Headquarters Beckhoff Automation GmbH Co KG Huelshorstweg 20 33415 Verl Germany Phone 49 5246 963 0 Fax 49 5246 963 198 e mail info beckhoff com Beckhoff Support...

Page 70: ...splay of the fieldbus station in KS2000 31 Fig 16 KS2000 tree branches for channel 1 of the KL3681 32 Fig 17 Trigger logic for KL3361 33 Fig 18 Trigger values for KL3361 34 Fig 19 Process data for KL3...

Reviews: