Chapter 8 Communication Functions
8-8
8.1.5 Data type
It’s possible to read and write device in built-in communication. When device is used, be aware of data type.
1) Data type of variable
Available types of device
Device Name Explanation Read/Write Bit/Byte/Word Assignment
P Input/Output relay Available All
M Auxiliary relay Available All
L Link relay Available All
K Keep relay Available All
C Counter Available All(Current value when Word)
T Timer Available All(Current value when Word)
D Data Register Available Byte, Word
S Step relay Available Byte, Word
F Special relay Read Only All
When variable is used, attach ‘%’(25H) in front of the marking characters.
Data type Marking characters Examples
Bit X(58H) %PX000, %MX000, %LX000, %KX000, %CX000, %TX000, %FX000
Byte B(42H) %PB000, %MB000, %LB000, %KB000, %CB000, %TB000, % FB000
Word W(57H)
%PW000, %MW000, %LW000, %KW000, %CW000, %TW000,
%FW000, %DW000, %SW000
Remark
1) Timer/Counter used in bit command means contact point values.(word command means current values.)
2) Data register and Step relay can uses only word or byte commands.
3) In byte type commands, address is doubled
For example, D1234 is addressed to ‘%D1234’ in word type, and is addressed to ‘%2468’ in byte type.