Program Examples:Camming by Virtual Master

From SoftMC-Wiki
Revision as of 10:56, 3 August 2014 by Miborich (talk | contribs) (Created page with "== Introduction == Slave axis is driven by a virtual(simulated) master axis == Setup == Both master and slave axes are set as in previous examples == Program example == ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Slave axis is driven by a virtual(simulated) master axis

Setup

Both master and slave axes are set as in previous examples

Program example

Creating Cam Table

Creating a 360 deg sine table


  for i = 1 to CamTable1.Size 
    CamTable1.MasterData [i] = 360*(i-1)/CamTable1.Size ' Master in degrees
    CamTable1.SlaveData  [i] = cam_amplitude *sin (CamTable1.MasterData [i] * pi/180)
  next

Store the created file onto flash disk

  storecamdata ct1.cam CamTable1