Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter Five PLC Function Code
39
V
o
lume
I Programming
When ACT
=
1, F10
=
8, R4
=
0000,0001;
When ACT
=
1, F10
=
9, R4
=
0000,0010;
………………………….
When ACT
=
1
,
F10
=
15, R4
=
1000,0000;
5.16 COD (Binary System Code Conversion)
Function:
COD code may automatically produce a corresponding table under its function block when it
inputs the data capacity, which is used for inputting the conversion table data for the user. 10 grids of
each row in this table, it calculates based upon the qu1 if it can not be exactly divided, but the
capacity data does not change, and then the address of the table number may not display.
Format:
Fig. 5-16-1
Table 5-16-2
S1
S2
S1
S2
0
1
2
9
XXX
YYY
AAA
10
11
12
N-1
………
………
………
………
………
………
………
UUU
………
Controllable condition:
Reset (RST):
RST=0, Do not reset.
RST=1, It will output W resetting incorrectly
Working code (ACT):
ACT
=
0: Do not perform the COD.
ACT
=
1: Perform the COD. The value of the “conversion input data address (S1)” is
regarded as the table number of the conversion table, the corresponding
conversion data of the table number is taken out from conversion table to
output the “output address to the conversion data (S2)”.