![]() |
ApossC SDK
V01.15
|
Declaration of the virtual master functions. More...
Go to the source code of this file.
Functions | |
| long | sdkSetupVirtualMasterMode (long master, long mode) |
| Setup a virtual master. More... | |
| long | sdkSetupVirtualMasterAxisLink (long master, long axis) |
| Set the virtual master as master of an axis. More... | |
| long | sdkSetupVirtualMasterScale (long master, long numerator, long denominator) |
| Scale the input parameters of the virtual master. More... | |
| long | sdkSetVirtualMasterProfile (long master, long acc, long dec) |
| Set a virtual master profile. More... | |
| long | sdkStartVirtualMasterProfile (long master, long vel) |
| Starts a virtual master in profile mode. More... | |
| long | sdkStopVirtualMasterProfile (long master) |
| Stops a virtual master in profile mode. More... | |
Declaration of the virtual master functions.
Definition in file SDK_VirtualModule_MasterSetup.mh.
| long sdkSetupVirtualMasterAxisLink | ( | long | master, |
| long | axis | ||
| ) |
Set the virtual master as master of an axis.
Set the virtual master as master of an axis.
| master | Master module number |
| axis | Axis module number |
Definition at line 45 of file SDK_VirtualModule_MasterSetup.mc.
| long sdkSetupVirtualMasterMode | ( | long | master, |
| long | mode | ||
| ) |
Setup a virtual master.
The virtual master module generates a virtual speed and position signal. There are two modes to operate the module (see VIRTMAST_MODE):
| master | Master module number |
| mode | Axis module number 0 VIRTMAST_MODE_DISABLED: Disabled, output velocity is zero 1 VIRTMAST_MODE_VELOCITY: Velocity mode, PO_VIRTMAST_VEL is taken directly from VIRTMAST_PISRC_CMDVEL 3 VIRTMAST_MODE_PROFILE: Velocity profile mode, PO_VIRTMAST_VEL is generated using VIRTMAST_VEL/ACC/DEC |
Definition at line 28 of file SDK_VirtualModule_MasterSetup.mc.
| long sdkSetupVirtualMasterScale | ( | long | master, |
| long | numerator, | ||
| long | denominator | ||
| ) |
Scale the input parameters of the virtual master.
This function converts user units into increments (increments * (numerator/denominator))
The parameters VIRTMAST_VEL, VIRTMAST_ACC, VIRTMAST_DEC, VIRTMAST_PISRC_CMDVEL and the output PO_VIRTMAST_VEL are changed according to this scaling.
| master | Master module number |
| numerator | User factor numerator to scale to increments |
| denominator | User factor denominator to scale to increments |
Definition at line 67 of file SDK_VirtualModule_MasterSetup.mc.
| long sdkSetVirtualMasterProfile | ( | long | master, |
| long | acc, | ||
| long | dec | ||
| ) |
Set a virtual master profile.
Only if the virtual master is in profile mode (sdkSetupVirtualMasterMode()).
Definition of the profile parameters of the master. The scaling can be adjusted with the sdkSetupVirtualMasterScale() function.
| master | Master module number |
| acc | Acceleration to reach target velocity [uu/ms] |
| dec | Deceleration to reach target velocity [uu/ms] |
Definition at line 88 of file SDK_VirtualModule_MasterSetup.mc.
| long sdkStartVirtualMasterProfile | ( | long | master, |
| long | vel | ||
| ) |
Starts a virtual master in profile mode.
Only if the virtual master is in profile mode (sdkSetupVirtualMasterMode()).
Starts a virtual master in profile mode, where the speed is transferred. The scaling can be adjusted with the sdkSetupVirtualMasterScale() function.
| master | Master module number |
| vel | Target velocity [uu/ms] |
Definition at line 108 of file SDK_VirtualModule_MasterSetup.mc.
| long sdkStopVirtualMasterProfile | ( | long | master | ) |
Stops a virtual master in profile mode.
Only if the virtual master is in profile mode (sdkSetupVirtualMasterMode()).
Stops a virtual master in profile mode.
| master | Master module number |
Definition at line 124 of file SDK_VirtualModule_MasterSetup.mc.