EasyManua.ls Logo

GE EP-5261 - FB_MBM_RTU_Master Variables; Input Variables; Input;Output Variables

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...
RSTi-EP Slice I/O Serial Communication Module 19
GFK-2992B
Supported Function Codes
Function
Code
Description Output
1
Read multiple coil status
Reading of bit variables (Coils)
2
Read multiple input status
Reading of bit variables (Inputs)
3
Read multiple holding registers
Reading of word variables (Register)
4
Read multiple input registers
Reading of word variables (Inputs)
5
Force single coil
Writing of a bit variable
6
Force single register
Writing of a word variable
8
Loop back diagnostic test (00: return query data)
Connection test
15
Force multiple coils
Writing multiple bit variables (Coils)
16
Force multiple registers
Writing multiple word variables (Register)
FB_MBM_RTU_Master Input Variables
Variable
Type
Description
xEnable BOOL
Enable COM port for MODBUS communication and reset/initiate the module EP-
5261 while toggle the flag.
usiMODSlaveAdr
BYTE
Address of MODBUS Slave. Default = 0.
usiMODfc BYTE
Function codes
1, 2, 3, 4, 5, 6, 8, 15, 16 are supported, depending of the MODBUS slave
uiMODdatOff
WORD
Offset address (begin) of MODBUS register that will be accessed
uiMODdatNr
WORD
Number of MODBUS register of the access
tMODtimeOut
TIME
Timeout for MODBUS slave answer. Default = 10s, value in second.
xMODfcStrobe
BOOL
Start of a MODBUS request 0 to 1
xRxBusy
BOOL
Responding bit of FB_RSTI_EP_5261: Receive action is active
xRxDone
BOOL
Responding bit of FB_RSTI_EP_5261: Receive action is done
uiRxByteNo
WORD
Responding CNT of FB_RSTI_EP_5261: Received byte count
xTxBusy
BOOL
Responding bit of FB_RSTI_EP_5261: Send action is active
xTxDone
BOOL
Responding bit of FB_RSTI_EP_5261: Send action is done
uiTxByteNo
WORD
Responding CNT of FB_RSTI_EP_5261: Send byte count
xRxBufferNotEmpty
BOOL
Responding bit of FB_RSTI_EP_5261: RxHWBuffer not empty
wRetVal
WORD
Responding state of FB_RSTI_EP_5261 RetVal of FB_RSTI_EP_5261
FB_MBM_RTU_Master Input/Output Variables
Variable
Type
Description
warMODRegister
Array 0..120 of
WORD
MODBUS data: Buffer for receive or send register, such as
MBM_Data01.arwMB_Register.
xarMODCoil
Array 0..1023 of
BOOL
MODBUS data: Buffer for receive or send BOOL(coil) variables, such as
MBM_Data01.arxMB_Coil.
bInputbuffer
Array 0..270 of
BYTE
Responding data base of FB_RSTI_EP_5261: Address of the buffer for
receives data within the PLC. Array of 400 elements of data type BYTE,
such as myUDT01.arbRecvData.
bOutputbuffer
Array 0..270 of
BYTE
Responding data base of FB_RSTI_EP_5261: Address of the buffer for the
transmit data within the PLC. Array of 400 elements of data type BYTE,
such as myUDT01.arbSendData.
For public disclosure