
Chapter 7. MK PROGRAMMING
7 - 4
Example 1
l
16-bit data Write
When the High Speed Counter Module is mounted on the slot 2 of the first expansion base unit and 1-word
data stored in the data register D90 is written to the address 0 of the Buffer Memory.
Example 2
l
32-bit data Write
When the High Speed Counter Module is mounted on the slot 5 of the main base and 2-word(32-bit) data
stored in the data registers D51 and D52 is written to the addresses 2 and 3 of the Buffer Memory.
Example 3
l
Integer Write
When the High Speed Counter Module is mounted on the slot 5 of the main base and H0402 is written to the
address 4 of the Buffer Memory.
[Fig 7.5] Write Example
PUT 5 0 D0090 1
Execution Condition
Data
Data
Write
(Data Register)
D90
CPU
High Speed Counter
Module
(Address)
0:CH0 Preset Value
PUT 5 2 D0051 2
Execution Condition
Data (Lower)
Data (Upper)
Data (Lower)
Data (Upper)
Write
(Data Register)
D51
D52
CPU
High Speed Counter
Module
Buffer Memory
2
3
CH0 Set Value
h0402
Write
CPU
h0402
High Speed Counter
Module
(Address)
4:CH0 Out Data
PUT 5 4 h0402 1
Execution Condition