Global Variables
VAR_GLOBAL CONSTANT
VAR_GLOBAL CONSTANT
AMSPORT_TCPIPSRV :UINT := 10201;
TCPADS_IGR_CONLIST :UDINT :=16#80000001;
TCPADS_IGR_CLOSEBYHDL :UDINT :=16#80000002;
TCPADS_IGR_SENDBYHDL :UDINT :=16#80000003;
TCPADS_IGR_PEERBYHDL :UDINT :=16#80000004;
TCPADS_IGR_RECVBYHDL :UDINT :=16#80000005;
TCPADS_IGR_RECVFROMBYHDL :UDINT :=16#80000006;(* TCP/IP Connection Server v1,0,0,31 and higher *)
TCPADS_IGR_SENDTOBYHDL :UDINT :=16#80000007;(* TCP/IP Connection Server v1,0,0,31 and higher *)
TCPADSCONLST_IOF_CONNECT :UDINT :=1;
TCPADSCONLST_IOF_LISTEN :UDINT :=2;
TCPADSCONLST_IOF_CLOSEALL :UDINT :=3;
TCPADSCONLST_IOF_ACCEPT :UDINT :=4;
TCPADSCONLST_IOF_UDPBIND :UDINT :=5;(* TCP/IP Connection Server v1,0,0,31 and higher *)
TCPADS_MAXUDP_BUFFSIZE : UDINT :=1472;(* TCP/IP Connection Server v1,0,0,31 and higher *)
END_VAR
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT version 2.8.0 or higher | PC or CX (x86) | TcpIp.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |