3 API
functions
12
A configuration parameter of an I/O module is treated as an SDO in the IPC and is
transferred to the BPB controller via the FIFOs in the form of a structure, which
contains the data in a format suitable for DS 401. Access of the IPC to the BPB
controller is effected in 2 possible ways:
IPC
BPB controller
Writing:
Write
request
Status
message
Reading:
Read request
Response
3.4.2
SDO functions
BpbReadSdo function
Parameter
[in] HANDLE
hOpen
Pointer to open context (handle) for identification
[out] PUCHAR
pReadBuffer
SDO memory area
[in] WORD
usBufferSize
Size of the memory area
[out] PWORD
pusActualSdoSize
Size of the memory area assigned
Return values
S_OK Successful
E_HANDLE
Incorrect (handle is invalid)
E_MEMORY
Incorrect (BPB message memory area overflown)
BpbWriteSdo function
Parameter
[in] HANDLE
hOpen
Pointer to open context (handle) for identification
[in] PUCHAR
pWriteBuffer
SDO memory area
[in] USHORT
usBufferSize
Size of the memory area
[in] USHORT
usSdoCount
Number of SDOs
[out] PUSHORT pusSdoWritten
Number of SDOs written
Return values
S_OK Successful
E_HANDLE
Incorrect (handle is invalid)
E_FIFO
Incorrect (output buffer has overflown)
Содержание L-Force 3241C
Страница 2: ......
Страница 4: ...Contents 2...
Страница 24: ...3 API functions 22 INPUTS OUTPUT Abb 7 Memory image of inputs and outputs in the address area...