Professional Documents
Culture Documents
PLC CH5 B
PLC CH5 B
1
Outline:
Introduction
Counter Addressing.
Timer Addressing.
Integer Elements Addressing.
Floating Point Element Addressing.
String File Elements Addressing.
User Defined Files.
2
Introduction:
3
Counter Addressing Example:
File Type Element Delimiter
C5:0
Element
File Number
(Counter Number)
4
Timer Addressing Example:
File Type Element Delimiter
T4:7.Acc
File Number Word
Element Word Delimiter
( Timer Number)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Element
EN TT DN Internal Use 0 T4:7
Preset Value PRE 1 T4:7.PRE
Accumulated Value ACC 2 T4:7.ACC
N7:12
File Number Element
(Word Number)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Element
N:10
6
Floating-Point Element Addressing
Floating-point files have two-word elements (Two words
are used to hold the floating-point number).
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Element
F8:0
7
String-File Elements Addressing
String files have 42-word elements.
The decimal point delimiter is used to specify the
particular word in the string file.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Element
STf:0.LEN
STf:0.1
STf:0.2
STf:0.40
STf:0.41
8
User – Defined Files
User-Defined Files
File Type Identifiers File Number
Bit B
Timer T
Counter C 9 - 255
Control R
Integer N
Float F
String St
ASCII A
A whole file must have the same use . For example: If you want to use
file 10 for additional integers, file 10 can be used only for integers.
9
10