03/05 AWB2724-1453GB
Direct peripheral access
31
ReadWordDirect
A word of an input module can be read directly with this function.
The state of an input word is stored in the variables, which indicate
to the parameterized pointer “ptr_wValue”.
The pointer variable will not be changed when a fault occurs
during processing.
Table 6: Parameters of the “ReadWordDirect” function
Figure 41: ReadWordDirect function
uiSlot: Slot number of the signal module. For possible parameters see table 4 on page 29
uiOffset: Word offset within a signal module. For possible parameters see table 4 on page 29
ptr_wValue: Pointer to the variable value
ReadWordDirect:
Display of the fault code, see table 9 on page 33