Download CX-Programmer Operation Manual
Transcript
Section 5-3 Inputting ST Programs • Certain alphabet characters following a dollar sign ($) are interpreted as listed in the following table. Notation Description The dollar sign (ASCII 24) A single quotation mark (ASCII 27) Line feed (ASCII 0A) Carriage return + line feed (ASCII 0D 0A) New page (ASCII 0C) Carriage return (ASCII 0D) Tab (ASCII 09) $$ $’ $L or $l $N or $n $P or $p $R or $r $T or $t • When a text string is being stored from the ladder program in an ST function block’s STRING variable, append a NULL character (#00) to the end of the text string. Example: Passing string data to the function block STRING variable StrX: Ladder program that stores "123456" in STRING variable StrX: MOV #3132 D100 MOV #3334 D101 MOV #3536 D102 MOV #0000 D103 Attach a NULL character (#00) at the end. STRING data is stored to the function block by the ladder program above. D100 5-3-2 (STRING) StrX (STRING) StrX D100 CX-Programmer's ST Input Screen Display Text Display Color The CX-Programmer automatically displays text in the following colors when it is input or pasted in the ST Input Screen. • Text keywords (reserved words): Blue • Comments: Green • Errors: Red • Other: Black Changing Fonts 140 To change font sizes or display colors, select Tools - Options, click the Appearance Tab, and then click the ST Font Button. The font name, font size (default is 8 point), and color can be changed.