242
4 OPERATION CONTROL PROGRAMS
4.16 Advanced Synchronous Control Dedicated Function
Cam position calculation: CAMPSCL
■Usable data
: Usable
■Description, data type of result
• 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
Format Number of basic steps Usable steps
F/FS G
CAMPSCL (S1), (S2), (D) 12
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S1)
(S2)
(D)
Setting data Description Data type of result
(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
Offset Name Description Range
+0 Cam position calculation
type
Specify the cam axis current feed value calculation/cam axis current
value per cycle calculation
0: Cam axis current feed value
calculation
1: Cam axis current value per cycle
calculation
+1 Unusable Set 0. 0
+2 Cam stroke amount Set the cam stroke amount for the cam position calculation. -2147483648 to 2147483647
[Output axis position units]
+3
+4 Cam axis length per cycle Set the cam axis length per cycle for the cam position calculation. 1 to 2147483647
[Cam axis cycle unit]
+5
+6 Cam reference position Set the cam reference position for the cam position calculation. -2147483648 to 2147483647
[Output axis position units]
+7
+8 Cam axis current value
per cycle
• 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.
0 to (Cam axis length per cycle)
[Cam axis cycle unit]
+9
+10 Cam axis current feed
value
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.)
-2147483648 to 2147483647
[Output axis position units]
+11