Date: Fri, 29 Mar 2024 00:08:38 +0000 (UTC) Message-ID: <1299054345.125.1711670918008@6bf000190eb4> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_124_989475842.1711670918007" ------=_Part_124_989475842.1711670918007 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The Modbus slave from the FAQ Modbus Communikation Master/Slave via Ethernet is us= ed here.
Insert an Ethernet adapter in the devi=
ce tree and specify the interface to be used.
If a target system is not defined yet, then the error messag= e "Gateway not configured" is displayed.
Insert a Modbus TCP Master below t= he Ethernet adapter in the device tree.
Insert a Modbus TCP Slave=
below the Modbus TCP Master in the device tree.
Insert it in the
=
Adapt the POU PLC_PRG=
as follows:
Declaration<= /span>
VAR xExec : BOOL; wMasterSend : WORD :=3D 100; mbChannel : ModbusChannel; END_VAR
Implementati= on
mbChann= el(slave :=3D Modbus_TCP_Slave, xExecute :=3D xExec);
Please note, that under the ModbusTCPSlave I/O Mapping tab, the 'Always u=
pdate variables' is set to 'Enabled 1'=
em> :
See also our OLH for Basic settings with Fieldbus Devices =
and I/O Drivers.