使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


Unable to Read Data from Toyopuc PLC After Losing Connection


Last Update: 2018/11/12

The TCP window size can affect how the Toyopuc PLC (receiver) behaves. For example, some machines have a default TCP window size of 65535, and these machines may be unable to or have a hard time communicating with the Toyopuc device. One machine that was tested had a default window size of 16384 and could communicate with the Toyopuc device. These window sizes were determined through Wireshark, and no explicit registry settings could be found linking to them.

From this research, the TCP window size and the TCP buffer size are usually a multiple of the MSS. Toyopuc's MSS, as determined through Wireshark, is 1024 TCP buffer space: 31744/1024 = 31; TCP window size: 4096/1024 = 4. If the PC's TCP window size is greater than Toyopuc's TCP window size, there a potential for the buffers to run over. The communications problems encountered could be the Toyopuc's way of handling this potential.

Users can change the TCP window size by adding a registry entry as follows: "TcpWindowSize". Registry DWORD is not defined by default. Users must create it manually in one of two registry locations:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<interface>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
Users should set the TCP window size to 16384 and see if that resolves the problem. If it does not, try 8192 and then 4096 as a last resort.