Relays, Memory Areas and Constants
1-80
1.4.5 Character Constants (M)
Function of character constants (M)
The character constant is used to express ASCII code in binary.
The character constant is expressed by adding the prefix M to the data.
There are only two instructions in which character constants can be specified, F95
(ASC) instruction, F257 to F265 (SYS1) instruction and F149 (MSG) instruction.
The character constant M is stored in a specified memory area in the PLC as BIN data,
as shown below.
Example: When character constant “MEWNET” is input
54 45
One word
4E 57 45 4D
TENWEM
Character constant
One word One word
ASCII Hex code