GE EP-5261 User Manual page 19

Serial communication module
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents