hit counter script

LG MASTER-K Series User Manual page 78

Programmable logic controller
Table of Contents

Advertisement

Chapter 7. MK PROGRAMMING
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.
(Data Register)
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.
(Data Register)
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.
CPU
Data
D90
Execution Condition
CPU
Data (Lower)
D51
Data (Upper)
D52
Execution Condition
CPU
h0402
Execution Condition
[Fig 7.5] Write Example
Write
P U T
5
Write
P U T
5
Write
P U T
5
7 - 4
High Speed Counter
Module
(Address)
Data
0:CH0 Preset Value
0
D 0 0 9 0
1
High Speed Counter
Module
Buffer Memory
Data (Lower)
2
Data (Upper)
3
2
D 0 0 5 1
2
High Speed Counter
Module
(Address)
h0402
4:CH0 Out Data
4
h 0 4 0 2
1
CH0 Set Value

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Glofa gm seriesG3f-hscaG4f-hscaG6f-hsca

Table of Contents

Uploaded: cache9/manual/2166795/Lg-Master-K-Series.html%3Fpage%3D78.gz