
LX3V-4AD
9
WECON TECHNOLOGY CO., LTD.
Note
1)
The FROM code for the special function block at position “0" is read from BFM #30 of that block
and stored at D4 in the main unit. CMP is compared to check the block is a LX3V-4AD, if OK M1
is turned ON.
2)
TO code: The analog input channels (CH1, CH2) are setup by writing H3300 to BFM #0 of the
LX3V-4AD
3)
The number of averaged samples for CH1 and CH2 is set to 4 by writing 4 to BFM #1 and #2
respectively.
4)
The operational status of the LX3V-4AD is read from BFM #29 and output as bit devices at the
LX3V main unit. If there are no errors in the operation of the LX3V-4AD, 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 settings sent from the PC.
Only the gain and offset values in the memory of the LX3V-4AD need be adjusted. A voltmeter or an
ammeter for the analog input is not needed. A program for the PC will be needed however.
The following is an example of changing the offset value on input channel CH1 to 0V and the gain
value to 2.5V.
The LX3V-4AD block is in the position of block No.0 (i.e. closest to the LX3V main unit).