Function library
FCODE (free codes)
309
EDBCSXS064 EN 4.0
12.22
FCODE (free codes)
Function
This function block provides different signals. The signals can be directly read out and
processed via the assigned "free" codes of the controller.
ƒ
Values in the codes of the function block are assigned to the corresponding output
signals.
ƒ
The code value is converted into a signal value via a fixed scaling routine.
C0017
C0141
C0109/1
C0108/2
C0037
C0108/1
C0135
C0109/2
rpm TO INT
rpm TO INT
DWORD
TO
BIT/BOOL
C0471
C0472/1
C0473/1
C0474/1
C0472/20
C0473/10
C0474/5
BOOL
C0250
DINT
C0475/1
C0475/2
% TO INT
% TO INT
INT
INT
FCODE
16 Bit
...
...
...
...
...
38
43
44
45
46
47
48
271
272
303
49
68
69
78
16
20
79
80
304
319
FCODE-C0017
FCODE-C0037
FCODE-C0141
FCODE-C0108/1
FCODE-C0108/2
FCODE-C0109/2
FCODE-C0135.Bit0
FCODE-C0109/1
FCODE-C0471.Bit0
FCODE-C0471.Bit31
FCODE-C0250
FCODE-C0472/1
FCODE-C0472/20
FCODE-C0473/1
FCODE-C0473/10
FCODE-C0475/2_v
FCODE-C0135.Bit15
FCODE-C0474/1
FCODE-C0474/5
FCODE-C0475/1_v
ECSXA261
Fig. 12−23
FCODE function block
Beispiel
You can enter a percentage value [%] in C0472/1 (e.g. by using the keypad). The value is
directly assigned to the signal "FCODE−C0472/1" (data type "integer") via a fixed scaling
routine and can be processed in the PLC program.
Note!
The free code C0470 has the same memory address as C0471. C0470 can be
read out via the signals "FCODE−C0471.Bit0 ... 31" in C0471.
In contrast to code C0471 which can accept a 32−bit value, code C0470 is
divided into four subcodes with eight bits each.