Chapter 13 RS-232C function of K200S MASTER-K
13-7
13.6.3 Data type
Symbol Data type Examples
X ( h58 ) bit %mx0003, %PX001C, %TX0002
W ( h57 ) word %mw0003, %PW0012, %CW0120
13.6.4 Device number
When the data type is assigned as word, all device number is expressed in decimal
number. When the data type is bit, however, the last digit of device number is
hexadecimal number. ( other digits are decimal number )
Please refer the chapter 4.6.1 ‘ memory configuration’ or the ‘MASTER-K programming
manual’ for details.
Examples) %MX010E : indicates bit E ( 15
th
bit ) of M010 word
%MW0100 : indicates M100 word
%DW0200 : indicates D0200 word
%PX031A : indicates bit A ( 10
th
bit ) of P031 word
%TX0012 : indicates output relay of timer 12
%TW0012 : indicates elapsed value of timer 12
%SW0024 : indicates 24
th
set ( S24.00 ~ S24.99 ) of step controller
When read or write S device, address should be assigned in word type although step
controllers are handled as bit. See following examples for details.
1. Turn on S00.07 : Write 07 to the %SW0000
2. Turn on S05.15 : Write 15 to the %SW0005
3. Clear S10 set : Write 00 to the %SW0010
4. Read S23 set : Read the %SW0023. Returned decimal number shows which
bit is turned on. ( If S23.47 is on, CPU will return h3437=47 )
In the above examples, device numbers are consist of 4 digits and it is the rec
format of MASTER-K series. However, 2 ~ 8 digits can be used as device number.
Example ) %MX01 = %MX001 = …. = %MX0000001 = %MX00000001
%DW31 = %DW031 = …. = %DW0000031 = %DW00000031