10/10 MN05003004Z-EN
Direct peripheral access
33
WriteWordDirect
A word of an output module can be written directly with this
function. At the time of access, the respective output image is also
refreshed in addition to the physical output.
A further refresh of the output word occurs at the end of the cycle.
Table 8:
Parameters of the “WriteWordDirect” function
Error code with “direct peripheral access”
All functions verify as far as possible for the validity of the call
parameters. Verification is undertaken to determine if the access
occurs in dependance on the parameterized signal module and the
physical existence of the signal module. If a fault is determined,
access is not undertaken and an error code is output
The data fields for the value transfer remain unchanged.
Table 9:
Error code with direct peripheral access IO_ACCESS_NO_ERROR data type
Figure 44: WriteWordDirect function
uiSlot:
Slot number of the signal module. For possible parameters see table 4 on page 29
uiOffset:
Output word within a signal module. For possible parameters see table 4 on page 29
wValue:
Input parameter from “Word” type
WriteWordDirect
Display of the fault code, see table 9 on page 33
IO_ACCESS_NO_ERROR:
0:
No error
IO_ACCESS_INVALID_
SLOTNUMBER
1:
Slot = 0 or greater than 7
IO_ACCESS_INVALID_OFFSET
2:
BitWord offset is too large
IO_ACCESS_DENIED
3:
Invalid access, e.g. write access to input module, read access to output module or access to non-available
address range (offset too large)
IO_ACCESS_NO_MODULE
4:
No module available at the parameterized slot
IO_ACCESS_INVALID_VALUE
4:
Result is not “0” or “1” with “WriteBitDirect”
IO_ACCESS_ INVALID _BUFFER
5:
No or incorrect pointer to the output variables
Содержание XC200 Series
Страница 4: ...II ...
Страница 8: ...10 10 MN05003004Z EN 4 ...
Страница 28: ...10 10 MN05003004Z EN 24 ...
Страница 50: ...10 10 MN05003004Z EN 46 ...
Страница 74: ...10 10 MN05003004Z EN 70 ...