IBM CTI 2572 manual PLC Command Interface, Non Intelligent Terminal Protocol

Page 39

CHAPTER 6. PLC COMMAND INTERFACE

6.1 Non Intelligent Terminal Protocol

As discussed in previous sections of this manual, application programs communicate with the PLC by sending messages to the 2572 encapsulated in the TCP/IP protocol. The most common message format used by SIMATIC TI505 series PLCs is the Non Intelligent Terminal Protocol. Originally developed for programming units and simple ASCII terminals, NITP is widely used by most products that access the programming port of the PLC, including PCs running TISOFT.

NITP messages use 7 bit ASCII character format with odd parity. Data is represented in ASCII hexadecimal format, where a byte is represented as two characters. Although this is less efficient than a straight binary protocol, use of ASCII Hex frees the programmer from having to understand how data is physically represented in the PLC. Using NITP protocol, up to 15 words can be transferred between the external device and the PLC in one message. The beginning delimiter is a colon (ASCII 3A) and the ending delimiter is a semicolon (ASCII 3B). The format of the NITP message is shown below:

Note that the message body contains a command (CMD) and up to 15 words (W1-W15). The

1 Byte

Beginning Delimiter

1 Byte

Character Count

72 Bytes Maximum

64 Bytes Maximum

4 bytes

 

2 bytes

Message Body

ECC

 

Message

 

Terminator

 

 

 

 

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W

W

W

W

W

W

W

W

W

W

W

W

W

W

M

1

2

3

4

5

6

7

8

9

10

11

13

14

15

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 15 NITP Message Format

command is an instruction to the PLC (such as Read V Memory). The words may represent addresses or actual data (depending upon the command and whether this is a request or a response).

CTI 2572 Technical Overview Manual

29

Image 39
Contents Ethernet TCP/IP Adapter Module Technical Overview Page Document Disclaimer Statement Page Preface Page Table of Contents Page 802.3 Frame w/ Snap Header 10Base5 Thick Coax TopologyPage Description IntroductionSerial Redirect Server ModeClient Mode 2572 FunctionsMaster/Slave vs. Local Area Networks Local Area Network OverviewToken Ring Topology Ieee 802.5 Token-RingEthernet Topology Coax Ethernet and IeeeFuture Technologies Ieee 802.4 Token BusSummary Page ISO Reference Model Ethernet OverviewEthernet Topologies and Media Physical Layer 10BaseT Unshielded Twisted Pair UTP Bridges Foirl Fiber OpticMixed Media Ethernet Protocol Data Link LayerEthernet Version 2 and Ieee 802.3 Packet Ethernet Version 2 standard defines the packet as follows Requirement for Higher Level Protocols Ethernet AddressesPage Network Protocols Connectionless vs. Connection Oriented ProtocolsConnectionless Protocols Common LAN Protocols Connection-Oriented ProtocolsIPX/SPX Page TCP/IP Components TCP/IP OverviewIP Address Internet ProtocolSubnet Address Mask Address Resolution Protocol ARP Internet Control Message Protocol IcmpUser Datagram Protocol UDP Connection-Oriented Communications That other network nodes can accessTransmission Control Protocol TCP Stream OrientationTCP Segment Reliable Data Transfer2572 TCP/IP Support Berkeley SocketsPage Non Intelligent Terminal Protocol PLC Command InterfaceTask Codes