VAR CONSTANT
c_wMaxTelegram : INT :=
15
;
END_VAR
VAR
ipAddress : NBS.IPv4Address;
fbTcpConnection : NBS.TCP_Connection;
fbTcpServer : NBS.TCP_Server;
fbTcpRead : NBS.TCP_Read;
fbTcpWrite : NBS.TCP_Write;
abyRx : ARRAY [
0
..gvlSetting.gc_wMaxTelegram] OF BYTE;
abyTx : ARRAY [
0
..gvlSetting.gc_wMaxTelegram] OF BYTE;
iIndex : INT;
xRead : BOOL := TRUE;
xWrite : BOOL := TRUE;
xAckTelegram : BOOL;
xBlockAck : BOOL;
udiRead : DINT;
END_VAR
IF fbTcpRead.xReady THEN
IF (fbTcpRead.udiCount = (gvlSetting.gc_wMaxTelegram +
1
)) THEN
IF ((abyRx[
0
] =
87
) AND (abyRx[
1
] =
68
) AND (abyRx[
2
] =
58
) AND (abyRx[
3
] =
32
)) THEN
FOR iIndex :=
0
TO c_wMaxTelegram DO
abyTx[iIndex] :=
0
;
END_FOR
abyTx[
0
] :=
65
;
abyTx[
1
] :=
67
;
abyTx[
2
] :=
75
;
abyTx[
3
] :=
58
;
abyTx[
4
] :=
0" class="post-container bg-white pb-3" style="min-height:360px;">
{{item.nickname}}
{{key+1}}楼{{item.content}}
{{item2.nickname}}
{{item2.content}}