July 2013 17
9.14 Program Structures ......................................................................1842
9.14.1 IF ... ELSE ... ENDI structure...........................................1843
9.14.2 REPEAT ... UNTIL structure ............................................1843
9.14.3 WHILE ... ENDW structure..............................................1844
9.14.4 CASE branch ...................................................................1844
9.15 Linking Files...................................................................................1846
9.15.1 USES Statement (USES) .................................................1847
9.15.2 GLOBAL statement (GLOBAL)........................................1848
9.15.3 EXTERN Statement (EXTERN) ........................................1848
9.16 PLC Modules..................................................................................1849
9.16.1 Markers, bytes, words, and double words......................1849
9.16.2 Number conversion.........................................................1852
9.17 Python............................................................................................1856
10 Data Interfaces......................................1857
10.1 Introduction...................................................................................1857
10.1.1 Principles of data transfer................................................1858
10.1.2 Data transfer check: Handshaking...................................1862
10.2 The Ethernet Interface of the iTNC..............................................1863
10.3 Connecting the iTNC to the Network .........................................1864
10.3.1 Settings at the iTNC ........................................................1864
10.4 Protection Against Data Tampering............................................1893
10.5 The USB Interface of the iTNC.....................................................1894
10.6 iTNC Serial Data Interfaces ..........................................................1899
10.6.1 General information.........................................................1899
10.6.2 RS-232-C/V.24 interface ..................................................1899
10.7 Configuration of Interfaces ..........................................................1902
10.7.1 Control characters ...........................................................1902
10.7.2 Selection of interfaces and operating modes..................1903
10.7.3 Configuration of interfaces..............................................1903
10.8 Data Transmission Protocols.......................................................1907
10.8.1 Selection of transmission protocols ................................1907
10.8.2 Standard communications protocol.................................1908
10.8.3 Communications protocol with block check character....1910
10.8.4 LSV2 transmission protocol.............................................1913
10.9 Saving and Loading Files .............................................................1914
10.10 Data Transfer by PLC ....................................................................1916
10.10.1 Settings ...........................................................................1916
10.10.2 PLC modules...................................................................1917
10.11 External Programming .................................................................1929