OpenEL  3.0.0
Macros | Functions
openEL_motor.c File Reference

OpenEL Motor Common File 3.0.0. More...

#include "openEL.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define OPENEL_SW_SURFACE_FRIEND   (1)
 

Functions

enum ReturnCode HalSetPosition (HALCOMPONENT_T *halComponent, halfloat position)
 
enum ReturnCode HalGetPosition (HALCOMPONENT_T *halComponent, halfloat *position)
 

Detailed Description

OpenEL Motor Common File 3.0.0.

Definition in file openEL_motor.c.

Macro Definition Documentation

◆ OPENEL_SW_SURFACE_FRIEND

#define OPENEL_SW_SURFACE_FRIEND   (1)

Definition at line 26 of file openEL_motor.c.

Function Documentation

◆ HalGetPosition()

enum ReturnCode HalGetPosition ( HALCOMPONENT_T halComponent,
halfloat position 
)

OpenELモーター 位置の取得(I32)

Parameters
[in]portID: ポートID
[in]idx: 0:現在の検出位置 / 1:指定された目標位置 / 2:現在の指令位置
[out]pOutPos
Returns
エラーコード 0:正常 / 0以外:異常 ユーザースレッド (ノンブロッキング)

Definition at line 69 of file openEL_motor.c.

◆ HalSetPosition()

enum ReturnCode HalSetPosition ( HALCOMPONENT_T halComponent,
halfloat  position 
)

OpenELモーター 位置決め運転

Parameters
[in]portID: ポートID
[in]angle: 絶対位置指令 [ユーザー単位]
[in]speed: 速度 [ユーザー単位/s] 範囲 0より大きい~製品仕様
[in]tmAcc: 加減速時間 [ms](I32),[s](F64) 0以上~製品仕様
Returns
エラーコード 0:正常 / 0以外:異常(運転を受け付けられない状態) ユーザースレッド (ノンブロッキング) 速度、加減速時間を設定しない関数の場合はパラメーターに従う パラメーターID:16で浮動小数点にしている場合はエラー

Definition at line 41 of file openEL_motor.c.