CONFIG_WEAVING_SETTING

이 구조체는 용접용 일반 위빙 구성을 정의합니다. 세부 공용체(union)로 사다리꼴 패턴과 원형(리사주 유사) 패턴을 지원합니다.

BYTE#

필드 이름

자료형

값

비고

0

_iType

unsigned char

위빙 유형 선택(예: 사다리꼴 또는 원형)

1

_fOffsetY

float

mm

Y 방향 위빙 오프셋

5

_fOffsetZ

float

mm

Z 방향 위빙 오프셋

9

_fGradient

float

위빙 기울기

13

_tDetail

union{ _tTrap | _tCirc | _szBuffer }

패턴별 매개변수(아래 참고)

전체 크기: 61바이트

세부 공용체

  • 사다리꼴 (_tTrap)

    BYTE#

    필드 이름

    자료형

    값

    비고

    13

    _tDetail._tTrap._tPoint1

    POINT_2D

    코너 점 1(X,Y)

    21

    _tDetail._tTrap._tPoint2

    POINT_2D

    코너 점 2(X,Y)

    29

    _tDetail._tTrap._fTMove1

    float

    s

    이동 시간 1

    33

    _tDetail._tTrap._fTMove2

    float

    s

    이동 시간 2

    37

    _tDetail._tTrap._fTAcc1

    float

    s

    가속 시간 1

    41

    _tDetail._tTrap._fTAcc2

    float

    s

    가속 시간 2

    45

    _tDetail._tTrap._fTDwell1

    float

    s

    정지 시간 1

    49

    _tDetail._tTrap._fTDwell2

    float

    s

    정지 시간 2

  • 원형 (_tCirc)

    BYTE#

    필드 이름

    자료형

    값

    비고

    13

    _tDetail._tCirc._fWidthX

    float

    mm

    X 폭(진폭)

    17

    _tDetail._tCirc._fWidthY

    float

    mm

    Y 폭(진폭)

    21

    _tDetail._tCirc._fPeriodX

    float

    s

    X 주기

    25

    _tDetail._tCirc._fPeriodY

    float

    s

    Y 주기

정의 위치: DRFS.h

typedef struct _CONFIG_WEAVING_SETTING
{
    unsigned char _iType;
    float _fOffsetY;
    float _fOffsetZ;
    float _fGradient;

    union {
        struct {
            POINT_2D _tPoint1;
            POINT_2D _tPoint2;
            float _fTMove1;
            float _fTMove2;
            float _fTAcc1;
            float _fTAcc2;
            float _fTDwell1;
            float _fTDwell2;
        } _tTrap;

        struct {
            float _fWidthX;
            float _fWidthY;
            float _fPeriodX;
            float _fPeriodY;
        } _tCirc;

        unsigned char _szBuffer[48];
    } _tDetail;
} CONFIG_WEAVING_SETTING, *LPCONFIG_WEAVING_SETTING;