Changing the resolution, the scanning time and the averaging
The EBE275.2 enables the user to adjust the scanning time or the
resolution of the card in order to suit the particular application
concerned.
The factory setting of the EBE275.2 is as follows:
Averaging:
Resolution:
10,001 increments
Scanning time:
50 ms
These settings can be modified at any time when the PS 316 is in
normal operation (CPU mode "RUN").
Thesetting for averaging,resolutionand scanning time apply
to one card, i.e. 4 channels.
The scanning time or resolution can be changed as follows:
Table
1
Scanning time
Resolution
[msl
(increments]
163.835
32 768
100.000
20 001
90.000
18001
81.915
16384
80.000
16001
14 001
70.000
60.000
12001
10001
50.000
40.955
8192
8 001
40.000
6 001
30.000
4 096
20.475
4 001
20.000
10.235
2048
2001
10.000
5.115
1 024
5.000
1001
4.000
801
3.000
601
512
2.555
2.000
401
256
1.275
1.000
201
Setting the Averaging, Resolution and Scanning Time
Principle:
The required values are sent to the card via the relevant user
program. The necessarydata is allocatedto the appropriate memory
cells of the card. An interrupt must be triggered in order to transfer
the values needed for the resolution and scanning time.
The necessary allocation instruction requiredfor the values is:
pp
*** B
are adresses which are listed in Tables 3 and 4.)
In order to ensure data security, 50
of an analogue input.
Procedure:
First check whether the averaging function is to be switched ON or
OFF. The correct value to be selected here is shown in Table 2 (default
value of PS 316 when started is Averaging ON).
Table
2
Averaging
ON
OFF
Then determine
the resolution
card. The factor I and factor2 values are given in Table 1 (default of
PS 316 when started is Scanning time = 50 PS, Resolution
10 001 increments).
The relevant parallel bus page (PP***)for the operands (IA" —
analogue input) must then be determined. See Table3.
Table
3
Paraliel
bus
Operands
page
pp 128
pp
129
pp 130
IA
8-11
IA 12— 15
pp 131
IA16-19
pp 132
pp 133
IA20
-23
IA24
-27
pp 134
pp 135
IA28
-31
ON
Factor
1
Factor
Range
limit
(Value)
(Value)
value
1 510
652
32 767
401
20000
1 500
1 500
361
18000
259
16383
1 905
1 500
321
16000
1 500
281
14000
241
1 500
12 ooo
1 500
201
10000
31
8191
8191
1 500
161
8000
1 500
121
6000
1 575
79
4095
1 500
81
4 ooo
2047
2047
31
1 500
41
2000
19
1 023
1 705
1 500
21
1 000
1 500
17
800
1 500
13
1 533
11
511
9
400
1 500
1 530
6
255
1 500
5
200
must pass before the first scan
Value
and scanning time required for the
Parallel
bus
Operands
page
pp 136
IA32
-35
pp
137
IA36
- 39
pp 138
IA 40 — 43
IA 44 — 47
139
IA 48—51
pp 140
pp 141
IA52-55
IA56
- 59
pp 142
pp 143
IA60-63
Lastly determine the addresses of the memory cells within the
parallel bus page using Table 4.
Table4
Function
Factor 1 L byte
Factor 1 H byte
Factor 2 L byte
Faktor2
H byte
Averaging ON/OFF
Interrupt register
Once all values have been determined, the program must be written
for the
SUCOS
PS 316.
Thefollowing example program enablesan EBE275.2 to be set with
the values given below:
Example:
Averaging: OFF
2
Resolution:
256 increments
Scanning time: 1.275 ms
Operand: IA O—3
Byte addresses, see Table 4.
The card is allocated with new values during the first program cycle
by using the IFC information flag.
SUCOSOFT S 30-S 316 program in IS:
ØØØØØ START
# define
001
002
003
L
ØØ4
JCN
005
"Transfer values for factor 1 and 2 to auxiliary
006
"markers and allocate to memory cells in the card
007
008
011
012
013
014
015
016
017
018
019
021
"Declare validity of values.
022
023
L
024
025
026
"Switch off averaging, transfer value.
027
028
029
030
081
032
"Load
033
034
035
"Wait time until access to IA" permitted.
LOOP
001
002
003
DEC
004
BNZ
005
006
OPERATE "The normal program starts here.
00002
001
002
003
ADD
004
005
"End of program
00003
END
001
002
If you wish to set parameters for more than one EBE275.2 card,
block 00000 can be extended in the above example.
Memory cell in the page
byte adress (B
B 120.0
B 120.8
B 121 .O
B 121.8
3126.8
B 127.8
Value
= O
Factori
= 1530, Factor2 = 6
Parallel bus page = PP 128
"rØs6
IAD"
IFC
OPERATE
6
1.0
1.0
B 121.0
pp 128
1.8
pp 128
B 121.8
1530
MW
1.0
1.0
pp 128
8120.0
1.8
pp 128
B 120.8
KB
0
pp 128
B 127.8
pp 128
8126.8
wait
time.
40
l.ø
1.0
MB
1.0
LOOP
KW
3.0
MW