Scale_Dint Function; Introduction; Connections; Inputs - Siemens Simatic Manual

Fail-safe function blocks for storage and retrieval machines. distributed safety/tia safety advanced.
Hide thumbs Also See for Simatic:
Table of Contents

Advertisement

Fail-safe function blocks for storage and retrieval machines

3.4 SCALE_DINT function

3.4.1

Introduction

Function SCALE_DINT scales a 32-bit DINT value, which is read from the process image, to a 16-bit
INT value. The 32-bit value corresponds to a raw sensor value, which is supplied from a standard I/O
module, the 16 bit represents this encoder value in the SLU unit.
The parameter from which the peripheral address should be read as well as the scaling factor are
defined in the safety program using the F_SCALE_DINT block.
3.4.2

Connections

3.4.2.1

Inputs

Name
I_DB_F_SCALE
3.4.2.2

Outputs

Name
OUT1
OUT2
Note
OUT1 and OUT2 are coded differently, the identical bit memory word cannot be
used for both outputs.
3.4.3

Principle of operation

3.4.3.1

Parameterization

1. The block is parameterized in the safety program by calling the F_SCALE_DINT block. The
scaling factor parameter and the start address in HW Config – which supplies the 32-bit value
to be scaled – as well as the bit offset and the bit length for masking, are saved in its instance
DB.
2. At input I_DB_F_SCALE, a pointer is parameterized to this instance DB in the form
DBxxx.DBX0.0 .
S7-Distributed Safety/SIMATIC Safety - fail-safe function blocks for storage and retrieval machines
Data type
Description
Instance DB No. of the associated F_SCALE_DINT
block
Pointer
A pointer to the I-DB of the F_SCALE_DINT block in the
safety program is parameterized at this input. The parame-
terizing data for the scaling are read from this I-DB.
Data type
Description
Intermediate result 1
A bit memory word is interconnected at this output. Using
Word
this output, the value of the standard I/O module, scaled to
SLU is transferred, coded to the corresponding input of
block F_SCALE_DINT in the safety program.
Intermediate result 2
A bit memory word is interconnected at this output. Using
Word
this output, the value of the standard I/O module, scaled to
SLU is transferred, coded to the corresponding input of
block F_SCALE_DINT in the safety program.
- 3-23 -

Advertisement

Table of Contents
loading

Table of Contents