4 Data Exchange with the CPU Unit
4-14
CJ-series PROFINET IO Controller Unit Operation Manual for NJ-series CPU Unit (W511)
The following device variables for CJ-series Unit are used to reference individual information.
Array elements of *
_DevInDataValid
[1 to 126] correspond to IO Device station numbers 1 to 126. The
bits for station 0 and 127 are not used.
Precautions for Correct Use
Precautions for Correct Use
Always make sure the IO Device Data Exchange Active flag is ON before processing the slave's
input data. The last data from the slave will remain in the CPU memory if data exchange is
stopped.
4-2-5
IO Device Input Valid Flags
Name of device variable
for CJ-series Unit
Type
R/W
Area
Function
*_DevInDataValid
BOOL
RO
IO Device
Input Data
Valid (Array)
Array elements of
*_DevInDataValid
[1 to 126]
correspond to IO Device station numbers 1 to
126. The bits for station 0 and 127 are not used.
FALSE: Turned OFF by the Unit if the corre-
sponding IO Device:
•
Is not providing data
•
Inputs are invalid
•
Is not allocated to this IO Controller
TRUE: Turned ON by the Unit if the correspond-
ing station is in Data Exchange with valid inputs.
*_DevInDataValidL
LWORD
RO
IO Device
Input Valid
flags
The IO Device Input Valid flags indicate for each
IO Device if it is in Data Exchange mode with the
PROFINET IO Controller Unit. The flags are allo-
cated to two LWORD variables of 64 bits (IO
Device Setup tab). See the image below.
*_DevInDataValidH
LWORD
RO
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
*_DevInDataValidL
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
*_DevInDataValidL
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
*_DevInDataValidL
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
*_DevInDataValidL
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
*_DevInDataValidH
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
*_DevInDataValidH
111 110 109 108 107 106 105 104 103 102 101 100
99
98
97
96
*_DevInDataValidH
125 124 123 122 121 120 119 118 117 116 115 114 113 112
*_DevInDataValidH
IO Device 01 to 15
IO Device 16 to 31
IO Device 32 to 47
IO Device 48 to 63
IO Device 64 to 79
IO Device 80 to 95
IO Device 96 to 111
IO Device 112 to 126
126