How to Create Character Literals in Sysmac

Updated February 02, 2023

Character Literals in Sysmac

It is common when manipulating strings in Sysmac that you would need to add characters that cannot be entered in the traditional way. For example the ' character cannot be normally entered as adding a ' will end the string. Similarly, a newline character cannot be included in a string. To resolve this, it is possible to use character literals in their place. The below table shows a list of character literals and their equivalent ASCII characters. 

Character Literal
ASCII Character
$L
Line feed
$N
New line
$P
Form feed
$R
Carriage return
$T
Tab
$' or $"
Quotes
$<Any 2 hexadecimal digits>
Character of given ASCII value
Start a Conversation
This conversation is closed
Uploading...