EasyManua.ls Logo

GE EP-5261 - FB_MBM_RTU_Master Outputs and Errors; Output Variables; Error Code Reference

GE EP-5261
21 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
20 RSTi-EP Slice I/O Serial Communication Module
GFK-2992B
FB_MBM_RTU_Master Output Variables
Variable
Type
Description
xMBMasterFirstCycle
BOOL
Flag first cycle: set to a value of 1 after the first cycle
xComPortActiv
BOOL
Status of COMport, MODBUS is activated
xMODtransActive
BOOL
MODBUS transmission is active
xMODtransOk
BOOL
MODBUS request is answered OK
usiMODslaveAdrDone
BYTE
Last addressed MODBUS slave
usiMODfcDone
BYTE
Last Function Code
uiMODdatOffDone
WORD
Last offset addr. of MODBUS register
uiMODdatNrDone
WORD
Last number of MODBUS register
usiMODfailCode
BYTE
MODBUS fail code
xEnableRx
BOOL
Responding Bit of FB_RSTI_EP_5261: Start/Enable Receive
xEnableTx
BOOL
Responding Bit of FB_RSTI_EP_5261: Start/Enable Send
xQuitt
BOOL
Responding Bit of FB_RSTI_EP_5261: Error acknowledge
TXBUF_FLUSH
BOOL
Responding Bit of FB_RSTI_EP_5261 flush the transmit buffer of RST- EP-5261
RXBUF_FLUSH
BOOL
Responding Bit of FB_RSTI_EP_5261: flush the receive buffer of RSTi EP-5261
TXBUF_DISABLE
BOOL
Responding Bit of FB_RSTI_EP_5261: Disable Tx hard buffer
RX_BYTECNT
WORD
Responding CNT of FB_RSTI_EP_5261: Byte counter of received bytes of RSTi EP-
5261
TX_BYTECNT
WORD
Responding CNT of FB_RSTI_EP_5261: Byte counter of transmitted bytes of RSTi
EP-5261
Possible Output
Variable
usiMODfailCode Description
Error code
0
No error
1
MODBUS: Illegal Function Code
2
MODBUS: Error Data address
3
MODBUS: Error Data value
4
MODBUS: Error telegram length
10
Parameter error of the function block
11
COMport open/initializing failed
12
MODBUS: CRC Error
13
MODBUS: Time out
14
MODBUS: Error slave address
15
MODBUS: Slave indicates incorect Function Code
16
MODBUS: Slave indicates incorrect number or address of register
Note: FB_MBM_RTU_Master uses and calls the auxiliary function block ModbusMaster_CoilMax (included in the library).
For public disclosure