wip 5cam mover

This commit is contained in:
2018-03-29 16:53:23 +02:00
parent c7a3ac8f36
commit 69ffc089bf
11 changed files with 739 additions and 62 deletions

View File

@@ -18,25 +18,35 @@ powerPmacCreateAxis($(PORT), 5)
#powerPmacCreateVirtualAxis(<port_name>, <axis_index>, <coord_sys_index>, <axis_name>,<commaSeparatedMotorIndices)
# !!! COMMENTS AFTER 'powerPmacCreateVirtualAxis("$(PORT)", 9, 1, "X",1)' IS NOT ALLOWED !!!
#powerPmacCreateVirtualAxis("$(PORT)", 9 , 1, "X",1,2,3,4)
#powerPmacCreateVirtualAxis("$(PORT)", 10, 1, "Y",1,2,3,4)
#powerPmacCreateVirtualAxis("$(PORT)", 11, 1, "A",1,2,3,4)
#powerPmacCreateVirtualAxis("$(PORT)", 12, 1, "B",1,2,3,4)
#powerPmacCreateVirtualAxis("$(PORT)", 13, 1, "C",1,2,3,4)
powerPmacCreateVirtualAxis("$(PORT)", 9 , 1, "X",1,2,3,4)
powerPmacCreateVirtualAxis("$(PORT)", 10, 1, "Y",1,2,3,4)
powerPmacCreateVirtualAxis("$(PORT)", 11, 1, "U",1,2,3,4)
powerPmacCreateVirtualAxis("$(PORT)", 12, 1, "V",1,2,3,4)
powerPmacCreateVirtualAxis("$(PORT)", 13, 1, "W",1,2,3,4)
OX=1
OY=1
OP=1
OYW=1
OR=1
powerPmacSetCustomMotion $(PORT) 1 1
powerPmacSetCustomMotion $(PORT) 2 1
powerPmacSetCustomMotion $(PORT) 3 1
powerPmacSetCustomMotion $(PORT) 4 1
powerPmacSetCustomMotion $(PORT) 5 1
powerPmacSetCustomMotion $(PORT) 9 1
powerPmacSetCustomMotion $(PORT) 10 1
powerPmacSetCustomMotion $(PORT) 11 1
powerPmacSetCustomMotion $(PORT) 12 1
powerPmacSetCustomMotion $(PORT) 13 1
# Load databse
dbLoadTemplate("$(ESB_MX_TEMPLATES)/$(P)3.subs", "PORT_M=$(PORT),P_M=$(P)")
require "HEXGIR" alarcon_a
#OX=1
#OY=1
#OP=1
#OYW=1
#OR=1
#require "HEXGIR" alarcon_a
# Load databse
dbLoadTemplate("$(HEXGIR_TEMPLATES)/HEXGIR_motor.subs", "PORT_M=$(PORT),P_M=$(P),M1=1,M2=2,M3=3,M4=4,M5=5,E1=1,E2=2,E3=3,E4=4,E5=5")
#dbLoadTemplate("$(HEXGIR_TEMPLATES)/HEXGIR_motor.subs", "PORT_M=$(PORT),P_M=$(P),M1=1,M2=2,M3=3,M4=4,M5=5,E1=1,E2=2,E3=3,E4=4,E5=5")
#dbLoadTemplate("$(HEXGIR_TEMPLATES)/HEXGIR_girder.subs", "P_M=$(P)")
dbLoadTemplate("$(HEXGIR_TEMPLATES)/HEXGIR_girder.subs", "P_M=$(P), X_OFFSET=$(OX),Y_OFFSET=$(OY),PITCH_OFFSET=$(OP),YAW_OFFSET=$(OYW),ROLL_OFFSET=$(OR)")
#dbLoadTemplate("$(HEXGIR_TEMPLATES)/HEXGIR_girder.subs", "P_M=$(P), X_OFFSET=$(OX),Y_OFFSET=$(OY),PITCH_OFFSET=$(OP),YAW_OFFSET=$(OYW),ROLL_OFFSET=$(OR)")