5 - 164
5 OPERATION CONTROL PROGRAMS
F/FS G
5.18.2 Cam data write: CAMWR
Format CAMWR(S1), (S2), (n), (S3) Number of basic steps 7
[Usable data]
Setting
data
Usable Data
Bit device
Word device
(Note-1)
Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
(S1) —
— — —
— — — — —
(S2) —
— —
—
— —
(n) —
— — —
— —
— —
(S3) —
— — — — — — — — —
: Usable
(Note-1): The special register (SD) cannot be used.
[Setting data]
Setting data Description Data type of result
(S1) Cam No. (1 to 256)
—
(S2)
Cam data first position
Stroke ratio data format : 1 to cam resolution
Coordinate data format : 0 to (Coordinate number-1)
(n)
Number of cam data points
Stroke ratio data format : 1 to 4096
Coordinate data format : 1 to 2048
(S3) Start device No. which stores the writing cam data
[Functions]
(1) Of the cam data stored in the device specified with (S3) or later, the data of the (n)
number of points, starting from the cam data position specified with (S2), is written
to the cam storage area and the cam open area.
(2) Set the cam data first position specified with (S2) within the following range.
• Stroke ratio data format : 1 to cam resolution
(Note-1)
• Coordinate data format : 0 to (Coordinate number-1)
(Note-1): Since the stroke ratio of the zeroth point cam data is fixed at 0%, the
cam data cannot be write.
(3) For (n), specify the number of write points, starting from the cam data first position
specified with (S2). Specify the number of write points so that the device No.
storing the end point data is within the range. If the number of write points, starting
from the first position, is outside the cam data range, an operation error occurs
and the data is not written.