9
Electrical CAM
DVP-PM Application Manual
9-51
Step 1: Run the program and read the E-CAM status by DFROM instruction. Read the data in CR#10001 of
special module K100 to D100~D108.
Step 2: Set M3 to write the length of Slave into D126 and the initial Slave error into D128. Calculate the real
error, i.e. difference between the increased error and the initial error, and take the half of Slave length as the
reference.
Step 3: When the real error is between “± half of Slave length”, take the real error as the offset value directly.
Step 4: When the real error exceeds “± half of Slave length”, follow the below rule:
⎪⎩
⎪
⎨
⎧
×
+
=
⇒
−
<
×
=
⇒
>
ratio
Offset
Slave
of
length
error
Real
Offset
Slave
of
length
error
Real
ratio
Offset
Slave
of
length
error
Real
Offset
Slave
of
length
error
Real
)
(
2
1
)
-
(
2
1
Step 5: Set M4 to calculate the modified length of Slave with offset compensation.
Step 6: When M4 is reset, fill the original length of Slave back to D302.
Ladder Diagram:
M1000
M3
DMOV
K10001
D0
DFROM
K100
D0
D100
K5
DMOV
D302
D126
D108
D128
DMOV
Backup init ial value of D108
Length of S lave
Backup D302
Backup D108 in D128
Read the error between
DOG signal and t he end point
of Slave position (D108)
DSUB
D108
D128
D130
DDIV
D126
K2
D132
DMOV
D130
D138
DSUB
D130
D126
D138
DSUB
D132
K0
D136
DADD
D130
D126
D138
M1000
M3
"
D132 = 1/2*D126
D136 = -1/2*D126
..
..
..
..
DLD<
D130
D136
DLD>
D130
D132
Take the difference
between D108 (initial error)
and D128 (increased error)
Take D132 and D136
as the criteria for judging
1. If D130 (real error)is between
D132 and D136, backup D130 in
D138 directly
2. If D130 is bigger than D132
,subtract D130 with D126 and
store the result in D138.
3. If D130 smaller than D136
, add D130 with D126 and store
the result in D138
D138 is the offset value for
compensation
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...