I'm using my CNC control to read a laser displacment sensor voltage then write the X Y Z and voltage to a file with a low level FILEWRITE command. I'm doing this to reverse engineer, or copy, parts I need.
My question, at the end of a reading, I want to start a new line of data. I need to write something. Carriage return and/or line feed??? I've got this out of my docs but still not sure what to do
Karl
HEXCHAR
This command permits the user to store a hex value into a public variable perhaps to be used with COMMOUT via RS232, PRINT via the printer port, OPENCHANNEL via the network, FILEWRITE via file handling or even LABEL or BUTTON to display multiple lines of text using a carriage return and line feed between lines. The hex value of the character will be stored in the variable. Keep in mind that many characters are non-printable. If you attempt to display a non-printable character, a tall box will appear instead. The range of hex values is between 0 and FF. This equates to 255 values. The special meanings of these hex codes are published in the various versions of Microsoft Windows documented as KeyCode Constants.
Some values are:
1B=ESC11=CTRL
0D=Carriage Return0A=Line Feed
01=Left Mouse button09=Tab