background image

-6

 

Proceed as follows:

Close “Parameterize FM 357-2” and “S7 Hardware Configuration”.

Open example project “zEn16_01_FM357-2_BF_EX” in the SIMATIC Manager by selecting  

File 

Open... 

 Projects

.

Select the S7 directory “EXAMPLES” in this project. This directory contains:

a “Symbols” file, a “Sources” directory and a “Blocks” directory.

Select the “Symbols” file and copy it to your project under 

 

SIMATIC 300-Station 

 CPUxxx 

 S7

Program

.

Open the “Sources” directory and copy the STL sources “example3”, “ob_example” and “userdb” to
the “Sources” directory of your project. Open the “Blocks” directory and copy all blocks to the “Blocks”
directory of your project.

Open the copied STL source “ob_example” in your project (“Sources” directory)..

When calling FC 1 in the OB 100, enter the FM 357-2 module address under FMLADDR (in the exam-
ple: 256). Change the call “CALL EXAMPLE1” in OB 1 to “CALL EXAMPLE3”.

Select menu commands  

File 

 Save

 

 and 

 

File 

 Compile

  to generate organization blocks (OB 1,

OB 82, OB 100) from the STL source.

Close the Editor.

Go to the Blocks directory in the SIMATIC Manager by selecting  

SIMATIC 300-Station 

 CPUxxx 

S7 Program 

 

Blocks

. Load all S7 blocks (and system data) stored under Blocks to the CPU (CPU in

the STOP state) by selecting menu commands  

Target system 

 Load

.

Switch your CPU to the RUN-P state.

“JOG” mode is preset when the FM 357-2 has powered up successfully.

Select 

 

SIMATIC 300-Station 

 CPUxxx 

 S7 Program 

 

Blocks

  in your project and start the

“Control and Monitor Variables” tool (required for monitoring/controlling the axis) via the menu 

 

Target

System 

 Monitor/Control Variables

.

Enter the following markers in the “Operand” column:

DB115.dbx11.0 (CTR_EN_AX3 – Controller enable axis 3)

DB115.dbx11.1 (START – Start of CPU axis 3)

DB115.dbx11.5 (ERR – Error CPU axis 3)

DB115.dbx11.6 (INPOS – CPU axis 3 position reached)

DB115.dbx11.7 (ACTIV – CPU axis active)

DB115.dbb10 (ERR_NO – in the case of an error, error number of the CPU axis)

Establish the connection to the CPU via the menu  

Target System 

 Establish Connection to 

 Di-

rectly Connected CPU

.

By selecting commands  

Variables 

 View

, you can now monitor these operands cyclically.

The operands are updated once for monitoring when you select commands 

 

Variables 

 Update Sta-

tus Values

.

In order to start the third axis, enter the value “2#1” in the line of the marker DB115.dbx11.0 under the
column “Control Value”. The controller enable signal of the axis is thus set. Then enter the value “2#1”
in the line DB115.dbx11.1 in order to start the CPU axis 3.

Set the marker cyclically by selecting menu commands  

Variables 

 Control

or
set the marker once by selecting menu commands  

Variables 

 Activate Control Values

.

The bit “ACTIV”=TRUE indicates that the axis is being positioned. When the position has been
reached (“INPOS”=TRUE) without any error, positioning is terminated through resetting of the control
signal “Start” = FALSE. If an error occurred during positioning (“ERR” = TRUE), this error is stored
intermediately in the byte “ERR_NO” for evaluation.

Note:

After the start, the axis traverses a relative (incremental) path of 300 mm with a velocity of 0.5 m/min.
The output messages “INPOS”, “ACTIV” and “ERR” indicate the various axis positions in relation with
axis positioning of the 3

rd

 axis. If an error occurs during the execution (ERR = TRUE), the data byte

“ERR_NO” (DB115.dbb10) must be evaluated (see Section 6.5.1, Axis control of CPU).

– 6 –

Содержание SIMATIC FM 357-2

Страница 1: ...SIMATIC FM 357Ć2 Getting Started First Steps in Commissioning Edition 03 2000 ...

Страница 2: ... 3 1 of the Manual Connect up the power supply to the screw type terminal block on the FM 357 2 For more detailed wiring instructions please refer to Section 4 2 of the Manual Wire up the front connector The NC READY output must be connected into the EMERGENCY STOP circuit Insert the front connector in the FM 357 2 and lock For a description and connection instruc tions for front connector please ...

Страница 3: ...control has booted with default values After approx 1 minute the DIAG LED flashes cyclically 3 Hz Control OFF Switch the start up switch of the FM 357 2 to position 0 Control ON the control boots with the firmware During booting of the FM 357 2 the licence on the memory card is checked with the version of the firmware loaded onto the FM Installation of the firmware is described in Section 3 2 and ...

Страница 4: ...r project under SIMATIC 300 Station CPUxxx S7 Program When the message Do you want to replace the existing object and all its contents is displayed click on Yes Open the Sources directory and copy the STL source file fm357ob_n1 one FM 357 2 to the Sources directory of your project Open the Blocks directory and copy all the blocks it contains into the Blocks directory of your pro ject Open the copi...

Страница 5: ...est Open the start up window by selecting Test Start up Click on the Test button Select operating mode Jog Make sure that Feed Stop is deselected and select Controller enable and Pulse enable Position the override pointer with the left mouse key to set the override to 50 Click on button R You can now start a traversing motion by pressing the spacer key As long as this key is pressed down your moto...

Страница 6: ...nter the following markers in the Operand column DB115 dbx11 0 CTR_EN_AX3 Controller enable axis 3 DB115 dbx11 1 START Start of CPU axis 3 DB115 dbx11 5 ERR Error CPU axis 3 DB115 dbx11 6 INPOS CPU axis 3 position reached DB115 dbx11 7 ACTIV CPU axis active DB115 dbb10 ERR_NO in the case of an error error number of the CPU axis Establish the connection to the CPU via the menu Target System Establi...

Отзывы: