6/23/2022 2:37 PM | |
Joined: 4/4/2022 Last visit: 5/17/2024 Posts: 5 Rating: (0) |
|
6/24/2022 8:11 AM | |
Joined: 4/4/2022 Last visit: 5/17/2024 Posts: 5 Rating: (0) |
In the attachment you can see the whole block, the connections parameters etc. It`s a standard proved block from the Siemens library "109747710_LOpenUserComm_V16". The done bit is only used for sending, I have checked the busy bit and at the moment that rises ndr busy is false. The value 0 is recommended in the documentation, anyway the receive area is limited by the referenced receive area at rcvData as you can see in the picture. The connection is passive and stable, I've tried to send by other clients the same data on another TCP-connection and occurs the same, always at byte 1460 in the receive area (even in the instance) stops receving. Here is the only part i've changed where min = 0 and max = 9110: // adhoc mode is activated IF #adhocMode = TRUE THEN IF #statLenDetected = FALSE THEN "FC_convert_4ASCII_DEC"(IN_Char_1000 := #statDataBufferRcv[6], IN_Char_100 := #statDataBufferRcv[7], IN_Char_10 := #statDataBufferRcv[8], IN_Char_1 := #statDataBufferRcv[9], OUT => #stat_rcv_Len_AS400); IF (UINT_TO_UDINT(#stat_rcv_Len_AS400) > #CONST_MIN_RCVD_DATA_LEN) AND (UINT_TO_UDINT(#stat_rcv_Len_AS400) <= #CONST_MAX_RCVD_DATA_LEN) THEN #statRcvdLen := (UINT_TO_UDINT(#stat_rcv_Len_AS400)); #statLenDetected := true; #tempRetVal := MOVE_BLK_VARIANT(SRC := #statDataBufferRcv, COUNT := #statRcvdLen, SRC_INDEX := #CONST_DINT_0, DEST_INDEX := #CONST_DINT_0, DEST => #rcvData); I hope someone has a solution. By the way, the PLC (1518-4) is updated to firmware 2.9.4 Thanks in advance. AttachmentTCP_Conn_V16.zip (413 Downloads) |
Last edited by: Dennis Dutchman at: 06/27/2022 08:27:36 |
|
Follow us on