2017-07-19 15:38:47 +00:00
|
|
|
load sserial
|
|
|
|
load vel_int
|
2017-07-19 21:11:24 +00:00
|
|
|
load linrev
|
2017-10-23 16:17:59 +00:00
|
|
|
load idx_home
|
2017-07-19 15:38:47 +00:00
|
|
|
sserial0.rt_prio = 2.0
|
|
|
|
sserial0.frt_prio = 2.0
|
2017-07-19 21:11:24 +00:00
|
|
|
linrev0.rt_prio = 2.1
|
|
|
|
vel_int0.rt_prio = 2.2
|
2017-10-23 16:17:59 +00:00
|
|
|
idx_home0.rt_prio = 2.3
|
2017-07-19 21:11:24 +00:00
|
|
|
linrev0.cmd_in = sserial0.pos_cmd
|
2017-07-26 16:45:58 +00:00
|
|
|
linrev0.cmd_d_in = sserial0.pos_cmd_d
|
2017-07-19 21:11:24 +00:00
|
|
|
vel_int0.pos_in = linrev0.cmd_out
|
2017-07-26 16:45:58 +00:00
|
|
|
vel_int0.vel_in = linrev0.cmd_d_out
|
2017-07-19 18:27:21 +00:00
|
|
|
fault0.en = sserial0.enable
|
2017-07-19 15:38:47 +00:00
|
|
|
sserial0.fault = fault0.fault
|
2017-07-19 18:27:21 +00:00
|
|
|
fault0.cmd_error = sserial0.error
|
2017-10-23 16:17:59 +00:00
|
|
|
linrev0.fb_in = idx_home0.pos_out
|
2017-11-01 21:50:12 +00:00
|
|
|
linrev0.fb_d_in = vel1.vel
|
2017-10-23 16:17:59 +00:00
|
|
|
idx_home0.fb = fb_switch0.mot_fb_no_offset
|
|
|
|
idx_home0.fb_abs = fb_switch0.mot_abs_fb_no_offset
|
|
|
|
idx_home0.index_en = sserial0.index_out
|
|
|
|
idx_home0.mot_state = fb_switch0.mot_state
|
|
|
|
sserial0.index_clear = idx_home0.index_clear
|
|
|
|
linrev0.rev_clear = sserial0.index_clear
|
2017-07-19 21:11:24 +00:00
|
|
|
sserial0.pos_fb = linrev0.fb_out
|
2017-11-01 21:50:12 +00:00
|
|
|
sserial0.vel_fb = linrev0.fb_d_out
|
2017-11-01 22:19:21 +00:00
|
|
|
sserial0.pos_advance = 0.0008
|
2017-07-19 18:27:21 +00:00
|
|
|
rev0.in = vel_int0.pos_out
|
|
|
|
rev0.in_d = vel_int0.vel_out
|
|
|
|
pid0.vel_ext_cmd = rev0.out_d
|
2017-07-19 15:38:47 +00:00
|
|
|
vel_int0.wd = 0.002
|
2017-07-19 18:27:21 +00:00
|
|
|
vel0.en = 0
|
2017-07-23 22:58:34 +00:00
|
|
|
io0.cmdy = sserial0.error
|
|
|
|
io0.cmdg = 1
|
2017-11-05 22:01:28 +00:00
|
|
|
sserial0.in0 = io0.ind0
|
|
|
|
sserial0.in1 = io0.ind1
|
|
|
|
io0.out0 = sserial0.out0
|
|
|
|
io0.out1 = sserial0.out1
|
|
|
|
io0.out2 = sserial0.out2
|
|
|
|
fault0.brake_release = sserial0.out3
|
|
|
|
term0.wave2 = linrev0.cmd_d_out
|
2017-12-04 15:48:44 +00:00
|
|
|
sserial0.current = hv0.q_fb
|
2017-12-06 17:38:55 +00:00
|
|
|
linrev0.scale = sserial0.scale
|