차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
platform:ethercat:2_info:zero_vibration:start [2019/08/24 01:02] winoars [C#] |
platform:ethercat:2_info:zero_vibration:start [2024/07/08 18:23] (현재) |
||
|---|---|---|---|
| 줄 18: | 줄 18: | ||
| </ | </ | ||
| - | <callout type="success"> | + | <callout type="info"> |
| ===API=== | ===API=== | ||
| **ecmSxCfg_SetZVISParam** : 진동 억제 기능을 위한 파라메타를 설정합니다. | **ecmSxCfg_SetZVISParam** : 진동 억제 기능을 위한 파라메타를 설정합니다. | ||
| 줄 57: | 줄 57: | ||
| </ | </ | ||
| - | <callout type="info"> | + | <callout type="success"> |
| ===C#=== | ===C#=== | ||
| <sxh csharp> | <sxh csharp> | ||
| - | // int ecmSxCfg_SetZVISParam(int NetID, int Axis, double NaturalFrequency, | ||
| - | // int ecmSxCfg_SetZVISEnable(int NetID, int Axis, bool isEnable, ref int ErrCode) | ||
| - | // 진동 수 : 5.5 / 감쇠비 : 0 / Mode : 2 로 설정 | + | private void SetZeroVibration(int axisID) |
| - | ecmSxCfg_SetZVISParam(netID, | + | |
| - | if (errorCode != 0) | + | |
| { | { | ||
| - | | + | // int ecmSxCfg_SetZVISParam(int NetID, int Axis, double NaturalFrequency, |
| - | } | + | // int ecmSxCfg_SetZVISEnable(int NetID, int Axis, bool isEnable, ref int ErrCode) |
| - | // 진동억제 기능 적용 | + | // 진동 수 : 5.5 / 감쇠비 : 0 / Mode : 2 로 설정 |
| - | ecmSxCfg_SetZVISEnable(netID, | + | |
| - | if (errorCode != 0) | + | if (errorCode != 0) |
| - | { | + | { |
| - | // 에러처리 | + | // 에러처리 |
| + | } | ||
| + | |||
| + | // 진동억제 기능 적용 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||