User Manual

Operation
12/06 AWB2724-1584GB
54
Function call: ReadBitDirect(uiSlot, uiBit, ptr_xValue)
The following tables show the access options available:
Table 11: Functions for accessing the I/Os
Table 12: FBs for the high-speed counters
Error code for “direct I/O access”
All functions verify as far as possible the validity of the call
parameters. If a fault is determined, access is not executed and an
error code is output.
The following return values are possible:
Table 13: Overview of return values
Figure: 58: ReadBitDirect function
EC_UTIL.Lib EC4-200-I/O
I1 …
I12
Digital
I7, I8, I11,
I12
Analog
Q1 …
Q8
Digital
QA1
Analog
ReadBitDirect Bit 0-11
ReadByteDirect Byte 0+1
ReadWordDirect Offset 2,4,6,8
WriteBitDirect Bit 0-7
WriteByteDirect Byte 0
WriteWord Direct
Offset 2
EC_UTIl2.Lib
High-speed counters
Function block
16-bit 32 Bit Incremental
Acc16BitCounterDirect Offset
0+1
Acc32BitCounterDirect OK
AccIncremental InputDirect OK
Figure: 59: Return values of the EC-UTIL.Lib functions
IO_ACCESS_INVALID_SLOTNUMBER
IO_ACCESS_INVALID_OFFSET
IO_ACCESS_DENIED
IO_ACCESS_NO_MODUL
IO_ACCESS_ INVALID _BUFFER
READBITDIRECT x x x x
READBYTEDIRECT
x x x x
READWORDDIRECT
x x x x
WRITEBITDIRECT x x x
WRITEBYTEDIRECT x x x
WRITEWORDDIRECT x x x
ACCESS16BITCOUNTERDIRECT x x
ACCESS32BITCOUNTERDIRECT x
ACCESSINCREMENTALINPUTDIRECT x