![]() |
ApossC SDK
V01.15
|
Functions with IO samples. More...
Go to the source code of this file.
Functions | |
| long | sdkSetupPwmGenerator_UserParamMode (long userParam, long digOutPWM, long frequency, long cycleRange, long polarity) |
| Setting up a PWM output with a user parameter as input source. More... | |
| long | sdkSetupPwmGenerator_AxisModeVel (long axisNo, long digOutEnable, long digOutPWM, long frequency, long cycleRange, long polarity) |
| Setting up a PWM output with a virtual amplifier as input source. More... | |
| long | sdkScaleAnalogInput (long analogInputNo, long minVoltage, long maxVoltage, long offsetVoltage, long minValue, long maxValue) |
| Scaling of an analog input with user units. More... | |
| long sdkScaleAnalogInput | ( | long | analogInputNo, |
| long | minVoltage, | ||
| long | maxVoltage, | ||
| long | offsetVoltage, | ||
| long | minValue, | ||
| long | maxValue | ||
| ) |
Scaling of an analog input with user units.
This function scales an analog input signal to user specific user units. Additionally, an offset of the analog input signal can be specified.
| analogInputNo | Analog input number(0-xx zero based) |
| minVoltage | Minimum input voltage (mV) |
| maxVoltage | Maximum input voltage (mV) |
| offsetVoltage | Voltage offest, for example, if the voltage range is 0 to 4 V, 2 V should be interpreted as 0 (mV) |
| minValue | Scaling value minimum value to be used in the program (Uu) |
| maxValue | Scaling value maximal value to be used in the program (Uu) |
Definition at line 127 of file SDK_Miscellaneous_IO.mc.
| long sdkSetupPwmGenerator_AxisModeVel | ( | long | axisNo, |
| long | digOutEnable, | ||
| long | digOutPWM, | ||
| long | frequency, | ||
| long | cycleRange, | ||
| long | polarity | ||
| ) |
Setting up a PWM output with a virtual amplifier as input source.
This function sets all important parameters for the use of a PWM output. As input a virtual amplifier is used, where the input source is interpreted as signed 16bit value. Afterwards, standard ApossC move commands such as AxisCvelStart() can be used. A feedback is not implemented with this function. Not all MACS controllers support PWM signals.
| axisNo | Axis module number digOutEnable Enable output number which is automatically set when an axis drive command is started (0-xx zero based) |
| digOutPWM | Digital output number for the PWM (0-xx zero based) |
| frequency | Frequency of the PWM output (default 1000) |
| cycleRange | Duty cycle range A value of 90% means a duty cycle range of 5-95 (default 90) |
| polarity | Polarity of the reference signal (default 0) 0 HWPWMGEN_POLARITY_POSITIVE: Output Signal is not inverted 1 HWPWMGEN_POLARITY_NEGATIVE: Output Signal is inverted |
Definition at line 74 of file SDK_Miscellaneous_IO.mc.
| long sdkSetupPwmGenerator_UserParamMode | ( | long | userParam, |
| long | digOutPWM, | ||
| long | frequency, | ||
| long | cycleRange, | ||
| long | polarity | ||
| ) |
Setting up a PWM output with a user parameter as input source.
This function sets all important parameters for the use of a PWM output. As input a UserParameter is used, where the input source is interpreted as unsigned 16bit value. Not all MACS controllers support PWM signals.
| userParam | User parameter number 1-100 which sets the PWM Input value is an unsigned 16bit value |
| digOutPWM | Digital output number for the PWM (0-xx zero based) |
| frequency | Frequency of the PWM output (default 1000) |
| cycleRange | Duty cycle range A value of 90% means a duty cycle range of 5-95 (default 90) |
| polarity | Polarity of the reference signal (default 0) 0 HWPWMGEN_POLARITY_POSITIVE: Output Signal is not inverted 1 HWPWMGEN_POLARITY_NEGATIVE: Output Signal is inverted |
Definition at line 33 of file SDK_Miscellaneous_IO.mc.