Download XC100 Modular PLC
Transcript
10/10 MN05003004Z-EN Table 5: Direct peripheral access Parameters of the “ReadBitDirect” function uiSlot: Slot number of the signal module. For possible parameters see table 4 on page 29 uiBit: Bit position within the input value of the signal module. For possible parameters see table 4 on page 29 ptr_xValue: Pointer to the variable value ReadBitDirect: Display of the fault code, see table 9 on page 33 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. Figure 42: ReadWordDirect function Table 6: Parameters of the “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 31