3 Connection Procedures
9
In the Solution Explorer, right-click the
usercode.c file under C Language –
Realtime Routines and select Properties.
10
In Build Action in the Properties window,
select Compile.
11
Open the usercode.c file under C
Language – Realtime Routines.
12
Delete the CfromScript function definitions
shown on the right.
3-10
double CfromScript(double cfrom_type,double arg2,
double arg3,double arg4,double arg5,double arg6,d
ouble arg7,struct LocalData *Ldata)
{
int icfrom_type=(int)cfrom_type;
double*C,*D,*L,*R,rtn;//C,D,R-only needed if
doing Kinematics
C=GetCVarPtr(Ldata);//Only needed if doing Ki
nematics
D=GetDVarPtr(Ldata);//Only needed if doing Ki
nematics
L=GetLVarPtr(Ldata);//Only needed if using Ld
ata or Kinematics
R=GetRVarPtr(Ldata);//Only needed if doing Ki
nematics
rtn=-1.0;
return rtn;
}
Application Guide Laser Application (O052)