577
8
8 Electronic Cam 8.8.1 Writing Electronic Cam Data
◆
Operands
Operand
Bit Soft Element Word Soft Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
m1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
m2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
Note: The soft elements in gray background are supported.
◆
Functions and actions
The CAMWR instruction modies electronic cam table data in the unit of pulses.
●
[m1] species a cam table to be modied. When m1 = k11 to k13, the
M-Pos value (SD48, SD49) of an
X axis cam, the M-Pos value (SD148, SD149) of a Y axis cam, and the M-Pos value (SD248, SD249) of a Z axis
cam are specied, respectively
.
●
[m2] sets the starting point of key points, m2 = k2 to k360.
●
[D] indicates the head address. Multiple continuous address units starting with [D] are occupied. Each
key point occupies two 32-bit registers that ag positions of master and slave axes respectively; that is,
each key point occupies four address units.
●
[n] indicates the number of key points. (m2 + n – 1) must be less than or equal to the number of
downloaded key points.
◆
Notes:
1) Only one
CAMWR
instruction can be executed at a time. If more than two CAMWR
instructions are needed, the next instruction can be executed after the current
instruction stops a scan cycle.
2) CAMWR
instructions are executed in multiple cycles. An OFF-to-ON switch of the
special register SM82 indicates that modication is nished.
3) When modication is nished, cam table data is changed. In this case, the data uploaded or
read back with instructions is modied data. If an electronic cam is running, modied data
cannot take effect immediately. To make the data take effect in the next cam cycle, you need to
set special ag bits (SM83, SM183, and SM283). If the electronic cam is disabled, or if modied
data does not take effect when the electronic cam is running, the data will automatically take
effect when the electronic cam is started the next time.
4) The rst point of an electronic cam table is the starting point and cannot be modied.
Therefore, m2 must be greater than 1. (m2 + n – 1) must be less than or equal to the number of
downloaded key points.
5) The M-Pos value must be greater than that of the previous point and less than that of the next
point, or error 16268 will be returned.