File tree Expand file tree Collapse file tree
configs/sim/axis/plasma/plasmac2/lib/sim Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33# ---SET CONSTANTS---
44set numJoints $::KINS(JOINTS)
5- set z-axis [ expr $numJoints - 1 ]
5+ set zAxis [ string first " z " [ string tolower $::TRAJ(COORDINATES) ] ]
66
77# ---LOAD COMPONENTS---
88loadrt $::KINS(KINEMATICS)
@@ -59,7 +59,7 @@ addf db_breakaway servo-thread
5959addf db_arc-ok servo-thread
6060
6161# ---Z JOINT CONNECTION---
62- net plasmac:axis-position joint.${z-axis } .pos-fb => plasmac.axis-z-position
62+ net plasmac:axis-position joint.${zAxis } .pos-fb => plasmac.axis-z-position
6363
6464# ---TOOL CHANGE PASSTHROUGH
6565net sim:tool-number <= iocontrol.0.tool-prep-number
Original file line number Diff line number Diff line change 22
33# ---SET CONSTANTS---
44set numJoints $::KINS(JOINTS)
5- set z-axis [string first " z" [string tolower $::TRAJ(COORDINATES) ]]
5+ set zAxis [string first " z" [string tolower $::TRAJ(COORDINATES) ]]
66
77# ---LOAD COMPONENTS---
88loadrt $::KINS(KINEMATICS)
@@ -50,7 +50,7 @@ addf db_breakaway servo-thread
5050addf db_arc-ok servo-thread
5151
5252# ---Z JOINT CONNECTION---
53- net plasmac:axis-position joint.${z-axis } .pos-fb => plasmac.axis-z-position
53+ net plasmac:axis-position joint.${zAxis } .pos-fb => plasmac.axis-z-position
5454
5555# ---TOOL CHANGE PASSTHROUGH
5656net sim:tool-number <= iocontrol.0.tool-prep-number
You can’t perform that action at this time.
0 commit comments