Cam Position Calculation: Campscl - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Cam position calculation: CAMPSCL

Format
CAMPSCL (S1), (S2), (D)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
device
(S1)
(S2)
(D)
■Description, data type of result
Setting data
Description
(S1)
Cam position calculation: Cam No. (0 to 1024)
(S2)
Start device No. which stores the cam position calculation control data
(D)
Device No. which stores the cam position calculation result
Processing details
• For the cam No. data specified with (S1), the cam axis current feed value or the cam axis current value per cycle is
calculated from the cam position calculation control data specified with (S2), and the value is output to the device specified
with (D).
• Specify the cam No. to perform the cam position calculation with (S1). When cam No. 0 is specified, the cam position is
calculated as the linear cam. For cam No.1 to 1024, the cam position is calculated with the cam data on the cam open area.
• The device No. specified with (S2) should be an even number. Set the cam position calculation control data in the specified
device as follows.
■Device assignment of the cam position calculation control data
Offset
Name
+0
Cam position calculation
type
+1
Unusable
+2
Cam stroke amount
+3
+4
Cam axis length per cycle
+5
+6
Cam reference position
+7
+8
Cam axis current value
per cycle
+9
+10
Cam axis current feed
value
+11
4 OPERATION CONTROL PROGRAMS
242
4.16 Advanced Synchronous Control Dedicated Function
Number of basic steps
12
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
Description
Specify the cam axis current feed value calculation/cam axis current
value per cycle calculation
Set 0.
Set the cam stroke amount for the cam position calculation.
Set the cam axis length per cycle for the cam position calculation.
Set the cam reference position for the cam position calculation.
• Set the cam axis current value per cycle for the cam position
calculation when calculating the cam axis current feed value.
• Set the cam axis current value per cycle as the starting point to
search when calculating the cam axis current value per cycle and the
cam position.
Set the cam axis current feed value for the cam position calculation
when calculating the cam axis current value per cycle. (This is not used
when the cam position calculation type is set to the cam axis current
feed value calculation.)
Usable steps
F/FS
Constant
16-bit
32-bit
64-bit
integer
integer
floating
type
type
point
(K/H)
(K/H, L)
type (K)
G
Calculation
Bit
expression
conditional
expression
Data type of result
Range
0: Cam axis current feed value
calculation
1: Cam axis current value per cycle
calculation
0
-2147483648 to 2147483647
[Output axis position units]
1 to 2147483647
[Cam axis cycle unit]
-2147483648 to 2147483647
[Output axis position units]
0 to (Cam axis length per cycle)
[Cam axis cycle unit]
-2147483648 to 2147483647
[Output axis position units]
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents