background image

16

 

RSTi-EP Slice I/O Serial Communication Module

 

GFK-2992B 

FB_RSTi_EP-5261 Input Variables 

Variable 

Type 

Description 

xEnableRecv 

BOOL 

Enables receive data: 0 = Receive disabled, 1 = Receive enabled 

xEnableSend 

BOOL 

Enables send data: 0 = Send disabled, 1 = Send enabled 

xQuit 

BOOL 

Acknowledgement of errors 

xClr_Buf_Rx 

BOOL 

Flushes receive buffer : 0 to 1 and Quit = 1 

xClr_Buf_Tx 

BOOL 

Flushes the send buffer : 0 to 1 and Quit = 1 

xDisableTxHWBuffer 

BOOL 

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 

Variable 

Type 

Description 

xBusyRecv 

BOOL 

Displays an active data reception 

xRecvDone 

BOOL 

Displays  finished data reception.  Remains TRUE until 

xEnableRecv

 is TRUE. 

uiRecvDataCnt 

UINT 

Counter for the received data bytes 

xBusySend 

BOOL 

Displays active data transmission 

xSendDone 

BOOL 

Displays finished data transmission. Remains TRUE until 

xEnableSend

 is TRUE. 

uiSendDataCnt 

UINT 

Counter for transmitted data bytes 

xRxHWBufNotEmpty 

BOOL 

Indicates that the hardware receive buffer is not empty 

xErrorFlag 

BOOL 

Displays a general error. Can be reset by acknowledging the variable 

xQuit

wRetVal 

WORD 

Return Value: value  is > 8000h to error 

 

 

 

Possible Output 

Variable 

RetVal

 

Description 

Warnings 

16#0000 

No error 

16#0001 

Receive buffer not empty 

16#0002 

Handshake (CTS or XOFF) ON 

16#0003 

Receive buffer not empty and handshake (CTS or XOFF) ON 

Errors 

16#8000 

Module not ready for communication. Check the address of variable 

InputOfMdule

16#8008 

Indicates a parameter fault. Check the parameter choice in the PLC configuration. 

16#8010 

Indicates a hardware fault. Replace the hardware. 

16#8020 

Indicates fault data flow control. Check the parameter in the PLC configuration. 

16#8040 

Indicates frame fault. Check the parameter choise in the PLC configuration. 

16#8080 

 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. 

16#8101 

Size of receive buffer is > maximum number of received bytes ==> FB abort. 

16#8201 

Size of send buffer is > maximum number of bytes to be sent ==> FB abort. 

 

 

 

For public disclosure 

 

Summary of Contents for EP-5261

Page 1: ...ical specifications and a block diagram Additionally a QR code allows for direct online access to the associated documentation The software for reading the QR code must support inverted QR codes Markers are available as accessories for labelling the equipment Each I O module can be labelled to ensure clear identification when replacing individual modules or electronic units The RSTi EP station is ...

Page 2: ...ly output 500 mA max Standards RS232 DIN 66020 DIN 66259 EIA RS232C CCITT V 24 V 28 Standards RS485 RS422 DIN 66259 part 1 and 3 EIA RS422 485 CCITT V 11 Terminating resistor RS485 RS422 120 Ω parameterisable Short circuit proof Yes Module diagnosis Yes Individual channel diagnosis Yes Supply Supply voltage 20 4 V 28 8 V Current consumption from system current path ISYS 8 mA Current consumption fr...

Page 3: ...included when calculating the power supply LEDs LED EP 5261 Status Module Status Green Communication over the system bus Red Collective error diagnostic 1 1 Yellow RS 232 parameterised Yellow flashing Data is being received 1 2 Yellow RS 232 parameterised Yellow flashing Data is being transmitted 1 3 1 4 2 1 2 2 2 3 2 4 3 1 3 1 3 4 Yellow RS 422 parameterised 3 1 3 2 Off 3 3 3 4 Yellow RS 485 para...

Page 4: ...4800 4 9600 5 14400 6 19200 7 28800 8 38400 9 57600 10 115200 11 9600 Stop bit 1 Bit 0 2 Bit 1 1 Bit Parity None 0 Even 1 Odd 2 None Flow control None 0 CTS RTS 1 XON XOFF 2 None XON character 0 255 17 XOFF character 0 255 19 Terminating resistor RS 485 422 Off 0 On 1 Off Process data length 16 Byte 1 16 Byte 1 Values in brackets for EtherCAT and Modbus TCP 2 Option 7 Bit works only in combination...

Page 5: ...pe 0x05 1 1 0 2 1 3 0 4 Reserved 0 5 Reserved 0 6 Reserved 0 7 Reserved 0 Error byte 2 2 0 7 Reserved 0 Error byte 3 3 0 2 Reserved 0 3 Internal diagnostic FIFO full 0 4 7 Reserved 0 Channel type 4 0 Channel type 0x79 1 1 0 2 0 3 1 4 1 5 1 6 1 7 0 Diagnostic bits per channel 5 Number of diagnostic bit per channel 0 Number of channels 6 Number of similar channels per module 1 Channel error 7 10 0 3...

Page 6: ... then will the next data will be transferred Process Input Data Byte Format Name Bit Description Notes IB0 Word Status and Diagnosis IX0 0 Data in the receive memory RX 0 Receive memory is empty RX 1 A telegram or telegram segment in the receive memory is ready for transmission IX0 1 Receive memory nearly full Only 10 characters are left in the receive memory XOFF will be set if parametrerised IX0...

Page 7: ...X0 3 TX_CNT The TX_CNT value is assigned to each data segment of the process output data The sequence or the TX_CNT values is Binary 00 01 10 11 00 Decimal 0 1 2 3 0 A faulty data sequence indicates missing data segments IX0 4 TX_CNT IX0 5 RX_CNT_ACK RX_CNT_ACK must include a copy of the RX_CNT value The RX_CNT value has been transferred together with the last data segment of the process input dat...

Page 8: ...input data into the output data of the module so the received data will be sent again Or select one of the function blocks provided by your engineering tool For programming refer to the following schemes showing the sequences for receiving and transmission SPS application error Segment sequence error Scheme of the Receiving Sequence Scheme of the Transmission Sequence For public disclosure ...

Page 9: ...RX_CNT STATRES RX_CNT_ACK TX_CNT Init Startup 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 After powerup module is ready for communi cation Activate communi cation 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 PLC is ready for communi cation response Receive data 1 0 0 0 1 0 0 0 N 1 14 1 0 0 0 0 0 0 0 0 Module has received bytes 1 0 0 0 1 0 0 0 N 1 0 1 0 0 0 0 0 0 RX acknow ledge after data taken over Send data 1 0 ...

Page 10: ...a screwdriver and released to latch the wire Connector Block with Four Wire Connectors Connector Specifications Conductor cross section 0 14 to 1 5 mm 26 16 guage 10 A max amperes 4 pole The modules do not have a fused sensor activator power supply All cables to the connected sensors actuators must be fused corresponding to their conductor cross sections as per Standard DIN EN 60204 1 section 12 C...

Page 11: ...und singal GND COM The remaining free wires should be connected to ground Refer to the RSTi EP Slice I O User Manual GFK 2958 for additional information Technical assistance is available at http support ge ip com Installation in Hazardous Areas EQUIPMENT LABELED WITH REFERENCE TO CLASS I GROUPS A B C D DIV 2 HAZARDOUS AREAS IS SUITABLE FOR USE IN CLASS I DIVISION 2 GROUPS A B C D OR NON HAZARDOUS ...

Page 12: ...12 RSTi EP Slice I O Serial Communication Module GFK 2992B Connection Diagrams EP 5261 Module Connections For public disclosure ...

Page 13: ...Serial Communication Module 13 GFK 2992B Connection Block Diagrams RS232 RXD RS232 TXD RS232 RTS RS232 CTS RS485 422 RXD RS485 422 RXD RS422 TXD RS422 TXD 5 V GND 24 V GND COM EP 5261 Block Diagram For public disclosure ...

Page 14: ...serial bus The response is received by FB_RSTI_EP_5261 and passed as input to the RTU master to parse the response and update the data to internal controller memory The function block ModbusMaster_CoilMax is internally used by the RTU master function block Note Refer to the respective function block section in this document for more information on input and output parameters of the serial and RTU ...

Page 15: ...valuated this block can be chosen regardless of the type of interface used To enable data transmission using FB_RSTI_EP_5261 a User Defined Type Ser_Data must be imported Additionally each array must to be limited to 400 bytes To use the variables an instance of this UDT must be built The FB_RSTI_EP_5261 block retrieves the process input data such as InputOfModule AI0001 and stores it on the data ...

Page 16: ...utput Variables Variable Type Description xBusyRecv BOOL Displays an active data reception xRecvDone BOOL Displays finished data reception Remains TRUE until xEnableRecv is TRUE uiRecvDataCnt UINT Counter for the received data bytes xBusySend BOOL Displays active data transmission xSendDone BOOL Displays finished data transmission Remains TRUE until xEnableSend is TRUE uiSendDataCnt UINT Counter f...

Page 17: ...on block FB_MBM_RTU_Master is a MODBUS RTU Master block used in combination with the Serial Communication Interface module RTSi EP 5261 and the function block FB_RSTI_EP_5261 Using this block a maximum of 120 registers 1024 coils per job per message can be exchanged Modbus RTU Master Function Block FB_MBM_RTU_Master For public disclosure ...

Page 18: ...ave Coil value in index 1 FC 6 Holding register target offset in slave Register value in index 1 FC 8 Test value in index 1 FC 15 Coil target offset in slave Number of coils to be sent Coil source buffer in master FC 16 Holding register target offset in slave Number of registers to be sent Holding register source buffer in master Buffers warMODRegister and xarMODCoil are always Read or Written by ...

Page 19: ...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_E...

Page 20: ...ding 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 ...

Page 21: ... 01 00 Aug 2016 Initial release FB_MBM_RTU_Master Important Product Information for this Release Updates None Funcional Compatibility N A Problems Resolved by this Release None New Features and Enhancements None Known Restrictions and Open Issues None Operational Notes None Product Documentation RSTi EP Slice I O Module User Manual GFK 2958 RSTi EP Slice I O Functional Safety Module User Manual GF...

Reviews: