정의
app_weld_adj_welding_cond_analog(flag_reset=0, v_target=None, f_target=None, vel_target=None, wv_offset=None, wv_width_ratio=None)
기능
아날로그 용접 중 용접 및 위빙조건을 조정합니다. 일반적으로 연속된 경로에서 구간별로 용접조건을 변경하고자 할 때 모션명령어(movel(), movec(), moveb(), movesx()) 호출 직전에 사용합니다. 본 명령어로 조정인자를 입력한 경우 해당하는 용접 및 위빙조건이 조정되며 이 때에는 TP의 용접모니터링 정보창에서 용접/위빙조건을 실시간으로 조정할 수 없습니다. 조정조건에서 본조건(app_weld_set_weld_cond_analog() 및 app_weld_weave_cond_trapezoidal() 등으로 설정한 용접/위빙조건)으로 복귀하려면 flag_reset=1로 실행하세요. flag_reset=1 설정 시 TP에서 실시간으로 조정한 최종 조건으로 복귀되며(실시간으로 조정불가능한 위빙폭의 비(wv_width_ratio)는 1로 변경됩니다.) TP에서 용접조건을 실시간으로 조정할 수 있습니다.
인수
|
인수명 |
자료형 |
기본값 |
설명 |
|---|---|---|---|
|
flag_reset |
int |
0 |
0 : 조정값 적용 1 : 기준목표(app_weld_set_weld_cond_analog()) 값 적용 |
|
v_target |
float |
- |
목표전압 (V) |
|
f_target |
float |
- |
피딩속도 (m/min) |
|
vel_target |
float |
- |
목표속도 (mm/sec) * 티치펜던트의 입력단위와 다른 것에 유의할 것(Cm/min) |
|
wv_offset |
float[2]
|
- |
위빙좌표계-y방향 옵셋 (mm) |
|
- |
위빙좌표계-z방향 옵셋 (mm) |
||
|
wv_width_ratio |
float |
- |
변경위빙폭/설정위빙폭 의 비 (0~2) |
알아두기
인수 v_target/f_target/vel_target/wv_offset/wv_width_ratio 중 값을 지정하지 않는 조건은 현재의 조건(실시간으로 조정한 조건 포함)이 유지되므로 조정을 원하는 인수만 설정하세요. 단 wv_offset의 경우 y방향 또는 z방향 중 하나만 조정하더라도 배열의 두 값을 모두 입력하여야 합니다.
리턴
|
값 |
설명 |
|---|---|
|
0 |
설정 성공 |
|
음수값 |
설정 실패 |
예외
|
예외 |
설명 |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
인수들의 데이터형 오류 시 |
|
DR_Error (DR_ERROR_VALUE) |
인수의 값이 유효하지 않을 시 |
|
DR_Error (DR_ERROR_RUNTIME) |
C Extension 모듈 에러 발생 시 |
|
DR_Error (DR_ERROR_STOP) |
프로그램 강제 종료 시 |
예제
movej(posj(0,0,90,0,90,0),v=30,a=60)
pt1= posx(559, 434.5, 651.5, 45, 180, 45)
pt2= posx(559, 434.5, 151.5, 45, 180, 45)
pt3= posx(559, 0.0, 151.5, 45, 180, 45)
app_weld_enable_analog(ch_v_out=[1,1], spec_v_out=[0,0,300,10], ch_f_out =[2,1],
spec_f_out =[0,0,40,10], ch_v_in =[1,1], spec_v_in =[0,0,300,10], ch_c_in =[2,1],
spec_c_in=[0,0,40,10], ch_arc_on=1, ch_gas_on=2, ch_inching_fwd=3,
ch_inching_bwd=4, ch_blow_out=5)
app_weld_set_weld_cond_analog(flag_dry_run=1, v_target=24, f_target=20, vel_target=60, vel_min=10,
vel_max=100, weld_proc_param=[0.2,0.2,0.5,0.5,0.5,0.2,0.2,0.5,0.5])
movel(pt1, v=5, a=5, r=30, app_type=DR_MV_APP_WELD)
app_weld_adj_welding_cond_analog(flag_reset=0, v_target=20, f_target=10, vel_target=30, wv_offset=[20,10], wv_width_ratio=0.5)
movel(pt2, v=5, a=5, r=30, app_type=DR_MV_APP_WELD)
app_weld_adj_welding_cond_analog(flag_reset=1)
movel(pt3, v=5, a=5, app_type=DR_MV_APP_WELD)
# 시작위치 → pt1 : 초기설정용접조건 적용 (24V, 20m/min)
# pt1 → pt2 : 조정조건 적용 (20V, 10m/min)
# pt2 → pt3 : 초기설정 적용 (24V, 20m/min)
app_weld_disable_analog()