16 RSTi-EP Slice I/O Serial Communication Module
GFK-2992B
FB_RSTi_EP-5261 Input Variables
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
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
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
RetVal
Description
Warnings
Handshake (CTS or XOFF) ON
Receive buffer not empty and handshake (CTS or XOFF) ON
Errors
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.
16#80C0
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