5 write cam to file, 6 read cam from file, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 93

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

93

L-force | PLC Designer - SoftMotion

CAM editor

Editing a cam

equidistant point table
An SMC_CAMTable_<Data type>_<Element number>_1 type interpolation point table is

created on the basis of the settings towards the bottom of the dialog. The position array of

the dialog contains the slave values of the cam with reference to the master values, which

are distributed evenly on the domain of the master axis. The first value in the table refers

to the slave position at the master minimum of the cam. For non-periodic cams, the last

value refers to the slave position at the master maximum. For periodic cams this value does

not need to be rewritten, because it is the same as that at the master minimum; for this

reason the intervals are made slightly narrower and the last value in the table describes the

slave position at Master.End - (Master.End-Master.Start)/Number of elements.

element optimised point table
A two-dimensional (not usually equidistant) SMC_CAMTable_<Data type>_<Element

number>_2 type interpolation point table is created on the basis of the settings towards

the bottom of the dialog. The table it contains describes pairs of master and associated

slave positions. Partitioning is applied so that elements with constant velocity (lines) are

only assigned one interpolation point each at the start and end respectively. The remaining

interpolation points are distributed as evenly as possible across the remainder of the cam.

do not compile
No global variables are created for the cam. This option is used primarily if the cam needs

to be loaded from the file system during runtime, for example because it needs to be

changed without affecting the active »PLC Designer« project.
Scaling is only relevant for interpolation point tables. You can define the scaling of the

master and the slave axis by assigning either start and end values or start and end units.

5.4.3.5

Write Cam to File
This menu item opens a file selection dialog in which a *.CAM file can be defined to which

the current cam will be written. This file can be read during runtime and converted to a

standard data structure by the SMC_ReadCAM function block. The cam will be stored in

polynomial, equidistant or element-optimised format in accordance with the currently set

compile option.

5.4.3.6

Read Cam from File
This menu item can be used to reimport a CAM file *. into the »PLC Designer«. Once the

required file has been selected, the Cam properties dialog will appear in which a name for

the cam must be entered and the scaling of the slave axis must be adapted.
Due to the fact that during the creation of a cam only the information needed for the

execution of the cam is output, a read cam may differ from the original..

Advertising