show the entry list
FM 353, 354, 453 -- Setting up and parameterizing hardware -- Initializing and parameterizing modules
What must be considered when using the SIMATIC S7 FM354 module with incremental encoder?
What should you watch out for when calling FB POS_CTRL and FB POS_MSRM?
Which function modules (FM) can be used remotely in an ET 200M?
What should you watch out for when parameterizing a digital input for the "Set flying actual value" function in Automatic mode?
How do you assign parameters to an FM354 when using an absolute linear rule?
What does MD38 signify with FM 353?
How can you reduce the positioning times for short distances?
What invokes the procedure program error 0x0801 "Program selection subprogram error"?
How many FM 353s or FM 354s can the communicate with an OP that is connected to the CPU via MPI?
Transferring an NC block (traversing program) by user program to an FM353 / FM354
Aborting an active MDI record of an FM353 or FM354
Behavior of the FM 354 upon signal change at the release input
Transferring an NC block (traversing program) by user program to an FM353 / FM354
Part number:

QUESTION:
How can I transfer an NC block (traversing program) by user program to an FM353 / FM354?

ANSWER:
In order to transfer a new or modified NC block to an FM 353 / FM 354 you program the Write job "Change parameters/data" in your user program.
Below is an example of how to assign the data record for transferring new NC blocks.

Assigning the user data block for transferring NC blocks:

The structure of the data record for the Write job "Change parameters/data" consists of

  • A data record header (in the manual: system data "Change parameters/data") and
  • The NC block (in the manual: system data "Active NC block").

For transferring the NC block

  • N20 G90 X400.000 [mm] F5000.000 [mm/min] M20

to traversing program no. 2 you have the following assignment in the user data block:

Address in the user DB

Name

Type

Value

Comment

Data record header

DBB 196

PAR_CHAN.TYP

BYTE

B#16#04

DB type: 4, traversing program

DBB 197

PAR_CHAN.NUMB

BYTE

B#16#02

Program no. 2

DBB 198

PAR_CHAN.COUN

BYTE

B#16#14

NC record no.: 20

DBB 199

PAR_CHAN.JOB

BYTE

B#16#02

Job type: 2, write parameters

NC block

DBB 200

PAR_CHAN.DATA[200]

BYTE

B#16#02

Program no. 2

DBB 201

PAR_CHAN.DATA[201]

BYTE

B#16#14

NC block no.: 20

DBX 202.0

BOOL

TRUE

Enable bit for G function group 1

DBX 202.1

BOOL

FALSE

Enable bit for G function group 2

DBX 202.2

BOOL

FALSE

Enable bit for G function group 3

DBX 202.3

BOOL

FALSE

DBX 202.4

BOOL

TRUE

Enable bit for Position / Dwell time

DBX 202.5

BOOL

FALSE

Enable bit for subprogram no.

DBX 202.6

BOOL

FALSE

Enable bit for number of subprogram calls

DBX 202.7

BOOL

FALSE

Enable bit for skippable block

DBX 203.0

BOOL

TRUE

Enable bit for speed

DBX 203.1

BOOL

TRUE

Enable bit for M function group 1

DBX 203.2

BOOL

FALSE

Enable bit for M function group 2

DBX 203.3

BOOL

FALSE

Enable bit for M function group 3

DBX 203.4

BOOL

FALSE

Enable bit for tool offset no.

DBX 203.5

BOOL

FALSE

DBX 203.6

BOOL

FALSE

DBX 203.7

BOOL

FALSE

DBB 204

PAR_CHAN.DATA[204]

BYTE

B#16#5A

G function 1: 90

DBB 205

PAR_CHAN.DATA[205]

BYTE

B#16#00

G function 2:

DBB 206

PAR_CHAN.DATA[206]

BYTE

B#16#00

G function 3:

DBB 207

PAR_CHAN.DATA[207]

BYTE

B#16#00

DBD 208

DINT

L#400000

Position in the MSR unit [µm]

DBD 212

DINT

L#5000000

Speed in the MSR unit / min

DBB 216

PAR_CHAN.DATA[216]

BYTE

B#16#14

M function 1: 20

DBB 217

PAR_CHAN.DATA[217]

BYTE

B#16#00

M function 2:

DBB 218

PAR_CHAN.DATA[218]

BYTE

B#16#00

M function 3:

DBB 219

PAR_CHAN.DATA[219]

BYTE

B#16#00

Tool offset no.

Table 1: Assignment of the data record structure for transferring an NC block

Notes on the user block:

  • Program no. and record no. are to be entered in the data record header and in the NC block.
  • An NC block must always be completely specified.
  • There is an enable bit and an input field for each block element of an NC record. For unused block elements you must set the enable bit and input field to "0" (see "Block structure" traversing blocks for a description of the block elements).
  • The position and speeds are to be specified in the unit of the measuring system. The following holds for the NC block above:
    input via traversing program editor:
    N20 G90 X400.000 [mm] F5000.000 [mm/min] M20
    input via user DB:
    N20 G90 X400000 [µm] F5000000 [µm/min] M20

Procedure for transferring an NC block from the user program to an FM 353/354:

  1. Transferring the new data into the data record DBB 196 ... DBB 219.
  2. Executing the Write job by setting the trigger bit DBX39.3.

Error evaluation:

If the module detects a data error, this is reported via the bit DBX 22.4 (data error). The cause of the error is entered in bytes DBB 94 (error class) and DBB 95 (error number).

Note:
The description applies for the standard blocks of the configuration package for FM 353 / FM 354, from version V3.1.

More information on the user data block and traversing blocks is available in the manual FM 353 - Entry ID 2106357 and FM 354 - Entry ID 2110628:

- Structure of the user data block

section 6.5

- System data "Change parameters/data"

section 9.3.1

- System data "Active NC block"

section 9.3.12

- Traversing blocks "Block structure"

section 10.1



 Entry ID:12276904   Date:2003-06-10 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour