GE EP-5261 User Manual page 20

Serial communication module
Table of Contents

Advertisement

20
GFK-2992B
FB_MBM_RTU_Master Output Variables
Variable
xMBMasterFirstCycle
xComPortActiv
xMODtransActive
xMODtransOk
usiMODslaveAdrDone
usiMODfcDone
uiMODdatOffDone
uiMODdatNrDone
usiMODfailCode
xEnableRx
xEnableTx
xQuitt
TXBUF_FLUSH
RXBUF_FLUSH
TXBUF_DISABLE
RX_BYTECNT
TX_BYTECNT
Possible Output
Variable
Error code
Note: FB_MBM_RTU_Master uses and calls the auxiliary function block ModbusMaster_CoilMax (included in the library).
Type
Description
BOOL
Flag first cycle: set to a value of 1 after the first cycle
BOOL
Status of COMport, MODBUS is activated
BOOL
MODBUS transmission is active
BOOL
MODBUS request is answered OK
BYTE
Last addressed MODBUS slave
BYTE
Last Function Code
WORD
Last offset addr. of MODBUS register
WORD
Last number of MODBUS register
BYTE
MODBUS fail code
BOOL
Responding Bit of FB_RSTI_EP_5261: Start/Enable Receive
BOOL
Responding Bit of FB_RSTI_EP_5261: Start/Enable Send
BOOL
Responding Bit of FB_RSTI_EP_5261: Error acknowledge
BOOL
Responding Bit of FB_RSTI_EP_5261 flush the transmit buffer of RST- EP-5261
BOOL
Responding Bit of FB_RSTI_EP_5261: flush the receive buffer of RSTi EP-5261
BOOL
Responding Bit of FB_RSTI_EP_5261: Disable Tx hard buffer
WORD
Responding CNT of FB_RSTI_EP_5261: Byte counter of received bytes of RSTi EP-
5261
WORD
Responding CNT of FB_RSTI_EP_5261: Byte counter of transmitted bytes of RSTi
EP-5261
usiMODfailCode
Description
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
RSTi-EP Slice I/O Serial Communication Module
For public disclosure

Hide quick links:

Advertisement

Table of Contents
loading

Subscribe to Our Youtube Channel

Table of Contents