Example: Recording And Reading Of Values - Jetter JX3-AO4 User Manual

Analog output module
Table of Contents

Advertisement

JX3-AO4

Example: Recording and Reading of Values

Task
Solution
Sample Configuration
JetSym STX-Program
Variable Declaration
Jetter AG
The values at the analog outputs of a JX3-AO4 module are to be recorded in
intervals of 20 ms. After this, the values are stored to the registers of the
controller.
The oscilloscope function of the JX3-AO4 module records the values. After
that, it reads the application program to the controller.
This example is based on the following configuration:
R E
D2
R E D1 D2
R
E
D2
1
2
3
4
5
6
7
8
9
10
11
12
Jetter
13
14
15
16
X19
X51
X21
S11
RUN
LOAD
STOP
I1+
1
X14
0V
2
0V
3
SHLD
4
U2+
5
I2+
6
0V
7
0V
8
SHLD
0V
X52
X22
X15
X11
X61
I3+
9
0V
10
0V
11
SHLD
12
13
U4+
14
I4+
X10
15
0V
DC24V
0V
16
1,2A
SHLD
0V
0V
Number
Item
1
JC-3xx
2
JX3-AO4
3 ... 4
JX3-xxx
Type
TYPE_JX3_AO4_OSCI:
Struct
// Module registers of the oscilloscope function
Command : Int
ParaIdx : Int
Para
: Int
DataIdx : Int
Data
: Int
End_Struct;
End_Type;
Var
JX3_AO4_02 : TYPE_JX3_AO4_OSCI
// Control register for saving the values
ValIdx
: Int;
ValChannel1 : Array[300]
ValChannel2 : Array[300]
ValChannel3 : Array[300]
ValChannel4 : Array[300]
End_Var;
R
E
D2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
X21
1
2
3
4
5
6
7
8
0V
X32
9
10
11
12
13
14
15
16
0V
Description
Controller
Analog output module
Module # 2
Further JX3 modules
At
4
* 9740;
At
4
* 9741;
At
4
* 9742;
At
4
* 9743;
At
4
* 9744;
At
Of
Int;
Of
Int;
Of
Int;
Of
Int;
Programming
%VL 100020000;
117

Advertisement

Table of Contents
loading

Table of Contents