Wiki source code of LX3V-4PG

Version 3.1 by Stone Wu on 2022/09/14 16:15

Show last authors
1 = **1 Introduction** =
2
3 The LX3V-4PG is pulse generator unit which has four channels. Each channel can control positioning of an axis independently. It works by sending specified quantity of pulses (200 kHz maximum) to Server controller or step motors.
4
5 The LX3V-4PG is an extension module of LX3V series PLC, which transfers data with the PLC using the FROM/TO instructions.
6
7 There are two versions for LX3V-4PG, one is LX3V-4PGA (Advanced), and the other is LX3V-4PGB (Basic). Please get more detail from [BFM description]
8
9 (% class="box warningmessage" %)
10 (((
11 **Warnings:** Make sure power is Cut off before installation/disassembly of the unit or connection of wires onto the unit, to prevent electric shock or product damage.
12 )))
13
14 = **2 Dimensions** =
15
16 (% style="text-align:center" %)
17 [[image:LX3V-4PG_html_bf6ccc4678f6c050.png||height="426" width="1100" class="img-thumbnail"]]
18
19 1. Extension cable and connector
20 1. Com LED: Light when communicating
21 1. Power LED: Light when connect to 24V
22 1. State LED: Light when normal condition
23 1. Module name
24 1. Analog signal output terminal
25 1. Extension module interface
26 1. DIN rail mounting slot
27 1. DIN rail hook
28 1. Mounting holes (φ4.5)
29
30 = **3 Crimp terminations** =
31
32 (((
33 * Please use crimp terminals as indicated on the graph.
34 * The tightening torque should be applied 5 to 8 Kg.cm.
35 * Other terminals should be empty but only wiring terminals mention in this manual.
36
37 (% style="text-align:center" %)
38 [[image:LX3V-4PG_html_a035e325e1e93843.png||height="195" width="400" class="img-thumbnail"]]
39 )))
40
41 = **4 Terminals Definition** =
42
43 (% class="table-bordered" %)
44 |=(% scope="row" style="width: 80px;" %)**Terminal**|=(% style="width: 267px;" %)**Instruction**|=(% style="width: 90px;" %)**Terminal**|=(% style="width: 278px;" %)**Instruction**|=(% style="width: 91px;" %)**Terminal**|=(% style="width: 269px;" %)**Instruction**
45 |=(% style="width: 80px;" %)COM0|(% style="width:267px" %)Common terminal for channel 1|(% style="width:90px" %)FP2|(% style="width:278px" %)Channel 3 outputs pulses|(% rowspan="2" style="width:91px" %)S/S|(% rowspan="2" style="width:269px" %)Common terminal for X and DOG, it supports NPN/PNP type.
46 |=(% style="width: 80px;" %)FP0|(% style="width:267px" %)Channel 1 outputs pulses|(% style="width:90px" %)RP2|(% style="width:278px" %)Channel 3 outputs direction
47 |=(% style="width: 80px;" %)RP0|(% style="width:267px" %)Channel 1 outputs direction|(% style="width:90px" %)FP3|(% style="width:278px" %)Channel 4 outputs pulses|(% style="width:91px" %)DOG 3|(% style="width:269px" %)Home position return: Channel 4 near point signal input
48 |=(% style="width: 80px;" %)COM1|(% style="width:267px" %)Common terminal for channel 2|(% style="width:90px" %)RP3|(% style="width:278px" %)Channel 4 outputs direction|(% style="width:91px" %)X 0|(% style="width:269px" %)Channel 1 interrupt signal input
49 |=(% style="width: 80px;" %)FP1|(% style="width:267px" %)Channel 2 outputs pulses|(% style="width:90px" %)DOG 0|(% style="width:278px" %)Home position return: Channel 1 near point signal input|(% style="width:91px" %)X 1|(% style="width:269px" %)Channel 2 interrupt signal input
50 |=(% style="width: 80px;" %)RP1|(% style="width:267px" %)Channel 2 outputs direction|(% style="width:90px" %)DOG 1|(% style="width:278px" %)Home position return: Channel 2 near point signal input|(% style="width:91px" %)X 2|(% style="width:269px" %)Channel 3 interrupt signal input
51 |=(% style="width: 80px;" %)COM 2|(% style="width:267px" %)Common terminal for channel 3 and 4|(% style="width:90px" %)DOG 2|(% style="width:278px" %)Home position return: Channel 3 near point signal input|(% style="width:91px" %)X 3|(% style="width:269px" %)Channel 4 interrupt signal input
52
53 = **5 Input and output Specification** =
54
55 **Input specification**
56
57 (% class="table-bordered" %)
58 |=(% colspan="4" %)**LX3V-4PG input specification**
59 |(% colspan="4" %)(((
60 X input and DOG input
61
62 Input terminal: X0-X3, DOG0-DOG3
63
64 This is NPN type, if you want to PNP type, please connect S/S to 24V negative electrode, and X connects to positive electrode.
65
66 (% style="text-align:center" %)
67 [[image:LX3V-4PG_html_3b5702fca4add783.gif||height="352" width="250" class="img-thumbnail"]]
68 )))
69 |Input signal voltage|DC V 24 ±10%|Input signal type|Contact input, NPN and PNP
70 |Input signal current|5 mA /DC24V|Circuit insulation|Optocouples insulation
71 |Input ON current|3.5 mA / DC24 V|Input action|LED turns on, when input ON
72 |Input OFF current|Less than 1.5 mA| |
73
74 == Output specification ==
75
76 (% class="table-bordered" %)
77 |=(% colspan="3" %)**Output circuit**
78 |(% colspan="3" %)(((
79 **Output:**
80
81 FP0-3: High-speed pulse output;
82
83 Electrical parameters: Same as PLC high speed output (Y0-Y1);
84
85 PR0-3: Normal output direction;
86
87 Electrical parameters: Same as PLC normal output ( from Y4);
88
89 (% style="text-align:center" %)
90 [[image:LX3V-4PG_html_9e4a6cda17d864b3.gif||height="194" width="400" class="img-thumbnail"]]
91 )))
92 |(% colspan="2" %)**Items**|**Transistor output**
93 |(% colspan="2" %)Models|LX3V series PLC
94 |(% colspan="2" %)External power supply|DC 5~~30V
95 |(% colspan="2" %)Circuit insulation|Optocouplers insulation
96 |(% colspan="2" %)Action|LED turns on when optocoupler works.
97 |(% rowspan="3" %)(((
98 Maximum load
99 )))|Resistance|0.5A/ each point, 0.8A/ four points (0.3A/each point in FP terminal)
100 |Inductance|12W/DC24V (7.2W/DC24V in FP terminal)
101 |Lamp|0.9W/DC24V (0.9W/DC24V in FP terminal)
102 |(% colspan="2" %)Leakage current|0.1mA/DC30V
103 |(% colspan="2" %)Minimum load|DC5V2mA
104 |(% rowspan="2" %)Response time|Input current (ON)|5us less than 0.2ms (FP terminal)
105 |Input current (OFF)|5us less than 0.2ms (FP terminal)
106 |(% colspan="2" %)Output type|NPN signal
107
108 = **6 Function description** =
109
110 **BFM list**
111
112 (% class="table-bordered" style="width:1087px" %)
113 |(% colspan="8" %)**BFM**|(% rowspan="3" %)**Latched**|(% rowspan="3" %)**Operation**|(% rowspan="3" %)**Register name**|(% rowspan="3" %)**B15**|(% rowspan="3" %)**B14**|(% rowspan="3" %)**B13**|(% rowspan="3" style="width:60px" %)**B12**|(% rowspan="3" style="width:56px" %)**B11**|(% rowspan="3" style="width:106px" %)**B10**|(% rowspan="3" %)**Default**|(% rowspan="3" %)**Range**
114 |(% colspan="2" %)**CH1**|(% colspan="2" %)**CH2**|(% colspan="2" %)**CH3**|(% colspan="2" %)**CH4**
115 |**H16**|**L16**|**H16**|**L16**|**H16**|**L16**|**H16**|**L16**
116 |(% colspan="2" %)0|(% colspan="2" %)40|(% colspan="2" %)80|(% colspan="2" %)120|X|R/W|Pulse rate|(% colspan="6" %)Unit : PLUSE/ REV (Pulse/ Revolution) [1]|2000|1-32,767
117 |2|1|42|41|82|81|122|121|X|R/W|Feed rate|(% colspan="6" %)Unit: it set by b2-b0 of BFM#3 [1]|1000|1-999,999
118 |(% colspan="2" %)3|(% colspan="2" %)43|(% colspan="2" %)83|(% colspan="2" %)123|X|R/W|Parameters|(% colspan="3" %)~-~-|(% style="width:60px" %)DOG input polarity|(% style="width:56px" %)S-type acceleration and deceleration [3]|(% style="width:106px" %)Home position return direction|0|0-5
119 |5|4|45|44|85|84|125|124|X|R/W|Maximum speed)|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|100KHz|10Hz-200,000Hz
120 |(% colspan="2" %)6|(% colspan="2" %)46|(% colspan="2" %)86|(% colspan="2" %)126|X|R/W|Bias speed|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|0Hz|0Hz-10,000Hz
121 |8|7|48|47|88|87|128|127|X|R/W|JOG speed|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|10KHz|10Hz-100,000Hz
122 |10|9|50|49|90|89|130|129|X|R/W|Home position return speed (high speed|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|50KHz|1Hz-100,000Hz
123 |(% colspan="2" %)11|(% colspan="2" %)51|(% colspan="2" %)91|(% colspan="2" %)131|X|R/W|Home position return speed (creep speed)|(% colspan="6" %)The unit value is depending on the system of units set in the BFM #3 b1 and b0|1KHz|0Hz-10,000Hz
124 |(% colspan="2" %)12|(% colspan="2" %)52|(% colspan="2" %)92|(% colspan="2" %)132|X|R/W|Reserved|(% colspan="6" %)~-~-|~-~-|~-~-
125 |14|13|54|53|94|93|134|133|O|R/W|Home position|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|0|-999,999-999,999
126 |(% colspan="2" %)15|(% colspan="2" %)55|(% colspan="2" %)95|(% colspan="2" %)135|X|R/W|Acceleration time|(% colspan="6" %)Time from the bias speed Accelerating to the maximum speed.|100ms|20-32000ms
127 |(% colspan="2" %)16|(% colspan="2" %)56|(% colspan="2" %)96|(% colspan="2" %)136|X|R/W|Deceleration time|(% colspan="6" %)Time from the maximum Deceleration to the bias speed.|100ms|20-32000ms
128 |18|17|58|57|98|97|138|137|X|R/W|Set position (I)|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|0|-999,999-999,999
129 |20|19|60|59|100|99|140|139|X|R/W|Operating speed (I)|(% colspan="6" %)The unit value depends on the system of units set in the BFM #3 b1 and b0|10Hz|10Hz-200,000Hz
130 |22|21|62|61|102|101|142|141|X|R/W|Set position (II)|(% colspan="6" %)The unit value is depending on the system of units set in the BFM #3 b1 and b0|0|-999,999-999,999
131 |24|23|64|63|104|103|144|143|X|R/W|Operating speed (II)|(% colspan="6" %)The unit value is depending on the system of units set in the BFM #3 b1 and b0|10Hz|10Hz-200,000Hz
132 |(% colspan="2" %)25|(% colspan="2" %)65|(% colspan="2" %)105|(% colspan="2" %)145|X|R/W|Operating mode|(% colspan="3" %)-|(% style="width:60px" %)Variable speed operation start|(% style="width:56px" %)-|(% style="width:106px" %)Two-speed position start|~-~-|~-~-
133 |27|26|67|66|107|106|147|146|O|R/W|Current position|(% colspan="6" %)The unit value is depending on the system of units set in the BFM #3 b1 and b0| |
134 |(% colspan="2" %)28|(% colspan="2" %)68|(% colspan="2" %)108|(% colspan="2" %)148|X|R/W|Status flag|(% colspan="5" style="width:259px" %)~-~-|(% style="width:106px" %)Interrupt signal|~-~-|~-~-
135 |(% colspan="2" %)29|(% colspan="2" %)69|(% colspan="2" %)109|(% colspan="2" %)149|X|R|Error code|(% colspan="6" %)~-~-|~-~-|~-~-
136 |(% colspan="2" %)30|(% colspan="2" %)70|(% colspan="2" %)110|(% colspan="2" %)150|X|R|Model code|(% colspan="6" %)(((
137 LX3V-4PGB: 5110;
138
139 LX3V-4PGA: 5120; [5]
140 )))|K5110|
141 |(% colspan="2" %)31|(% colspan="2" %)71|(% colspan="2" %)111|(% colspan="2" %)151|X|R|Version code|(% colspan="6" %) |K13301|~-~-
142 |(% colspan="2" %)32|(% colspan="2" %)72|(% colspan="2" %)112|(% colspan="2" %)152|X|R|Reserved|(% colspan="6" rowspan="8" %)~-~-|(% colspan="2" rowspan="8" %)~-~-
143 |(% colspan="2" %)33|(% colspan="2" %)73|(% colspan="2" %)113|(% colspan="2" %)153|X|R|Reserved
144 |(% colspan="2" %)34|(% colspan="2" %)74|(% colspan="2" %)114|(% colspan="2" %)154|X|R|Reserved
145 |(% colspan="2" %)35|(% colspan="2" %)75|(% colspan="2" %)115|(% colspan="2" %)155|X|R|Reserved
146 |(% colspan="2" %)36|(% colspan="2" %)76|(% colspan="2" %)116|(% colspan="2" %)156|X|R|Reserved
147 |(% colspan="2" %)37|(% colspan="2" %)77|(% colspan="2" %)117|(% colspan="2" %)157|X|R|Reserved
148 |(% colspan="2" %)38|(% colspan="2" %)78|(% colspan="2" %)118|(% colspan="2" %)158|X|R|Reserved
149 |(% colspan="2" %)39|(% colspan="2" %)79|(% colspan="2" %)119|(% colspan="2" %)159|X|R|Reserved
150
151 (% class="table-bordered" style="width:1060px" %)
152 |=(% rowspan="4" scope="row" style="width: 96px;" %)**BFM List**|(% style="width:71px" %)**CH1**|(% style="width:367px" %)3|(% style="width:274px" %)25|(% style="width:259px" %)28
153 |=(% style="width: 71px;" %)**CH2**|(% style="width:367px" %)43|(% style="width:274px" %)65|(% style="width:259px" %)68
154 |=(% style="width: 71px;" %)**CH3**|(% style="width:367px" %)83|(% style="width:274px" %)105|(% style="width:259px" %)108
155 |=(% style="width: 71px;" %)**CH4**|(% style="width:367px" %)123|(% style="width:274px" %)145|(% style="width:259px" %)148
156 |=(% colspan="2" style="width: 167px;" %)**Device name**|(% style="width:367px" %)Parameters|(% style="width:274px" %)Operating mode|(% style="width:259px" %)Flags
157 |=(% colspan="2" style="width: 167px;" %)**b9**|(% style="width:367px" %)Rotation direction|(% style="width:274px" %)(((
158 Interrupt
159
160 single speed positioning start[3]
161 )))|(% style="width:259px" %)CLR signal
162 |=(% colspan="2" style="width: 167px;" %)**b8**|(% style="width:367px" %)~-~-|(% style="width:274px" %)Single speed positioning start|(% style="width:259px" %)Positioning completed flag
163 |=(% colspan="2" style="width: 167px;" %)**b7**|(% style="width:367px" %)~-~-|(% style="width:274px" %)Relative /absolute position|(% style="width:259px" %)Error flag
164 |=(% colspan="2" style="width: 167px;" %)**b6**|(% style="width:367px" %)Interrupt signal input polarity[3]|(% style="width:274px" %)(((
165 Home position
166
167 return start
168 )))|(% style="width:259px" %)Current position value overflow
169 |=(% colspan="2" style="width: 167px;" %)**b5**|(% rowspan="2" style="width:367px" %)Positioning data multiple 10^^0^^~~10^^3^^|(% style="width:274px" %)JOG- operation|(% style="width:259px" %)~-~-
170 |=(% colspan="2" style="width: 167px;" %)**b4**|(% style="width:274px" %)JOG+ operation|(% style="width:259px" %)DOG signal
171 |=(% colspan="2" style="width: 167px;" %)**b3**|(% rowspan="2" style="width:367px" %) |(% style="width:274px" %)Forward pulse stop|(% style="width:259px" %)Stop signal
172 |=(% colspan="2" style="width: 167px;" %)**b2**|(% style="width:274px" %)Reverse pulse stop|(% style="width:259px" %)Home position return completed
173 |=(% colspan="2" style="width: 167px;" %)**b1**|(% rowspan="2" style="width:367px" %)System units: motor systems, mechanical systems, combined systems.|(% style="width:274px" %)STOP|(% style="width:259px" %)Reverse rotation/ Forward rotation
174 |=(% colspan="2" style="width: 167px;" %)**b0**|(% style="width:274px" %)Error reset|(% style="width:259px" %)Ready/Busy
175
176 **✎Note: **Symbol remarks: O means power-off save type; X means power-off non-save type; R means read only; W means read and write.
177
178 1. Unit is um/R, mdeg/R or 10-4 inch/R.
179 1. Unit is PLS, um/R, mdeg/R or 10-4 inch depending on the system of units set in the BFM #3 b1 and b0.
180 1. S-type acceleration and deceleration interrupt single speed positioning and two-speed positioning are available in advanced version.
181 1. When there are more than one bits set on in BFM #25 b6~~b4, b12~~b8, the operation will not be executed.
182 1. “5110” (basic): it has JOG, single speed positioning, home position return and speed change; “5120” (advanced): it has all functions.
183
184 = **7 BFM instruction** =
185
186 **System of Units and Parameter Setting**
187
188 **[BFM #0] Pulse rate**
189
190 This is the count of input pulses what the motor needs to rotate 1 revolution. It is not the count of encoder pulses that generates by motor when it rotates 1 revolution. (The pulse speed is different value according with the electronic gear ratio.) The BFM #0 is not required to be set when the motor system of units is selected.
191
192 **[BFMs #2 and #1] Feed rate**
193
194 * b1 (distance specification) = 1 to 999,999 um/R
195 * b2 (angle specification) = 1 to 999,999 mdeg/R
196 * b3 (distance specification) = 1 to 999,999x10-4 inch/R
197
198 This is the machine feeding distance while the motor rotates by 1 revolution. One of B1, B2 and B3 could be selected, the unit could be um/R, mdeg/R and 10-4 inch/R. The BFMs #2 and #1 are not required to be set when the motor system of units is selected.
199
200 **[BFM #3] Parameters (b0 to b15)**
201
202 System of units (b1, b0)
203
204 (% class="table-bordered" %)
205 |=(% style="width: 89px;" %)**b1**|=(% style="width: 62px;" %)**b0**|=(% style="width: 220px;" %)**System of units**|=(% style="width: 705px;" %)**Remarks**
206 |(% style="width:89px" %)0|(% style="width:62px" %)0|(% style="width:220px" %)Motor system|(% style="width:705px" %)Units based on pulses
207 |(% style="width:89px" %)0|(% style="width:62px" %)1|(% style="width:220px" %)Machine system|(% style="width:705px" %)Units based on lengths and angles
208 |(% style="width:89px" %)1|(% style="width:62px" %)0|(% rowspan="2" style="width:220px" %)Combined system|(% rowspan="2" style="width:705px" %)Units based on lengths and angles for position units based on HZ for speed
209 |(% style="width:89px" %)1|(% style="width:62px" %)1
210
211 The table below shows the units for position and speed in accordance with the setting of the BFMs #2 and #1
212
213 (% class="table-bordered" %)
214 |=(% scope="row" %) |=**Selection of feed rate**|=**Motor system**|=**Machine system**|=**Combined system**
215 |(% rowspan="3" %)Position data*1|Unit 1|PLS|(% colspan="2" %)um
216 |Unit 2|PLS|(% colspan="2" %)mdeg
217 |Unit 3|PLS|(% colspan="2" %)10^^-4^^ inch
218 |(% rowspan="3" %)Speed data*2|Unit 1|(% colspan="2" %)Hz|cm / min
219 |Unit 2|(% colspan="2" %)Hz|10 deg /min
220 |Unit 3|(% colspan="2" %)Hz|inch / min
221
222 * *1 position data: HP, P (I), P (II), CP.
223 * *2 speed data: Vmax, Vbia, Vjog, Vrt, V (I), V (II).
224
225 Multiplication of position data (b5, b4)
226
227 (((
228 (% class="table-bordered" %)
229 |(% style="width:82px" %)**b5**|(% style="width:93px" %)**b6**|(% style="width:901px" %)(((
230 The position data HP, P (I), P (II) and CP will be multiplied by the value shown in the table on the left.
231
232 **Multiplication**
233 )))
234 |(% style="width:82px" %)0|(% style="width:93px" %)0|(% style="width:901px" %)10^^0^^
235 |(% style="width:82px" %)0|(% style="width:93px" %)1|(% style="width:901px" %)10^^1^^
236 |(% style="width:82px" %)1|(% style="width:93px" %)0|(% style="width:901px" %)10^^2^^
237 |(% style="width:82px" %)1|(% style="width:93px" %)1|(% style="width:901px" %)10^^3^^
238 )))
239
240 Example: When the value of the set position P(I) is 123 and the BFM #3 (b5, b4) is (1, 1), the actual position (or travel) becomes as follows:
241
242 (% class="table-bordered" %)
243 |Motor system units|123 * 10^^3^^=123,000 (pulses)
244 |Machine system units|(% rowspan="2" %)(((
245 123*10^^3^^=123,000 (um, mdeg, 10^^-4^^inch)
246
247 ~=123 (mm,deg, 10^^-1^^inch)
248 )))
249 |Combined system units
250
251 Rotation direction (b9)
252
253 * When b9 = 0: The current position (CP) value increases with a forward pulse (FP).
254 * When b9 = 1: The current position (CP) value decreases with a forward pulse (FP).
255
256 This bit is used for the initialized setting. The change of rotation direction is not active when the positioning works.
257
258 The direction of home position return (b10)
259
260 * When b10 = 0: The current position (CP) value decreases during return to the home position.
261 * When b10 = 1: The current position (CP) value increases during return to the home position.
262
263 S-type acceleration and deceleration(b11)
264
265 * When b11=0, the acceleration is constant during the process of accelerating and decelerating for positioning, the curve of speed is trapezoidal.
266 * When b11=1, the curve of speed is S-type during the process of accelerating and decelerating for positioning.
267
268 DOG input polarity (b12)
269
270 * When b12 = 0: The DOG (near point signal) is turned on when the workpiece is approaching the home position.
271 * When b12 = 1: The DOG (near point signal) is turned off when the workpiece is approaching the home position.
272
273 = **8 Speed Data and Positioning Data** =
274
275 **[BFMs #5 and #4] Maximum speed V,,max,,**
276
277 Motor system and combined system: 1 to 200,000 Hz
278
279 This is the setting of maximum speed. Make sure that the bias speed (BFM #6), the JOG speed (BFMs #7 and #8), the speed of home position return (BFMs #9 and #10), the creep speed (BFM #11), the operating speed (I) (BFMs #19 and #20) and the operating speed (II) (BFMs #23 and #24) should be equal to or less than the maximum speed. The degree of acceleration/deceleration is determined by this maximum speed, the bias speed (BFM #6), the acceleration time (BFM #15) and the deceleration time (BFM#16).
280
281 **[BFM #6] Bias speed V,,bia,,**
282
283 The range is 0 to 10,000Hz
284
285 This is the bias speed for start. When the LX3V-4PG and the stepper motor works together, it is necessary to set a value while considering the resonance area and the self-start frequency of the stepper motor
286
287 **[BFMs #8 and #7] JOG speed V,,JOG,,**
288
289 The range is 1 to 100,000Hz
290
291 This is the speed for manual forward/reverse (JOG+/JOG-). It should be between the bias speed V,,bia,, and the maximum speed V,,max,,
292
293 **[BFMs #10 and #9] The speed of home position return (high speed) V,,RT,,**
294
295 The range is 10 to 100,000Hz
296
297 This is the speed (high speed) for returning to home position. It should be between the bias speed V,,bia,, and the maximum speed V,,max,,.
298
299 **[BFM #11] The speed of home position return (creep) V,,CR,,**
300
301 This is the speed (extremely slow speed) after the ear point signal (DOG) for returning to home position. It is instantaneous velocity before stopping at home position. Slower speed could get high precision of home positioning.
302
303 **[BFMs#14 and #13] Home position HP**
304
305 Motor system: 0 to ±999,999 PLS. Machine system and combined system: 0 to ±999,999
306
307 This is the position of home position return, when return actions completes, the value is written to the current position (BFMs #26 and #27).
308
309 **[BFM #15] Acceleration time T,,a,,**
310
311 The range is 20 to 32,000 ms
312
313 This is accelerating time from the bias speed (BFM #6) to the maximum speed (BFMs #5 and #4).
314
315 **[BFM #16] Deceleration time T,,d,,**
316
317 The range is 20 to 32,000 ms
318
319 This is the decelerating time between the bias speed (BFM#6) and the maximum speed (BFMs #5 and #4).
320
321 (% style="text-align:center" %)
322 [[image:LX3V-4PG_html_159c549ad122fb42.png||height="285" width="600" class="img-thumbnail"]]
323
324 **[BFMs#18 and #17] Set position (I) P (I)**
325
326 Motor system: 0 to ±999,999 PLS. Machine system and combined system: 0 to ±999,999
327
328 This is the target position or the travel distance for operation. When the absolute position is used, the rotation direction is determined in accordance with the absolute value of the set position based on the current position (BFMs #26 and #27). When the relative position is used, the rotation direction is determined by the sign of the set position.
329
330 **[BFMs #20 and #19] Operating speed (I) V (I)**
331
332 The range is 10 to 100,000 Hz.
333
334 This is the actual operating speed within the range between the bias speed V,,bia,, and the maximum speed V,,max,,. In variable speed operation and external command positioning operation, forward rotation or reverse rotation is performed in accordance with the sign (positive or negative) of this set speed.
335
336 **[BFMs #22 and #21] Set position (II) P (II)**
337
338 Motor system: 0 to ±999,999 PLS. Machine system and combined system: 0 to ±999,999
339
340 This is the set position for the second speed in two-speed positioning operation.
341
342 **[BFMs #24 and #23] Operating speed (II) V (II)**
343
344 The range is 1 to 200,000Hz
345
346 This is the second operating speed in two-speed positioning operation.
347
348 **[BFMs #27 and #26] Current position CP**
349
350 Motor system: -2,147,483,648 to +2,147,483,647 Hz. Machine system and combined system: -2,147,483,648 to +2,147,483,647
351
352 The current position data is automatically written here.
353
354 **Position Data, Home Position and Current Position**
355
356 The position data includes the following: HP: Home position, P (I): Set position (I), P(II): Set position (II) and CP: Current position.
357
358 When the operation of returning to the machine home position is completed, the home position HP (BFMs #14 and #13) value is automatically written to the current position CP (BFMs #27 and #26).
359
360 The set positions P(I) and P(II) can be treated as absolute positions (distance from the current position CP = 0) or relative positions (travel from the current stop position) as described later.
361
362 **Operation Command**
363
364 **[BFM #25] Operation command (b0 to b11, b12)**
365
366 After data is written to the BFMs #0 to #24, write the BFM #25 (b0 to b12) as follows.
367
368 1. When b0 = 1: The error flag (BFM #28 b7) is reset.
369 1. When b1 = 0→1: Stop, if this bit is changed from 0 to 1 in positioning mode, the machine is decelerated and stopped.
370 1. When b2 = 1: Forward pulse stop, the forward pulse is immediate stopped in the forward limit position.
371 1. When b3 = 1: Reverse pulse stop, the reverse pulse is immediate stopped in the reverse limit position.
372 1. When b4 = 1: JOG+ operation, when b4 continues to be 1 for less than 300ms, one forward pulse is generated. When b4 continues to be 1 for 300 ms or more, continuous forward pulses are generated.
373 1. When b5 = 1: JOG- operation, when b5 continues to be 1 for less than 300ms, one reverse pulse is generated. When b5 continues to be 1 for 300 ms or more, continuous reverse pulses are generated.
374 1. When b6 = 0→1: Home position return start, the machine starts to return to the home position, and is stopped at the machine home position when the DOG input (near point signal) is given.
375 1. When b7 = 0: Absolute position. When b7 = 1: Relative position. The relative or absolute position is specified in accordance with the b7 status (1 or 0). (This bit is valid while operation is performed using b8, b9 or b10.)
376 1. When b8 = 0→1: Single-speed positioning operation is performed.
377 1. When b9 = 0→1: Interrupt single-speed positioning operation is performed.
378 1. When b10 = 0→1: Two-speed positioning operation is performed.
379 1. Reserved
380 1. When b12 = 1: Variable speed operation is performed.
381
382 **Operation command data transfer method**
383
384 * Error can be reset by forcedly turning on/off the peripheral unit. The input X000 does not have to be used. When the data on absence/presence of error and the error code should be saved even after power interrupt, use power down save register.
385 * In operation which does not require returning to the home position such as inching operation with a constant feed rate, the input X006 is not required.
386
387 (% style="text-align:center" %)
388 [[image:LX3V-4PG_html_3d648b433d213dfd.png||height="370" width="900" class="img-thumbnail"]]
389
390 * In the program below, the start bit for the operation mode cannot be set to OFF inside the PGU, so operation from the second time and later cannot be performed. Correct it as shown in the right.
391
392 (% style="text-align:center" %)
393 [[image:LX3V-4PG_html_d88dd0506b0a57bf.png||height="127" width="600" class="img-thumbnail"]]
394
395 = **9 Status and Error Codes** =
396
397 **[BFM #28] Status information (b0 to b10)**
398
399 The status information to notify the PC of the PGU status is automatically saved in the BFM #28. Read it into the PC using the FROM instruction.
400
401 1. When b0 = 0: BUSY. When b0 = 1: READY. This bit is set to BUSY while the PGU is generating pulses.
402 1. When b1 = 0: Reverse rotation. When b1 = 1: Forward rotation. This bit is set to 1 when operation is started with forward pulse.
403 1. When b2 = 0: Home position return unexecuted. When b2 = 1: Home position return completed. When returning to the home position is completed, b2 is set to 1, and continues to be 1 until the power is turned off. To reset b2, use the program.
404 1. When b3 = 0: STOP input OFF. When b3 = 1: STOP input ON.
405 1. When b4 = 0: DOG input OFF. When b4 = 1: DOG input ON.
406 1. Reserved
407 1. When b6 = 1: Current position value overflow. The 32-bit data saved in the BFMs (#27 and#26) has overflown. This bit is reset when returning to the home position is completed or the power is turned off.
408 1. When b7 = 1: Error flag, b7 becomes 1 when an error has occurred in the PGU, and the contents of the error are saved in the BFM #29. This error flag is reset when the BFM #25 b0 becomes 1 or the power is turned off.
409 1. When b8 = 0: Positioning started. When b8 = 1: Positioning completed b8 is cleared when positioning is started home position return start, or error reset, and set when positioning is completed. b8 is also set when returning to the home position is completed.
410 1. CLR signal, when returning to the home position is completed, CLR signal is output, the duration is XXX ms.
411 1. When b10=0: interrupt input OFF. When b10 = 1: interrupt input ON.
412
413 * Various start commands are accepted exclusively while the BFM #28 b0 is set to 1 (READY).
414 * Various data is also accepted exclusively while the BFM #28 b0 is set to 1 (READY). However, the BFM #25 b1 (stop command), the BFM #25 b2 (forward pulse stop) and the BFM #25 b3 (reverse pulse stop) are accepted even while the BFM #28 b0 is set to 0 (BUSY)
415
416 (% style="text-align:center" %)
417 [[image:LX3V-4PG_html_d166ba395b9da027.png||height="545" width="700" class="img-thumbnail"]]
418
419 **[BFM #29] Error code number**
420
421 The following error codes Nos. are saved in the BFM#29. Read and check it when the BFM #28 b7 is set to 1 (Error present).
422
423 * 001: Large/small relationship is incorrect. (V max <Vbia or V RT < V CR);
424 * 002: Setting is not performed yet. (V (I), P (I), V (II) or P (II));
425 * 003: Setting range is incorrect;
426 * 00 indicates the corresponding BFM No. For example, “172" indicates that the BFMs #18 and #17 are set to 0. “043" indicates that the BFMs #5 and #4 are set to a value outside the range.
427
428 When a speed command specifies a value equivalent to or more than V max or a value equivalent to or less than Vbia, error does not occur. V max or Vbia is used for operation. Though the ready status can be specified even while an error is present, the start command is not accepted.
429
430 == Function description ==
431
432 Seven operation modes are available in the PG in accordance with the start command type. The data on speed and position should be transferred preliminarily from the PC to the buffer memories (BFMs) of the PG.
433
434 = **10 JOG operation** =
435
436 While the forward or reverse button is pressed and held, the motor is driven forward or in reverse.
437
438 (% style="text-align:center" %)
439 [[image:LX3V-4PG_html_ad2c03a6a25bb100.png||height="207" width="400" class="img-thumbnail"]]
440
441 Any value between the bias speed V,,bia,, (BFM #6) and the maximum speed V,,max,, (BFMs #5 and #4) is valid as the command speed V,,JOG,, (BFMs #8 and #7). When JOG signal continues to be 1 for less than 300ms, one reverse pulse is generated. When JOG signal continues to be 1 for 300 ms or more, continuous reverse pulses are generated.
442
443 **Machine home position return operation**
444
445 When the home position start command is received, the motor makes the machine return to the home position. When returning to the home position is completed, the home position HP (BFMs #14 and #13) value is written to the current position CP (BFMs #27 and #26).
446
447 (% style="text-align:center" %)
448 [[image:LX3V-4PG_html_877fe39646739cde.png||height="183" width="400" class="img-thumbnail"]]
449
450 * When the home position return start command is changed from OFF to ON, the home position return operation is started at the speed V RT (BFMs #10 and #9).
451 * When the near point signal DOG input is turned on, the motor decelerates to the creep speed V CR (BFM #11).
452 * When the near point signal DOG input is changed from ON to OFF, the motor is immediately stopped in the position 4).
453
454 For the details, refer to “DOG Switch” and “Home Position Return Operation”
455
456 = **11 DOG Switch** =
457
458 DOG switch for returning to home position
459
460 (% style="text-align:center" %)
461 [[image:LX3V-4PG_html_1462d6ed9d95fa59.png||height="229" width="400" class="img-thumbnail"]]
462
463 * A dog whose length is L is fixed to a table driven in the left and right direction by a servo motor via a ball thread.
464 * When the table moves in the home position return direction, the dog is in contact with the limit switch (LSD) for near point detection, and the LSD is actuated.
465 * The LSD is turned ON from OFF when the BFM #3 b12 is set to 0, and turned OFF from ON when the BFM #3 b12 is set to 1.
466 * The home position return direction is determined by the BFM #3 b9 (rotation direction) and b10 (home position return direction).
467 * The limit switch LSD is often referred to as dog switch. The actuation point of the dog switch is rather dispersed.
468
469 **Home Position Return Operation**
470
471 The home position return operation varies depending on the start position.
472
473 (% style="text-align:center" %)
474 [[image:LX3V-4PG_html_b7f046f5cdca216.png||height="188" width="400" class="img-thumbnail"]]
475
476 1. The near point signal is turned off (before the DOG passes).
477 1. The near point signal is turned on.
478 1. The near point signal is turned off (after the DOG has passed).
479
480 For this operation, the limit switches for detecting the forward limit and the reverse limit should be provided on the PC.
481
482 When the limit switch for limit detection is actuated, the home position return operation is not performed even if the home position return operation is started. Move the dog by performing the JOG operation so that the limit switch for limit detection is not actuated, then start the home position returns operation.
483
484 1. The example above shows the case where the BFM #3 b12 is set to 0 (DOG input polarity OFF→ON).
485 1. When the limit switch for limit detection is turned on, the pulse output is immediately stopped (BFM #25 b3: ON). At this time, the clear signal is also output.
486
487 [[image:LX3V-4PG_html_12fc794d28fc726.png||class="img-thumbnail"]] **When the stepper motor is used**
488
489 When the stepper motor is used, rigid attention should be paid to the following items.
490
491 1. If the motor capacity is not sufficient compared with the load torque, the motor may stall. In such a case, even if the specified quantity of pulses are supplied the motor, the expected drive quantity may not be obtained.
492 1. Start and stop the motor slowly enough (by setting a long acceleration/deceleration time to the BFM #15) so that the acceleration/ deceleration torque does not become excessive.
493 1. A resonance point is present in low speed operation. It is recommended to avoid this point. Set the bias speed (BFM #6), and do not perform operation at a speed slower than that.
494 1. An external power supply may be required for signal communication with the drive amplifier
495
496 **Single-Speed Positioning Operation**
497
498 When the start command is given, the motor accelerates up to the operating speed V (I) (BFMs #20 and #19), then decelerates and stops in the set position P(I) (BFMs #18 and #17).
499
500 (% style="text-align:center" %)
501 [[image:LX3V-4PG_html_a7a6fd6ba9fc4199.png||height="184" width="400" class="img-thumbnail"]]
502
503 **Interrupt Single-Speed Positioning Operation**
504
505 (% style="text-align:center" %)
506 [[image:LX3V-4PG_html_4dc171ea85e1220f.png||height="228" width="400" class="img-thumbnail"]]
507
508 When the start command is received, the motor starts operation. When the INTERRUPT input is received, the motor moves by the specified distance, then stops (The relative travel exclusively can be specified.) The current value is cleared by the start command. The current value starts to change by the INTERRUPT input, and becomes equivalent to the set position when the operation is completed.
509
510 **Two-Speed Positioning Operation**
511
512 (% style="text-align:center" %)
513 [[image:LX3V-4PG_html_b77df89d18c43372.png||height="202" width="400" class="img-thumbnail"]]
514
515 The motor performs the following operation by the two-speed positioning operation command. Approach at high speed as well as processing and moving forward at low speed can be performed. When the start command is received, the motor performs positioning at the operating speed V(I) (BFMs #20 and #19) until the set position P(I) (BFMs #18 and #17), then at the operating speed V(II) (BFMs #24 and #23) until the set position P(II) (BFMs #22 and #21) (two-step speed).
516
517 **Variable Speed Operation**
518
519 * When the operation command BFM #25 b12 is set to 1, the speed pulses specified in the BFMs (#20 and #19) are generated.
520 * This operating speed can be freely changed even while pulses are generated. However, acceleration and deceleration must be controlled by the PC.
521 * Only b0 (error reset) and b12 (variable speed operation) of the operation command BFM #29 are valid in this mode.
522
523 When b12 is set to 1, variable speed operation is performed.
524
525 When b12 is set to 0, pulse output is stopped.
526
527 (% style="text-align:center" %)
528 [[image:LX3V-4PG_html_735a15a6a93c266d.png||height="208" width="400" class="img-thumbnail"]]
529
530 * The pulse output does not stop even if “0” is written in BFM #21, #20
531 * As for the parameter BFM #3, only b1 and b0 (system of units) and b8 (pulse output format) are valid.
532 * The rotation direction (forward or reverse) can be specified by the sign (positive or negative) of the speed command (BFMs #20 and #19)
533
534 The procedure of changing the direction of the rotation
535
536 1. Turn OFF b12 of BFM #25.
537 1. Change the value at drive speed (BFM #20, BFM #19).
538 1. Again, turn ON b12 of BFM #25.
539
540 = **12 Common Matter for Operation Modes** =
541
542 **Handling the stop command**
543
544 In all operation modes, the stop command is valid at any time during operation. However, if a stop command is received during a positioning operation, the motor decelerates and stops. And after restarting, the motor doesn't travel by the remaining distance, but the next positioning operation.
545
546 **About multiple commands**
547
548 When the bits which determine operation modes such as b4, b5 and b8, b10 are turned on simultaneously in the operation command BFM #25, any operation is not executed. If other mode input is turned on while operation is being performed in any mode, such an input is neglected.
549
550 **When travel time is small**
551
552 When the travel time is small compared to the acceleration/deceleration time (Ta), the motor cannot realize specified speed.
553
554 * Single-speed positioning operation
555
556 (% style="text-align:center" %)
557 [[image:LX3V-4PG_html_cfc4732b4e37fa45.png||height="225" width="400" class="img-thumbnail"]]
558
559 * Interrupt single operation
560
561 (% style="text-align:center" %)
562 [[image:LX3V-4PG_html_76edbb4c65fd3cd3.png||height="212" width="400" class="img-thumbnail"]]
563
564 * Two-speed positioning operation
565
566 (% style="text-align:center" %)
567 [[image:LX3V-4PG_html_2beb6801972ccbe1.png||height="187" width="600" class="img-thumbnail"]]
568
569 **Connection of DOG and X Inputs and Handling of Limit Switches for Limit Detection**
570
571 Various limit switch inputs are connected to the DOG input and the X input in accordance with the operation mode.
572
573 The polarity of these limit switch inputs is inverted by the state of the BFM #3 b12 and b6.
574
575 To assure safety, provide limit switches for detecting the forward and reverse limits on the servo amplifier also.
576
577 Make sure so that the limit switches on the PLC are actuated simultaneously with or a little earlier than the limit switches on the servo amplifier.
578
579 Because a drive amplifier for a stepper motor does not have these terminals, make sure to provide limit switches on the PLC.
580
581 Evade from the state of the pulse output stop by Jog in the opposite direction when forward pulse stop or reverse pulse stop is turned on.
582
583 (% style="text-align:center" %)
584 [[image:LX3V-4PG_html_f795aac75a3e73ac.png||height="219" width="400" class="img-thumbnail"]]
585
586 = **13 Example** =
587
588 The reciprocation by single-speed positioning
589
590 Do not put the load on the motor for safety when you confirm the operation according to this program example.
591
592 1. The position of the motor moves to the machine home position according to the home position return start instruction now. (Machine home position return operation) At this time, the machine home position address is assumed to be “0”.
593 1. While the forward or reverse button is pressed and held, the motor is driven forward or in reverse. (Jog operation)
594 1. The value of the motor advances 10000 mm according to the automatic drive start instruction.
595 1. After wards, Y000 is turned on for two seconds as a stand by display stopping and at this time. Finally, the value of the motor retreats by 10000 mm. (Single-speed positioning operation)
596
597 (% class="table-bordered" %)
598 |(% colspan="2" %)**Input**|**Output**|4PG terminals
599 |X000: error reset|X005:JOG- operation|(% rowspan="5" %)Y000: display|DOG: input return signal
600 |X001: stop command|X006: start home return|FP: Pulse output to servo amplifier PP
601 |X002: stop forward pulse|(% rowspan="3" %)X007: Single-speed positioning operation|RP: pulse output direction
602 |X003: stop reverse pulse|(% rowspan="2" %)
603 |X004: JOG+ operation
604
605 (% style="text-align:center" %)
606 [[image:LX3V-4PG_html_d551759788b9cd25.png||height="1376" width="1400" class="img-thumbnail"]]
607
608 = **14 Diagnostic** =
609
610 Preliminary Checks and Error Indication
611
612 **To ensure correct operation**
613
614 1. Make sure that the PG I/O wiring and the extension cable connections are correct.Indicate clearly the special block No. on the panel face by adhering the labels offered as accessories.
615 1. In any positioning operation, the specified data should be written preliminarily to the BFMs #0 to #24, and then the BFM #25 should give an appropriate command. Otherwise, the PG does not function.
616
617 **Error indication**
618
619 * LED indication
620 ** The PG panel has the following LEDs:
621 ** Power indication: The POWER LED is lighted when 5 V power is supplied from the PLC.
622 ** Input indication: When DOG or X is received by the PG, the corresponding LED is lighted respectively.
623 ** Output indication: When FP or RP is output by the PG, the corresponding LED is lighted respectively.
624 ** Error indication: When an error occurs, the ERR LED flashes.
625 * Error check
626 ** Errors are indicated by BFM#28 bit 7. Various errors can be checked by reading the contents of the BFM #29 to the PC.