578
8
8 Electronic Cam8.8 Modifying Key Points for Electronic Cams
6) Cam tables to be modied as specied by CAMWR instructions must exist in the PLC; that is,
the cam tables have been downloaded to the PLC through AutoShop. Only cam table data in the
unit of pulses can be modied.
The following table lists special registers involved in modication.
SM82 An OFF-to-ON switch of SM82 indicates that modication is
nished.
SM83 X axis Flags indicating that modied data takes effect during running
of an electronic cam:
ON: Modied data takes effect in the next cam cycle, and the
registers are automatically reset to OFF.
OFF: Modied data takes effect the next time the cam is
started.
SM183 Y axis
SM283 Z axis
◆
Example:
Modify cam table data
Take effect in the next cam cycle
Modification finished
When M10 is set to ON, the PLC executes DCAMWR instructions to modify the cam table. When
modication is nished, SM82 is switched from OFF to ON. If the X axis cam is running, you can set SM83 (X
axis) to make the modied data take effect in the next cam cycle. Then SM83 is automatically reset.
Master and slave axes of each key point occupy two 32-bit registers; that is, each key point occupies four
D elements. If ve points are modied, from the second point, (D101, D100) indicates the master axis
position, (D103, D102) indicates the slave axis position, and so on. Twenty D elements are occupied.
8.8.2 Writing Electronic Cam Floating-point Decimal Data
ECAMWR: Writing electronic cam oating-point decimal data
◆
Overview
The ECAMWR instruction modies electronic cam oating-point decimal data in mechanical units.
ECAMWR
m1 m2 D n
Writing electronic
cam oating-point
data
Applicable model:
H3U
m1
Cam
table
Cam table to be modied
32-bit instruction (17
steps)
DECAMWR:
Continuous execution
m2
Starting
point
Starting point
D Data Data address
n
Number
of points
Number of key points