Relays, Memory Areas and Constants
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
T
54
One word
1 - 80
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
E
N
W
E
M
45
4E
57
45
4D
One word One word
Character constant
ASCII Hex code