FC_ComIecRead - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.32.6.0 |
Versions: |
Current version |
Read the characters from the logical device.
This function reads characters from the logical device named FC_ComIecId. A maximum of i_diMaxSize characters can be read. When calling, transfer the address of the IEC variable to i_diBuffer . The read in characters are stored in this buffer. The function returns the currently available characters from the input buffer of the driver. It does not wait for characters. The number of characters read is returned as a function value.
NOTE: Note for "RS 485 2-wire" that the hardware has to switch (TriState) between transmitting and receiving. Therefore, a waiting period of at least 5 ms is necessary between sending (FC_ComIecWrite()) and receiving (FC_ComIecRead()).
Input |
Data type |
Description |
---|---|---|
i_stComIecId |
ST_LogicalAddress |
Device selection |
i_diBuffer |
DINT |
Buffer address |
i_diMaxSize |
DINT |
Maximum number of characters that have to be read |
Data type |
Description |
---|---|
DINT |
0 ... : Number of bytes read -1: i_stComIecId invalid -2: other error detected. Contact your Schneider Electric contact person. |