EasyManuals Logo

Moeller XC-CPU101-C64K-8DI-6DO User Manual

Moeller XC-CPU101-C64K-8DI-6DO
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #37 background imageLoading...
Page #37 background image
03/05 AWB2724-1453GB
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”
Verify all functions 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 a table 9
The data fields for the value transfer remain unchanged.
Table 9: Error code with direct peripheral access IO_ACCESS_NO_ERROR data type
Figure 43: 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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Moeller XC-CPU101-C64K-8DI-6DO and is the answer not in the manual?

Moeller XC-CPU101-C64K-8DI-6DO Specifications

General IconGeneral
BrandMoeller
ModelXC-CPU101-C64K-8DI-6DO
CategoryController
LanguageEnglish

Related product manuals