ApossC SDK  V01.15
Functions
SDK_Miscellaneous_Recording.mh File Reference

Declaration of the recording functions. More...

Go to the source code of this file.

Functions

long sdkRecordGeneralAxisParam_1Ax (long axis)
 Starts a recording of general axis parameter of a single axis. More...
 
long sdkRecordGeneralAxisParam_4Ax (long axis1, long axis2, long axis3, long axis4)
 Starts a recording of general axis parameter of four axes. More...
 

Detailed Description

Declaration of the recording functions.

Revision
23

Definition in file SDK_Miscellaneous_Recording.mh.

Function Documentation

◆ sdkRecordGeneralAxisParam_1Ax()

long sdkRecordGeneralAxisParam_1Ax ( long  axis)

Starts a recording of general axis parameter of a single axis.

This function records the nominal and actual position of the axis. Additionally the trackerror, speed and current output is recorded. The recording can be stopped during a desired time with the "RecordStop(0,0)" method.

Parameters
axisAxis module number
Returns
value: Always 1 in this function
value > 0 Process successful
value = 0 Process is active
value < 0 Error

Definition at line 25 of file SDK_Miscellaneous_Recording.mc.

26 {
27  RecordTime(1); // Sampling period in milliseconds.
28  RecordIndex( AXE_PROCESS_INDEX(axis,REG_COMPOS),
33  );
34 
35  RecordDest (DYNMEM); // DYNMEM for recording data into free memory.
36  RecordType(1); // 1 = cyclic recording
37  RecordStart(0); // Start recording
38 
39  return(1);
40 }

◆ sdkRecordGeneralAxisParam_4Ax()

long sdkRecordGeneralAxisParam_4Ax ( long  axis1,
long  axis2,
long  axis3,
long  axis4 
)

Starts a recording of general axis parameter of four axes.

This function records the nominal and actual position of four axes Additionally the trackerror, speed and current output is recorded. The recording can be stopped during a desired time with the "RecordStop(0,0)" method.

Parameters
axis1Axis module number 1
axis2Axis module number 2
axis3Axis module number 3
axis4Axis module number 4
Returns
value: Always 1 in this function
value > 0 Process successful
value = 0 Process is active
value < 0 Error

Definition at line 57 of file SDK_Miscellaneous_Recording.mc.

58 {
59  RecordTime(1); // Sampling period in milliseconds.
60  RecordIndex( AXE_PROCESS_INDEX(axis1,REG_COMPOS),
80  );
81 
82  RecordDest (DYNMEM); // DYNMEM for recording data into free memory.
83  RecordType(1); // 1 = cyclic recording
84  RecordStart(1); // Start recording
85 
86  return(1);
87 }
PO_HWAMP_CURRENT
#define PO_HWAMP_CURRENT
Actual current.
Definition: SdoDictionary.mh:11357
REG_ACTPOS
#define REG_ACTPOS
Actual position value.
Definition: SdoDictionary.mh:3199
REG_AVEL
#define REG_AVEL
Actual velocity.
Definition: SdoDictionary.mh:3223
AXE_PROCESS_INDEX
#define AXE_PROCESS_INDEX(modno, parno)
Axis Process Data: Getter.
Definition: SdoDictionary.mh:3175
REG_COMPOS
#define REG_COMPOS
Set-point position value.
Definition: SdoDictionary.mh:3207
HWAMP_PROCESS_INDEX
#define HWAMP_PROCESS_INDEX(modno, parno)
HW Amplifier Process Data: Getter.
Definition: SdoDictionary.mh:11329
REG_TRACKERR
#define REG_TRACKERR
Actual position tracking error.
Definition: SdoDictionary.mh:3239

Data Sheets | Released Software | Software Manuals | Hardware Manuals | Maxon Shop

Maxon Support Center