Operation
10/10 MN05003003Z-EN
54
Function call: ReadBitDirect(uiSlot, uiBit, ptr_xValue)
The following tables show the access options available:
Table 10: Functions for accessing the I/Os
Table 11: FBs for the high-speed counters
Error code for “direct I/O access”
Verify all functions as far as possible for the validity of the call
parameters. If a fault is determined, access is not undertaken and
an error code is output.
The following return values are possible:
Table 12: Overview of return values
Figure 59: 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 60: 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
Summary of Contents for easyControl EC4-200
Page 4: ...II...
Page 10: ...10 10 MN05003003Z EN 6...
Page 14: ...10 10 MN05003003Z EN 10...
Page 22: ...10 10 MN05003003Z EN 18...
Page 38: ...10 10 MN05003003Z EN 34...
Page 62: ...10 10 MN05003003Z EN 58...
Page 78: ...10 10 MN05003003Z EN 74...
Page 96: ...10 10 MN05003003Z EN 92...