Vous êtes sur la page 1sur 10

Exercises

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.1
Exercise 1: Creating Projects for FMS
Communication

Step Action Result

Delete any existing projects with


1 the name "FMS.........".
Create a project named The project is created
2 "FMS_Client" (or "FMS_Server")
in the path d:\course\7profi.
Create a hardware station with The hardware station is created
3 the components in your
configuration.
Insert the partner station in your Partner station is inserted as
4 project. "Other Station_............“

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.2
Exercise 2: Inserting and Testing an FMS Connection

Step Action Result


1 Insert an FMS connection in your
project.
2 Parameters for this connection:
 Station profile: CP 343-5
 Connection profile: SIMATICNET
Standard B
 LSAP local and remote:34
 Services: READ
WRITE
3 Test this connection using NCM Connection status should be:
Diagnostics. "Ready for data transmission"

You are enthusiastic!

UEB_UPP

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.3
Exercise 3a: For Server (READ)
Configuring the Communication Variables

Step Action Result

Create a data block, DB50, with


1 the symbolic name "Motoren".
Configure the communication
2 variables as shown below.

Select the following indexes:


3  FMS Base Index : 101
 Number of reserved Indexes:1

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.4
Notizblattsicht

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.5
Exercise 3b: For Client
Programming a Write Job

Step Action Result

Copy the "READ FB" (FB3)


1 from the SIMATIC_NET_CP
Notizblattsicht
library into your user program.
Write (in OB1, for example) the MW50 and DB20 should contain
program for reading the server the integer value "3333".
2 variable with index 106
("DrehzahlM3") to MW50 and If not --> Error
then saving it in DB20.
Test your communication
3 (VATs, Block Status, NCM
Diagnostics)

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.6
Exercise 4a: For Server (WRITE)
Configuring the Communication Variables

Step Action Result

Create a data block, DB51, with


1 the symbolic name
„WRITE_from_Client“.
Configure the communication
2 variables as shown below.

Select the following index:


3  FMS Base Index : 110

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.7
Exercise 4b: For Client
Programming a Write Job

Step Action Result

Create a DB30
1 ("WRITE_Source") with the
variable "Write" and the
assigned value W#16#AFFE.
Copy the "WRITE FB" (FB6)
2 from the SIMATIC_NET_CP
library into your user program.
Write the program for storing DB51 contains the hexadecimal
3 the contents of the variable value "AFFE".
"Write" in DB51 on the server.
You've done it right again!

Test your communication


4 (VATs, Block Status, NCM
Diagnostics)

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.8
Exercise 5: REPORT

Step Action Result

1 Report the variable written in The hexadecimal value "AFFE" is


Exercise 4 to the client with a reported to the client.
REPORT job.
2 Output one byte of the reported
variable in output byte QB4.

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.9
Well Done

Diploma

SIMATIC NET
Siemens AG 1998. All rights reserved.
date: 25.08.2019
Information- and Trainings-Center
Knowledge for automation
file: 7FmsEx.10

Vous aimerez peut-être aussi