Changes for page LX3V-4AD

Last modified by Devin Chen on 2024/11/27 15:04

From version 12.1
edited by Jim
on 2023/08/07 16:27
Change comment: There is no comment for this version
To version 2.2
edited by Leo Wei
on 2022/06/08 14:42
Change comment: Update document after refactoring.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Jim
1 +XWiki.admin
Content
... ... @@ -8,117 +8,38 @@
8 8  = **2 Dimensions** =
9 9  
10 10  (% style="text-align:center" %)
11 -[[image:LX3V-4AD_html_5159808b9e4fa86a.png||height="391" width="1000" class="img-thumbnail"]]
11 +[[image:LX3V-4AD_html_5159808b9e4fa86a.png||class="img-thumbnail" height="391" width="1000"]]
12 12  
13 -1. (((
14 -Extension cable and connector
15 -)))
16 -1. (((
17 -COM LED: Light when communicating Error LED: Channel calibration indicators
18 -)))
19 -1. (((
20 -Power LED: Light when connect to 24V
21 -)))
22 -1. (((
23 -State LED: Light when normal condition
24 -)))
25 -1. (((
26 -Link LED: Light when communicate with PLC
27 -)))
28 -1. (((
29 -Module name
30 -)))
31 -1. (((
32 -Extension module interface
33 -)))
34 -1. (((
35 -DIN rail mounting slot
36 -)))
37 -1. (((
38 -DIN rail hook
39 -)))
40 -1. (((
41 -Holes for direct installation: 2 places (Φ4.5)
42 -)))
13 +① Extension cable and connector
43 43  
44 -(((
45 -(% style="margin-left:auto; margin-right:auto" %)
46 -|=**Name**|=**Description**|=**Light status**|=**Event status**
47 -|(% rowspan="2" %)(((
48 -COM LED
15 +② COM LED: Light when communicating
49 49  
50 -
51 -)))|(% rowspan="2" %)(((
52 -Communication indicator for communication board and acquisition board
17 +③ Power LED: Light when connect to 24V
53 53  
54 -
55 -)))|Flashing|Data interacting
56 -|Off|Data interaction error/stop/failure
57 -|(% rowspan="2" %)(((
58 -ERR LED
19 +④ State LED: Light when normal condition
59 59  
60 -
61 -)))|(% rowspan="2" %)(((
62 -Factory calibration LED
21 +⑤ Module name
63 63  
64 -
65 -)))|Off|Factory calibrated
66 -|Lighting|Factory uncalibrated
67 -|(% rowspan="2" %)(((
68 -24V LED
23 +⑥ Analog signal output terminal
69 69  
70 -
71 -)))|(% rowspan="2" %)(((
72 -Power indicator
25 +⑦ Extension module interface
73 73  
74 -
75 -)))|Off|24V power is abnormal.
76 -|Lighting|24V power is normal.
77 -|(% rowspan="3" %)(((
78 -LINK LED
27 +⑧ DIN rail mounting slot
79 79  
80 -
81 -)))|(% rowspan="3" %)(((
82 -Communication indicator for PLC and expansion module
29 +⑨ DIN rail hook
83 83  
84 -
85 -)))|Flashing|Data interacting
86 -|Off|Data interaction error/stop/failure
87 -|Lighting|Software running abnormal or hardware failure
88 -|(% rowspan="3" %)(((
89 -AD LED
31 +(((
32 +* Please use crimp terminals as indicated on the graph.
33 +* The tightening torque should be applied 5 to 8 Kg.cm.
90 90  
91 -
92 -)))|(% rowspan="3" %)(((
93 -4 channel indicators
35 +(% style="text-align:center" %)
36 +[[image:LX3V-4AD_html_5bc4b53029347d0f.png||class="img-thumbnail" height="195" width="400"]]
94 94  
95 -
96 -)))|Flashing|Input voltage or current range exceed limit or channel unconnected
97 -|Off|Channel closed
98 -|Lighting|Input analog is in the normal range
99 -
100 -[[image:LX3V-4AD_html_5bc4b53029347d0f.png||height="309" style="float:left" width="618" class="img-thumbnail"]]
101 -
102 -
103 -Please use crimp terminals as indicated on the graph.
104 -
105 -The tightening torque should be applied 5 to 8 Kg.cm.
106 -
107 -= =
108 -
109 -= =
110 -
111 -= =
112 -
113 -
114 -
115 -= =
116 -
117 117  = **3 Terminal layouts** =
39 +)))
118 118  
119 119  (% style="text-align:center" %)
120 -[[image:image-20220728103451-1.png||class="img-thumbnail"]]
121 -)))
42 +[[image:LX3V-4AD_html_5dc7f9d73b00bd35.png||class="img-thumbnail" height="604" width="600"]]
122 122  
123 123  (((
124 124  1. The analog input is received through a twisted pair shielded cable. This cable should be wired separately from power lines or any other lines which may induce electrical noise.
... ... @@ -127,9 +127,11 @@
127 127  1. If there is excessive electrical noise, connect the FG frame ground terminal with the grounded terminal on the LX3V-4AD.
128 128  1. Connect the ground terminal on the LX3V-4AD unit with the grounded terminal on the main unit. Use class 3 grounding on the main unit, if available.
129 129  
130 -**Note: when connect a 4-20ma sensor(need +24V working voltage), the wiring is as below:**
51 +(% style="text-align:center" %)
52 +[[image:4-20mA 2-wire.png||class="img-thumbnail" height="528" width="600"]]
131 131  
132 -[[image:企业微信截图_16771315134574.png]]
54 +(% style="text-align:center" %)
55 +[[image:4-20mA 3-wire.png||class="img-thumbnail" height="510" width="600"]]
133 133  
134 134  = **4 Installation** =
135 135  )))
... ... @@ -137,25 +137,25 @@
137 137  **Environment specification**
138 138  
139 139  (% class="table-bordered" %)
140 -|=(% style="width: 490px;" %)**Item**|=(% style="width: 585px;" %)**Specification**
141 -|(% style="width:490px" %)Environmental specifications (excluding following)|(% style="width:585px" %)Same as those for the LX3V main unit
142 -|(% style="width:490px" %)Dielectric withstand voltage|(% style="width:585px" %)500VAC, 1min (between all terminals and ground)
63 +|**Item**|**Specification**
64 +|Environmental specifications (excluding following)|Same as those for the LX3V main unit
65 +|Dielectric withstand voltage|500VAC, 1min (between all terminals and ground)
143 143  
144 144  **Power supply specification**
145 145  
146 146  (% class="table-bordered" %)
147 -|=(% style="width: 294px;" %)**Item**|=(% style="width: 781px;" %)**Specification**
148 -|(% style="width:294px" %)Analog circuits|(% style="width:781px" %)24V DC ± 10%, 55mA (external power supply from main unit)
149 -|(% style="width:294px" %)Digital circuits|(% style="width:781px" %)5V DC, 90mA (internal power supply from main unit)
70 +|**Item**|**Specification**
71 +|Analog circuits|24V DC ± 10%, 55mA (external power supply from main unit)
72 +|Digital circuits|5V DC, 90mA (internal power supply from main unit)
150 150  
151 151  **Performance specification**
152 152  
153 153  **Analog Inputs**
154 154  
155 -(% style="margin-left:auto; margin-right:auto" %)
156 -|= |=**Voltage Input**|=**Current input**
157 -|=**Items**|(% colspan="2" %)Either voltage or current input can be selected with your choice of input terminal. Up to four input points can be used at one time.
158 -|=**Analog input range**|(((
78 +(% class="table-bordered" %)
79 +| |**Voltage Input**|**Current input**
80 +|**Items**|(% colspan="2" %)Either voltage or current input can be selected with your choice of input terminal. Up to four input points can be used at one time.
81 +|**Analog input range**|(((
159 159  DC -10V to +10V (input resistance: 200kΩ).
160 160  
161 161  Warning: this unit may be damaged by input voltage in excess of ±15V
... ... @@ -164,34 +164,33 @@
164 164  
165 165  Warning: this unit may be damaged by input currents in excess of ±32mA.
166 166  )))
167 -|=**Digital output**|(% colspan="2" %)(((
90 +|**Digital output**|(% colspan="2" %)(((
168 168  12-bit conversion stored in 16-bit 2’s complement form
169 169  
170 -Maximum value: +2047 Minimum value: -2048
93 +Maximum value:+2047 Minimum value:-2048
171 171  )))
172 -|=**Analog accuracy**|±1% (for the range of -10V to +10V)|±1% (for the range of -20mA to +20mA)
173 -|=(((
95 +|**Analog accuracy**|±1% (for the range of -10V to +10V)|±1% (for the range of -20mA to +20mA)
96 +|(((
174 174  **Conversion**
175 175  
176 -**time for each channel**
177 -)))|(% colspan="2" %)Tconv ≤10ms (High-speed), 10ms≤Tconv≤20ms (Middle speed), Tconv>20ms (Low speed)
99 +**speed**
100 +)))|(% colspan="2" %)15ms/channel (Normal speed), 6ms/channel (High speed)
178 178  
179 179  **Analog Inputs continued...**
180 180  
181 181  (% class="table-bordered" %)
182 -|=**Preset 0 (-10V to +10V)**|=**Preset 1 (+4mA to +20mA)**|=**Preset 2 (-20mA to +20mA)**
183 -|[[image:LX3V-4AD_html_8bdc9efc08b433c8.png||height="371" width="420" class="img-thumbnail"]]|[[image:LX3V-4AD_html_a268382a2adb0b80.png||height="345" width="420" class="img-thumbnail"]]|[[image:LX3V-4AD_html_a58cfb9f37ade123.png||height="363" width="420" class="img-thumbnail"]]
105 +|**Preset 0 (-10V to +10V)**|**Preset 1 (+4mA to +20mA)**|**Preset 2 (-20mA to +20mA)**
106 +|[[image:LX3V-4AD_html_8bdc9efc08b433c8.png||class="img-thumbnail"]]|[[image:LX3V-4AD_html_a268382a2adb0b80.png||class="img-thumbnail"]]|[[image:LX3V-4AD_html_a58cfb9f37ade123.png||class="img-thumbnail"]]
184 184  
185 -(% class="box infomessage" %)
186 -(((
187 -**✎Note: **Preset ranges are selected by an appropriate setting in buffer memory of the analog block. Current/Voltage input selection must match the correct input terminal connections.
188 -)))
108 +**✎Note: **
189 189  
110 +Preset ranges are selected by an appropriate setting in buffer memory of the analog block. Current/Voltage input selection must match the correct input terminal connections.
111 +
190 190  **Miscellaneous**
191 191  
192 192  (% class="table-bordered" %)
193 -|=(% scope="row" style="width: 147px;" %)**Item**|=(% style="width: 928px;" %)**Description**
194 -|=(% style="width: 147px;" %)Isolation|(% style="width:928px" %)(((
115 +|**Item**|**Description**
116 +|Isolation|(((
195 195  Photo-couple isolation between analog and digital circuits. DC/DC converter isolation of power from LX3VCPU.
196 196  
197 197  No isolation between analog channels.
... ... @@ -199,44 +199,28 @@
199 199  
200 200  **Allocation of buffer memories (BFM)**
201 201  
202 -(% style="margin-left:auto; margin-right:auto" %)
203 -|=**BFM**|=(% colspan="9" %)**Description**
124 +(% class="table-bordered" %)
125 +|**BFM**|(% colspan="9" %)**Description**
204 204  |*#0|(% colspan="9" %)Channel initialization, default=H0000
205 -|*#1|Channel 1|(% colspan="8" rowspan="4" %)(((
127 +|*#1|(% style="width:244px" %)Channel 1|(% colspan="8" rowspan="4" style="width:769px" %)(((
206 206  Contains the number of samples (1 to 4096) to be used for an averaged result.
207 207  
208 208  The default setting is 8-normal speed. High speed operation can be selected with a value of 1.
209 209  )))
210 -|*#2|Channel 2
211 -|*#3|Channel 3
212 -|*#4|Channel 4
213 -|#5|Channel 1|(% colspan="8" rowspan="4" %)These buffer memories contain the averaged input values for the number of samples entered for the channel in buffer memories #1 to #4 respectively.
214 -|#6|Channel 2
215 -|#7|Channel 3
216 -|#8|Channel 4
217 -|#9|Channel 1|(% colspan="8" rowspan="4" %)These buffer memories contain the present value currently being read by each input channel.
218 -|#10|Channel 2
219 -|#11|Channel 3
220 -|#12|Channel 4
132 +|*#2|(% style="width:244px" %)Channel 2
133 +|*#3|(% style="width:244px" %)Channel 3
134 +|*#4|(% style="width:244px" %)Channel 4
135 +|#5|(% style="width:244px" %)Channel 1|(% colspan="8" rowspan="4" style="width:769px" %)These buffer memories contain the averaged input values for the number of samples entered for the channel in buffer memories #1 to #4 respectively.
136 +|#6|(% style="width:244px" %)Channel 2
137 +|#7|(% style="width:244px" %)Channel 3
138 +|#8|(% style="width:244px" %)Channel 4
139 +|#9|(% style="width:244px" %)Channel 1|(% colspan="8" rowspan="4" style="width:769px" %)These buffer memories contain the present value currently being read by each input channel.
140 +|#10|(% style="width:244px" %)Channel 2
141 +|#11|(% style="width:244px" %)Channel 3
142 +|#12|(% style="width:244px" %)Channel 4
221 221  |#13-#14|(% colspan="9" %)Reserved
222 -|(% rowspan="10" %)#15|(% rowspan="10" %)(((
223 -Selection of A/D conversion speed
224 -
225 -Please refer to note 2
226 -)))|(% colspan="4" %)Set value|(% colspan="4" %)(((
227 -Conversion time
228 -
229 -(Unit: ms/channel)
230 -)))
231 -|(% colspan="4" %)0 (Default)|(% colspan="4" %)15
232 -|(% colspan="4" %)1|(% colspan="4" %)6
233 -|(% colspan="4" %)10|(% colspan="4" %)3
234 -|(% colspan="4" %)11|(% colspan="4" %)4.5
235 -|(% colspan="4" %)12|(% colspan="4" %)7
236 -|(% colspan="4" %)13|(% colspan="4" %)12.5
237 -|(% colspan="4" %)14|(% colspan="4" %)23.5
238 -|(% colspan="4" %)15|(% colspan="4" %)45.5
239 -|(% colspan="4" %)16|(% colspan="4" %)101
144 +|(% rowspan="2" %)#15|(% rowspan="2" style="width:244px" %)Selection of A/D conversion speed please refer to note 2|(% colspan="8" style="width:769px" %)When set to 0, a normal speed is selected of 15m/s.ch (default)
145 +|(% colspan="8" style="width:769px" %)When set to 1, a high speed is selected of 6m/s.ch
240 240  |#16-#19|(% colspan="9" %)Reserved
241 241  |*#20|(% colspan="9" %)Reset to Defaults and Preset. Default = 0
242 242  |*#21|(% colspan="9" %)(((
... ... @@ -244,9 +244,10 @@
244 244  
245 245  Default = (0, 1) Permit
246 246  )))
247 -|*#22|Offset, Gain Adjust|G4|04|G3|03|G2|01|G1|01
248 -|*#23|(% colspan="9" %)Offset Value    Default = 0
249 -|*#24|(% colspan="9" %)Gain Value      Default = 5,000
153 +|(% rowspan="2" %)*#22|(% rowspan="2" style="width:244px" %)Offset, Gain Adjust|(% style="width:84px" %)b7|(% style="width:91px" %)b6|(% style="width:94px" %)b5|(% style="width:94px" %)b4|(% style="width:100px" %)b3|(% style="width:107px" %)b2|(% style="width:120px" %)b1|b0
154 +|(% style="width:84px" %)G4|(% style="width:91px" %)O4|(% style="width:94px" %)G3|(% style="width:94px" %)O3|(% style="width:100px" %)G2|(% style="width:107px" %)O2|(% style="width:120px" %)G1|O1
155 +|*#23|(% colspan="9" %)Offset Value Default = 0
156 +|*#24|(% colspan="9" %)Gain Value Default = 5,000
250 250  |#25-#28|(% colspan="9" %)Reserved
251 251  |#29|(% colspan="9" %)Error status
252 252  |#30|(% colspan="9" %)(((
... ... @@ -256,48 +256,46 @@
256 256  )))
257 257  |#31|(% colspan="9" %)Hardware version
258 258  
259 -(% class="box infomessage" %)
260 -(((
261 -**✎Note: **
262 -
263 263  * In buffer memory locations (BFM’s) marked with an “*” data can be written from the PC using the TO command.
264 264  * For buffer memories (BFM’s) without “*”mark, data can be read to the PC using the FROM command.
265 265  * Before reading from the analog special function block, ensure these settings have been sent to the analog special function block. Otherwise, the previous values held in the analog block will be used.
266 266  * Offset (intercept): The analog input value when the digital output becomes 0.
267 267  * Gain (slope): The analog input value when the digital output becomes +1000.
268 -)))
269 269  
270 -**Channel Selection**
172 +**✎Note: **
271 271  
174 +* **Channel Selection**
175 +
272 272  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.
273 273  
274 274  (% class="table-bordered" %)
275 -|=(% scope="row" %)**BFM#0**|=**Analog input**|=**Digital output**|=**Resolution**|=**Offset/Gain**|=**Constant**
276 -|=0|-10V~~10V|-2000~~2000|5 mV|0/5000|1000
277 -|=1|4mA~~20mA|0~~1000|16µA|4000/20000|1000
278 -|=2|-20mA~~20mA|-1000~~1000|20µA|0/20000|1000
279 -|=3|Disabled|/|/|/|/
280 -|=4|-10V~~10V|-10000~~10000|1mV|0/5000|10000
281 -|=5|4 mA ~~20mA|0~~10000|1.6µA|4000/20000|10000
282 -|=6|-20mA~~20mA|-10000~~10000|2.0µA|0/20000|10000
179 +|**BFM#0**|**Analog input**|**Digital output**|**Resolution**|**Offset/Gain**|**Constant**
180 +|0|-10V~~10V|-2000~~2000|5 mV|0/5000|1000
181 +|1|4mA~~20mA|0~~1000|16µA|4000/20000|1000
182 +|2|-20mA~~20mA|-1000~~1000|20µA|0/20000|1000
183 +|3|Disabled|/|/|/|/
184 +|4|-10V~~10V|-10000~~10000|1mV|0/5000|10000
185 +|5|4 mA ~~20mA|0~~10000|1.6µA|4000/20000|10000
186 +|6|-20mA~~20mA|-10000~~10000|2.0µA|0/20000|10000
283 283  
284 284  **Example: H3310**
285 285  
286 -* CH1: Preset range (-10V to +10V).
287 -* CH2: Preset range (+4mA to +20mA).
288 -* CH3, CH4: Channel OFF.
190 +CH1: Preset range (-10V to +10V).
289 289  
290 -**Analog to Digital Conversion Speed Change**
192 +CH2: Preset range (+4mA to +20mA).
291 291  
292 -By writing 0, 1 or decimal numbers between 10-16 into BFM#15 of the LX3V-4AD, the time at which A/D conversion is performed can be changed.
194 +CH3, CH4: Channel OFF.
293 293  
294 -However, the following points should be noted:
196 +* **Analog to Digital Conversion Speed Change**
295 295  
296 -1. To maintain a high-speed conversion, please use the FROM/TO commands as seldom as possible.
297 -1. When a conversion speed change occurs, BFM #1-#4 are set to their default values immediately after the change. Please be careful if an A/D time conversion will be part of the normal program execution.
298 -1. High-speed time conversion is usually used with BFM#1-#4.
299 -1. BFM#15 is configurated with the corresponding conversion time of 10-16, only supported by software version 20000 or above.
198 +By writing 0 or 1 into BFM #15 of the LX3V-4AD, the speed at which A/D conversion is performed can be changed.
300 300  
200 +However the following points should be noted: To maintain a high speed conversion rate, use the FROM/TO commands as seldom as possible.
201 +
202 +**✎Note: **
203 +
204 +* 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.
205 +
301 301  **Adjusting Gain and Offset values**
302 302  
303 303  **Formula for Gain/Offset: Digital output= (Analog input-Offset)*Constant/ (Gain-Offset)**
... ... @@ -305,15 +305,7 @@
305 305  * 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.
306 306  * 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).
307 307  * 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.
308 -* (((
309 -Example:
310 310  
311 -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.
312 -)))
313 -* Channels can be adjusted individually or together with the same gain and offset values.
314 -* 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.
315 -* When gain is less than or equal to offset, error will be adjusted. Gain and offset will not change. Error status will be given at BFM#29 b1. B4-b7 will give a specific channel offset/gain error.
316 -
317 317  Example:
318 318  
319 319  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.
... ... @@ -323,22 +323,20 @@
323 323  
324 324  **Status Information BFM #29**
325 325  
326 -(% style="margin-left:auto; margin-right:auto" %)
327 -|=**Bit devices of BFM #29**|=**ON**|=**OFF**
328 -|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
329 -|b1: Offset/gain error|Offset/Gain data in EEPROM is corrupted or adjustment error.|Offset/Gain data normal
330 -|b2: Power source abnormality|24V DC power supply failure|Power supply normal
331 -|b3: Hardware error|A/D converter or other hardware failure|Hardware normal
332 -|b4: Channel 1 offset/gain error|(% rowspan="4" %)When channel offset/gain error is modified, the corresponding position is ON.|(% rowspan="4" %)Offset/Gain adjustment normal
333 -|b5: Channel 2 offset/gain error
334 -|b6: Channel 3 offset/gain error
335 -|b7: Channel 4 offset/gain error
336 -|b10: Digital range error|Digital output value is less than -2048 or more than +2047|Averaging is normal. (Between 1 and 4096)
337 -|b11: Averaging error|Number of averaging samples is 4097 or more or 0 or less (default of 8 will be used)|Averaging is normal. (Between 1 and 4096)
338 -|b12: Adjust prohibit|Prohibit-(b1, b0) of BFM #21 is set to (1, 0)|Permit-(b1, b0) of BFM #21 is set to (0,1)
223 +(% class="table-bordered" %)
224 +|**Bit devices of BFM #29**|(% style="width:570px" %)**ON**|(% style="width:313px" %)**OFF**
225 +|b0: Error|(% style="width:570px" %)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|(% style="width:313px" %)No error
226 +|b1: Offset/gain error|(% style="width:570px" %)Offset/Gain data in EEPROM is corrupted or adjustment error.|(% style="width:313px" %)Offset/Gain data normal
227 +|b2: Power source abnormality|(% style="width:570px" %)24V DC power supply failure|(% style="width:313px" %)Power supply normal
228 +|b3: Hardware error|(% style="width:570px" %)A/D converter or other hardware failure|(% style="width:313px" %)Hardware normal
229 +|b10: Digital range error|(% style="width:570px" %)Digital output value is less than -2048 or more than +2047|(% style="width:313px" %)Averaging is normal. (between 1 and 4096)
230 +|b11: Averaging error|(% style="width:570px" %)Number of averaging samples is 4097 or more or 0 or less (default of 8 will be used)|(% style="width:313px" %)Averaging is normal. (between 1 and 4096)
231 +|b12: Adjust prohibit|(% style="width:570px" %)Prohibit-(b1, b0) of BFM #21 is set to (1, 0)|(% style="width:313px" %)Permit-(b1, b0) of BFM #21 is set to (0,1)
339 339  
340 -**✎Note: **b8, b9 and b13 to b15 are undefined.
233 +**✎Note: **
341 341  
235 +* b4 to b7, b9 and b13 to b15 are undefined.
236 +
342 342  **Identification Code BFM #30**
343 343  
344 344  The identification (or ID) code number for a Special Function Block is read using the FROM command.
... ... @@ -357,41 +357,46 @@
357 357  
358 358  Gain determines the angle or slope of the calibration line, identified at a digital value of 1000.
359 359  
360 -* (a) Small gain: Large steps in digital readings
361 -* (b) Zero gain: Default is 5V or 20mA.
362 -* (c) Large gain: Small steps in digital readings.
255 +(a) Small gain: Large steps in digital readings
363 363  
257 +(b) Zero gain: Default is 5V or 20mA.
258 +
259 +(c) Large gain: Small steps in digital readings.
260 +
364 364  Offset is the “Position” of the calibrated line, identified at a digital value of 0.
365 365  
366 -* (d) Negative offset.
367 -* (e) Zero offset: Default is 0V or 4mA.
368 -* (f) Positive offset.
263 +(d) Negative offset.
369 369  
265 +(e) Zero offset: Default is 0V or 4mA.
266 +
267 +(f) Positive offset.
268 +
370 370  (% style="text-align:center" %)
371 -[[image:LX3V-4AD_html_f78533c1d988f63f.png||height="298" width="800" class="img-thumbnail"]]
270 +[[image:LX3V-4AD_html_f78533c1d988f63f.png||class="img-thumbnail" height="298" width="800"]]
372 372  
373 373  Offset and gain can be set independently or together. Reasonable offset ranges are -5 to +5V or -20mA to 20mA, and gain values 1V to 15V or 4mA to 32mA. Gain and offset can be adjusted by software in the LX3V main unit (please refer to program example 2).
374 374  
375 -* Bit device’s b1, b0 of the gain/offset BFM #21 should be set to 0, 1 to allow adjustment.
274 +* Bit device’s b1, b2 of the gain/offset BFM #21 should be set to 0, 1 to allow adjustment.
376 376  * Once adjustment is complete these bit devices should be set to 1, 0 to prohibit any further changes.
377 377  * Channel initialization (BFM #0) should be set to the nearest range, i. e. voltage/current etc.
378 378  
379 379  = **6 Example program** =
380 380  
381 -**Basic program**
280 +**basic program**
382 382  
383 -In the following example channels CH1 and CH2 are used as voltage inputs. The LX3V-4AD block is connected at the position of special function block No.0. Averaging is set at 4 and data registers D0 and D1 of the PC receive the averaged digital data. 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.
282 +In the following example channels CH1 and CH2 are used as voltage inputs. The LX3V-4AD block is connected at the position of special function block No.0. Averaging is set at 4 and data registers D0 and D1 of the PC receive the averaged digital data.
384 384  
385 -[[image:LX3V-4AD_html_e3a9b9608260f138.png||height="297" style="float:left" width="600" class="img-thumbnail"]]
284 +(% style="text-align:center" %)
285 +[[image:LX3V-4AD_html_e3a9b9608260f138.png||class="img-thumbnail" height="297" width="600"]]
386 386  
387 387  **✎Note: **
388 388  
289 +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.
389 389  1. TO code: The analog input channels (CH1, CH2) are setup by writing H3300 to BFM #0 of the LX3V-4AD
390 390  1. The number of averaged samples for CH1 and CH2 is set to 4 by writing 4 to BFM #1 and #2 respectively.
391 391  1. 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.
392 392  1. 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.
393 393  
394 -
395 395  **Using gain and offset in a program**
396 396  
397 397  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.
... ... @@ -405,32 +405,27 @@
405 405  Example: Adjusting gain/offset via software settings
406 406  
407 407  (% style="text-align:center" %)
408 -[[image:LX3V-4AD_html_41bef52ee180f2c9.png||height="980" width="600" class="img-thumbnail"]]
308 +[[image:LX3V-4AD_html_41bef52ee180f2c9.png||class="img-thumbnail" height="980" width="600"]]
409 409  
410 410  (((
411 411  Adjustment start
412 412  
413 -* (H0000)->BFM#0 (initialize input channels). Enter the instructions on the left and RUN the PC
414 -* (K1)->BFM#21. BFM#21 must be set to permit with (b1, b0)=(0,1)
415 -* (K0)->BFM#22 (offset/gain adjusts). Reset adjust bits
416 -* (K0)-> BFM#23 (offset)
417 -* (K2500)-> BFM#24 (gain)
418 -* (H0003)->BFM#22(offset/gain adjusts). 3=0011 i.e. O1=1, G1=1. Therefore channel 1 is adjusted.
313 +(H0000)->BFM#0 (initialize input channels). Enter the instructions on the left and RUN the PC
419 419  
420 -Adjustment ends.
315 +(K1)->BFM#21. BFM#21 must be set to permit with (b1, b0)=(0,1)
421 421  
422 -(K2)-> BFM#21. BFM#21 gain/offset adjust prohibit
317 +(K0)->BFM#22 (offset/gain adjusts). Reset adjust bits
423 423  
424 -**High-speed conversion by changing A/D conversion time in a program**
319 +(K0)-> BFM#23 (offset)
425 425  
426 -[[image:/bin/download/Expansions/1%20Module/Analog/LX3V-4AD/WebHome/6.3-%E5%9B%BE%E7%89%871.png?rev=1.1||alt="6.3-图片1.png"]][[image:/bin/download/Expansions/1%20Module/Analog/LX3V-4AD/WebHome/6.3-%E5%9B%BE%E7%89%871.png?rev=1.1||alt="6.3-图片1.png"]][[image:/bin/download/Expansions/1%20Module/Analog/LX3V-4AD/WebHome/6.3-%E5%9B%BE%E7%89%871.png?rev=1.1||alt="6.3-图片1.png"]][[image:/bin/download/Expansions/1%20Module/Analog/LX3V-4AD/WebHome/6.3-%E5%9B%BE%E7%89%871.png?rev=1.1||alt="6.3-图片1.png"]]**[[image:6.3-图片1.png]]**
427 -)))
321 +(K2500)-> BFM#24 (gain)
428 428  
429 -Writing K10 to BFM#15 and set conversion time of all channels as 3ms.
323 +(H0003)->BFM#22(offset/gain adjusts). 3=0011 i.e. O1=1, G1=1. Therefore channel 1 is adjusted.
430 430  
431 -Writing 1 to BFM#1 and set Channel 1 sample count to 1 to Channel 1 high-speed conversion.
325 +Adjustment ends.
432 432  
433 -= =
327 +(K2)-> BFM#21. BFM#21 gain/offset adjust prohibit
328 +)))
434 434  
435 435  = **7 Diagnostics** =
436 436  
... ... @@ -444,7 +444,7 @@
444 444  
445 445  **Error checking**
446 446  
447 -If the LX3V-4AD special function block does not seem to operate normally, check the following items.
342 +* If the LX3V-4AD special function block does not seem to operate normally, check the following items.
448 448  
449 449  Check the status of the POWER LED.
450 450  
6.3-图片1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Jim
Size
... ... @@ -1,1 +1,0 @@
1 -227.5 KB
Content
image-20220728103451-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -179.9 KB
Content
企业微信截图_16771315134574.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Jim
Size
... ... @@ -1,1 +1,0 @@
1 -34.5 KB
Content