Siemens Simantic Net NCM for Industrial Ethernet S7 User Manual

Page 11

Advertising
background image

Contents

11

SIMATIC NET NCM S7 for Industrial Ethernet
C79000-G8976-C129–06

4.2

Possible Connection Configurations

85

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.3

Connections 87

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.3.1

Creating a New Connection

90

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.3.2

Connections to Partners in Other Projects

93

. . . . . . . . . . . . . . . . . . . . . . . . . .

4.3.3

Further Functions

96

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.3.4

Connections Without Assignment

97

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.4

Configuring ISO Transport Connections

99

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.4.1

Specifying the Local Connection Endpoint

100

. . . . . . . . . . . . . . . . . . . . . . . . . .

4.4.2

Specifying ISO Transport Addresses

102

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.4.3

Specifying ISO Transport Dynamic Properties

105

. . . . . . . . . . . . . . . . . . . . . . .

4.4.4

ISO Transport with the FETCH/WRITE Mode

107

. . . . . . . . . . . . . . . . . . . . . . .

4.4.5

Checking ISO Transport Connection Properties

109

. . . . . . . . . . . . . . . . . . . . .

4.5

Configuring ISO-on-TCP Connections Properties

110

. . . . . . . . . . . . . . . . . . . .

4.5.1

Specifying the Local Connection Endpoint

111

. . . . . . . . . . . . . . . . . . . . . . . . . .

4.5.2

Specifying ISO-on-TCP Addresses

113

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.5.3

ISO-on-TCP with the FETCH/WRITE Mode

116

. . . . . . . . . . . . . . . . . . . . . . . . .

4.5.4

Checking ISO-on-TCP Connection Properties

118

. . . . . . . . . . . . . . . . . . . . . . .

4.6

Configuring TCP Connection Properties

119

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.6.1

Specifying the Local Connection Endpoint

120

. . . . . . . . . . . . . . . . . . . . . . . . . .

4.6.2

Specifying TCP Addresses

122

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.6.3

TCP with the FETCH/WRITE Mode

125

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.6.4

Checking TCP Connection Properties

127

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.7

Configuring UDP Connection Properties

128

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.7.1

Specifying the Local Connection Endpoint

129

. . . . . . . . . . . . . . . . . . . . . . . . . .

4.7.2

Specifying UDP Addresses

131

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.7.3

UDP with Broadcast and Multicast

134

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.7.4

Checking the Properties of a UDP Connection

138

. . . . . . . . . . . . . . . . . . . . . . .

4.7.5

Free UDP Connection

139

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.8

Routing to Distribute Load

140

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

Programming FCs (Functions) and FBs for S7 Ethernet CPs

141

. . . . . . . . . . . . . . .

5.1

General Notes on FCs / FBs

142

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.2

Setting Parameters for FC Calls

145

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.2.1

Parameters for CP and Connection Assignment (input parameters)

145

. . . .

5.2.2

Parameters for Specifying a CPU Data Area (input parameters)

147

. . . . . . .

5.2.3

Status Information (output parameters)

147

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3

FCs for Configured Connections

148

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3.1

FC5 AG_SEND / FC50 AG_LSEND

152

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3.2

FC6 AG_RECV / FC60 AG_LRECV

161

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4

FCs for Access Coordination with FETCH/WRITE

167

. . . . . . . . . . . . . . . . . . .

5.4.1

FC7 AG_LOCK

169

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.2

FC8 AG_UNLOCK

171

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5

Numeric Data / Resource Requirements of the FCs

173

. . . . . . . . . . . . . . . . . .

6

NCM S7 Diagnostics

175

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.1

Overview

176

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.2

Functions of NCM S7 Diagnostics

177

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertising