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