background image

                                                                                                                                                 

LX3V-4AD

 

6                                                       

                                                                       

WECON TECHNOLOGY CO., LTD.

 

By  writing  0  or  1  into  BFM  #15  of  the  LX3V-4AD,  the  speed  at  which  A/D  conversion  is 

performed can be changed. 

However the following points should be noted: To maintain a high speed conversion rate, use 

the FROM/TO commands as seldom as possible. 

 

NOTES:   

 

When  a  conversion  speed  change  is  made,  BFM  #1-#4  are  set  to  their  default  values 

immediately after the change. This is regardless of the values they held originally. Bear this in 

mind if a speed change will be made as part of the normal program execution. 

 

3)

 

Adjusting Gain and Offset values 

Formula for Gain/Offset: Digital output= (Analog input-Offset)*Constant/ (Gain-Offset) 

a)

 

When buffer memory BFM #20 is activated by setting it to K1, all settings within the analog 

special  function  block  are  reset  to  their  default  settings.  This  is  a  very  quick  method  to 

erase any undesired gain and offset adjustments. 

b)

 

If (b1, b0) of BFM #21 is set to (1, 0), gain and offset adjustments are prohibited to prevent 

inadvertent changes by the operator. In order to adjust the gain and offset values, bits (b1, 

b0) must be set to (0, 1). The default is (0, 1). 

c)

 

Gain and offset values of BFM #23 and #24 are sent to non-volatile memory gain and offset 

registers of the specified input channels. Input channels to be adjusted are specified by the 

appropriate G-O (gain-offset) bits of BFM #22. 

Example:   

If bits G1 and O1 are set to 1, input channel 1 will be adjusted when BFM #22 is written to 

by a TO instruction. 

d)

 

Channels can be adjusted individually or together with the same gain and offset values. 

e)

 

Gain and offset values in BFM #23 #24 are in units of mV or µA. Due to the resolution of 

the unit the actual response will be in steps of 5mV or 20µA. 

 

4)

 

Status Information BFM #29 

 

Bit devices of BFM #29 

ON 

OFF 

b0: Error

 

When  any  of  b1 to  b4  is  ON.  If 

any  of  b2  to  b4  is  ON,  A/D 

conversion of all the channels is 

stopped

 

No error

 

b1: Offset/gain error

 

Offset/Gain  data  in  EEPROM  is 

corrupted or adjustment error.

 

Offset/Gain data normal

 

b2: Power source abnormality

 

24V DC power supply failure

 

Power supply normal

 

Summary of Contents for LX3V-4AD

Page 1: ...LX3V 4AD User manual Website http www we con com cn en Technical Support support we con com cn Skype fcwkkj Phone 86 591 87868869 QQ Group 465230233 Technical forum http wecon freeforums net ...

Page 2: ... and or 4 to 20mA 20 to 20mA resolution 20µA may be selected Data transfer between the LX3V 4AD and the LX3V main unit is by buffer memory exchange There are 32 buffer memories each of 16 bits in the LX3V 4AD LX3V 4AD consumes 5V voltage from LX3V main unit or active extension unit 90mA current of power supply 2 Dimensions Extension cable and connector COM LED Light when communicating Power LED Li...

Page 3: ...be wired separately from power lines or any other lines which may induce electrical noise 2 If a voltage ripple occurs during input or there is electrically induced noise on the external wiring connect a smoothing capacitor of 0 1 to 0 47µF 25V 3 If you are using current input connect the V and I terminals to each other 4 If there is excessive electrical noise connect the FG frame ground terminal ...

Page 4: ...ice of input terminal Up to four input points can be used at one time Analog input range DC 10V to 10V input resistance 200kΩ Warning this unit may be damaged by input voltage in excess of 15V DC 20mA to 20mA input resistance 250Ω Warning this unit may be damaged by input currents in excess of 32mA Digital output 12 bit conversion stored in 16 bit 2 s complement form Maximum value 2047 Minimum val...

Page 5: ...High speed operation can be selected with a value of 1 2 Channel 2 3 Channel 3 4 Channel 4 5 Channel 1 These buffer memories contain the averaged input values for the number of samples entered for the channel in buffer memories 1 to 4 respectively 6 Channel 2 7 Channel 3 8 Channel 4 9 Channel 1 These buffer memories contain the present value currently being read by each input channel 10 Channel 2 ...

Page 6: ...et intercept The analog input value when the digital output becomes 0 Gain slope The analog input value when the digital output becomes 1000 Note 1 Channel Selection Channel initialization is made by a 4 character HEX number HOOOO in buffer memory BFM 0 The least significant character controls channel 1 and the 4 character controls channel4 BFM 0 Analog input Digital output Resolution Offset Gain ...

Page 7: ...n and offset adjustments are prohibited to prevent inadvertent changes by the operator In order to adjust the gain and offset values bits b1 b0 must be set to 0 1 The default is 0 1 c Gain and offset values of BFM 23 and 24 are sent to non volatile memory gain and offset registers of the specified input channels Input channels to be adjusted are specified by the appropriate G O gain offset bits of...

Page 8: ...facility in the program to identify the special function block before commencing data transfer from and to the special function block NOTE Values of BFM 0 23 and 24 are copied to EEPROM memory of the LX3V 4AD BFM 21 and BFM 22 are only copied when data is written to the gain offset command buffer BFM 22 Also BFM 20 causes writing to the EEPROM memory The EEPROM has a life of about 10 000 cycles ch...

Page 9: ... unit please refer to program example 2 Bit device s b1 b2 of the gain offset BFM 21 should be set to 0 1 to allow adjustment Once adjustment is complete these bit devices should be set to 1 0 to prohibit any further changes Channel initialization BFM 0 should be set to the nearest range i e voltage current etc 6 Example program 6 1 basic program In the following example channels CH1 and CH2 are u...

Page 10: ...D then the averaged data BFM s are read 5 In the case of this example BFM 5 and 6 are read into the LX3V main unit and stored at D0 and D1 These devices contain the averaged data for CH1 and CH2 respectively 6 2 Using gain and offset in a program The gain and offset of the LX3V 4AD can be adjusted using push button switches on the input terminal of the PC It can also be adjusted using software set...

Page 11: ...analog special function block Adjustment start H0000 BFM 0 initialize input channels Enter the instructions on the left and RUN the PC K1 BFM 21 BFM 21 must be set to permit with b1 b0 0 1 K0 BFM 22 offset gain adjusts Reset adjust bits K0 BFM 23 offset K2500 BFM 24 gain H0003 BFM 22 offset gain adjusts 3 0011 i e O1 1 G1 1 Therefore channel 1 is adjusted Adjustment ends K2 BFM 21 BFM 21 gain offs...

Page 12: ...Put the LX3V main unit into RUN 7 2 Error checking If the LX3V 4AD special function block does not seem to operate normally check the following items Check the status of the POWER LED Lit The extension cable is properly connected Otherwise Check the connection of the extension cable Check the external wiring Check the status of the 24V LED top right corner of the LX3V 4AD Lit LX3V 4AD is OK 24V DC...

Reviews: