NX
Converting all the Characters in an Operator Message to Upper Case
2021-10-06T23:27:49Z
NX for Manufacturing
Summary
Details
An Operator Message was added to the Start Events in a CAM program. Some of the characters in that message were lower case. When the posted program was loaded into the NC controller errors were reported. This happened because lower case text characters are not allowed on some controllers. What could be done in a Post Builder post to convert all Operator Messages to upper case?
Solution
To convert all text to upper case when posting add the following TCL code to the Post Builder -> Program & Tool Path -> Custom Command -> PB_CMD_MOM_operator_message.
if { [info exists mom_operator_message] } { set mom_operator_message [ string toupper $mom_operator_message ] }
The output from the Operator Message seen at the beginning of this article will look something like the following when posted.
Notes and References
Please be aware that any code provided by NXCAM Support is intended to be used for sample purposes only. It is the user's responsibility to determine whether the code is suitable for the purpose.
Hardware/Software Configuration
Platform: all OS: n/a OS Version: n/a Product: NX Application: CAM Version: V1946 Function: POSTBUILDER