background image

Access from the user program

KL3361 and KL3362

55

Version: 2.2.0

 CAUTION

Invalid process data!

Process data that may still be displayed is not valid!

Status byte 2 (SB2) in register communication

The status byte of 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

bRegAccessQ

R

Register number

Legend

Bit

Name

Description

SB2.7

bRegAccessQ

1

bin

Register access acknowledgement

SB2.6

R

0

bin

Read access

SB2.5-
SB2.0

Register number

Number of the register that was read or written.

Содержание KL3361

Страница 1: ...Documentation KL3361 and KL3362 Oscilloscope Terminal 2 2 0 2019 10 17 Version Date...

Страница 2: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: