beckhoff TS6250 — 7.1.9 FB_MBReadWriteRegs (Modbus function 23)

PLC libraries After a rising edge of "bExecute" and successful execution of the ReadRegs command, the content of the arrData array is written to registers 5-7. Requirements 7.1.9 FB_MBReadWriteRegs (Modbus function 23) This function first reads 1 to 128 output registers (16 bit) and then writes 1 to 128 output registers (16 bit). VAR_INPUT VAR_INPUT sIPAddr : STRING(15); nTCPPort : UINT:= MODBUS_TCP_PORT; nUnitID : BYTE:=16#FF; nReadQuantity : WORD; nMBReadAddr : WORD; nWriteQuantity : WORD; nMBWriteAddr : WORD; cbDestLength : UDINT; pDestAddr : UDINT; cbSrcLength : UDINT; pSrcAddr : UDINT; bExecute : BOOL; tTimeout : TIME; END_VAR sIPAddr :

Is a string containing the IP address of the target device. TS6250 33 Version: 1.2 Development environment Target system type PLC libraries to be linked TwinCAT v2.8.0 PC (i386) TcModbusSrv.Lib