GE EP-5261 User Manual page 16

Serial communication module
Table of Contents

Advertisement

16
GFK-2992B
FB_RSTi_EP-5261 Input Variables
Variable
Type
xEnableRecv
BOOL
xEnableSend
BOOL
xQuit
BOOL
xClr_Buf_Rx
BOOL
xClr_Buf_Tx
BOOL
xDisableTxHWBuffer
BOOL
uiMaxRecvData
UINT
uiMaxSendData
UINT
InputOfModule
ARRAY [0..7] OF INT
OutputOfModule
ARRAY [0..7] OF INT
RxDataBuffer
ARRAY OF BYTE
TxDataBuffer
ARRAY OF BYTE
FB_RSTi_EP-5261 Output Variables
Variable
Type
xBusyRecv
BOOL
xRecvDone
BOOL
uiRecvDataCnt
UINT
xBusySend
BOOL
xSendDone
BOOL
uiSendDataCnt
UINT
xRxHWBufNotEmpty
BOOL
xErrorFlag
BOOL
wRetVal
WORD
Possible Output
RetVal
Variable
16#0000
16#0001
Warnings
16#0002
16#0003
16#8000
16#8008
16#8010
16#8020
16#8040
Errors
16#8080
16#80C0
16#8101
16#8201
Description
Enables receive data: 0 = Receive disabled, 1 = Receive enabled
Enables send data: 0 = Send disabled, 1 = Send enabled
Acknowledgement of errors
Flushes receive buffer : 0 to 1 and Quit = 1
Flushes the send buffer : 0 to 1 and Quit = 1
Disables the hardware (HW) transmit buffer: 0 = released , 1 = disabled
Maximum number of the data byte to be received within one telegram. Can be
changed before a new job according to the expected telegram length.
Note: Must be > 0. If not, data will not be received.
Maximum number of the data byte to be transmitted within one telegram. Can be
changed before a new job according to the expected telegram length.
Note: Must be > 0. If not, data will not be transmitted.
Process input data of the module . Data type is INT.
Process input data of the module. Data type is INT.
Address of the buffer that receives data within the PLC. Array of n elements of
data type BYTE. Currently fixed to 400 bytes.
Address of the buffer that transmits data within the PLC. Array of n elements of
data type BYTE. Currently fixed to 400 bytes.
Description
Displays an active data reception
Displays finished data reception. Remains TRUE until xEnableRecv is TRUE.
Counter for the received data bytes
Displays active data transmission
Displays finished data transmission. Remains TRUE until xEnableSend is TRUE.
Counter for transmitted data bytes
Indicates that the hardware receive buffer is not empty
Displays a general error. Can be reset by acknowledging the variable xQuit.
Return Value: value is > 8000h to error
Description
No error
Receive buffer not empty
Handshake (CTS or XOFF) ON
Receive buffer not empty and handshake (CTS or XOFF) ON
Module not ready for communication. Check the address of variable InputOfMdule.
Indicates a parameter fault. Check the parameter choice in the PLC configuration.
Indicates a hardware fault. Replace the hardware.
Indicates fault data flow control. Check the parameter in the PLC configuration.
Indicates frame fault. Check the parameter choise in the PLC configuration.
Indicates (receive)buffer overflow of EP-5261 module. Check the communication.
Indicates (receive)buffer overflow and frame fault of EP-5261 module. Check the
communication.
Size of receive buffer is > maximum number of received bytes ==> FB abort.
Size of send buffer is > maximum number of bytes to be sent ==> FB abort.
For public disclosure
RSTi-EP Slice I/O Serial Communication Module

Hide quick links:

Advertisement

Table of Contents
loading

Subscribe to Our Youtube Channel

Table of Contents