Mitsubishi Electric Melsec Q Series Programming Manual page 406

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS
[Errors]
[Program examples]
[F10]
//Cam position calculation data set
D10000=K0 //Cam position calculation type=
Cam axis current feed value calculation
D10001=K0
D10002L=K2097152L//Cam stroke amount=
D10004L=K4194304L//Cam axis length per cycle=
D10006L=K0L
D10008L=K2097152L
//Cam axis current value per cycle=2097152[pulse]
D10010L=K0L
[G10]
PX0
//Standby until PX0 turns ON
[F20]
//Cam position calculation for cam No.0
(The result is stored in W1F00L.)
CAMPSCL K0,D10000,W1F00L
(1) An operation error will occur, and the cam position calculation will not be executed
if:
• Cam No. specified with (S1) is outside the range of 0 to 256.
• The cam No. data specified with (S1) does not exist in the cam open area.
• The device numbers storing the cam position calculation control data specified
with (S2) are outside the range.
• (S2), (D) are not even-numbered devices.
• Cam position calculation type specified with cam position calculation control data
is set to other than 0 or 1.
• Cam axis length per cycle is outside the range of 1 to 2147483647.
• Cam axis current value per cycle is outside the range of 0 to (cam axis length per
cycle).
• The device numbers storing the cam position calculation result specified with (D)
are outside the range.
• The cam axis current value per cycle cannot be calculated by the cam axis
current value per cycle calculation.
(1) Program which calculates the cam axis current feed value in the linear cam
pattern (cam No. 0)
Cam (Linear)
//Unusable
2097152[pulse]
4194304[pulse]
//Cam reference position=0[pulse]
//Cam axis current feed value=
0 (The setting is not required.)
END
Cam axis length per cycle
Cam axis current
value feed value
1048576[pulse]
Cam reference
position
0[pulse]
5 - 183
Cam axis current value per cycle
2097152[pulse]
4194304[pulse]
Cam stroke amount
2097152[pulse]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents