Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
tcl
#DECL
#DECL Writes name, location relative to working frame and a configurable
#DECL (edit this file) list of attributes of all locations of a picked
#DECL path into a csv file.
#DECL
#DECL 050607 KUKA Haering, Mueller Markus
#DECL
#DECL RCS: @(#) $Id: path2csv.tcl,v 1.3 2007/11/20 09:57:29 haering Exp $
#------------------------------------------------------------------------------#
# this might change
#------------------------------------------------------------------------------#
set aG(lGlobalAttrNm) [list \
RRS_MOTION_TYPE \
RRS_TOOL_FRAME \
RRS_OBJECT_FRAME \
RRS_JOINT_SPEED \
RRS_CARTESIAN_POSITION_SPEED \
RRS_ZONE_NAME \
RRS_FLYBY_PARAMETER1 \
RRS_FLYBY_PARAMETER2 \
RRS_FLYBY_PARAMETER3 \
SW_LOC_TYPE \
SW_GUN_STATE \
SW_TIME_ON_PT \
MOUNTED_WORKPIECE_FRAME_NAME \
]
#------------------------------------------------------------------------------#
# prerequisites
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# These are the functions
#------------------------------------------------------------------------------#
while {1 > 0} {
uiWriteMsg $message_text
# $object_id is a valid ID
uiWriteError ""
uiWriteMsg ""
return $object_id
} else {
} else {
# getAttrVal
#
# Returns attribute value of object.
#
# Arguments:
# objID ID of object
# attrNm name of attribute
# Results:
# AttrVal value of attribute (" " if attribute is not set at
all)
#
proc getAttrVal {objID attrNm} {
# working frame
#
# open csv file
#
return
}
#
# write header
#
#
# get location values and write to csv file
#
# local location
# global location
# end of line
close $CsvFh
#------------------------------------------------------------------------------#
# This is the body
#------------------------------------------------------------------------------#
main