S7Wr, S7Wr_B, S7Wr_I, S7Wr_D Write Into The Peripheral Area Of The S7-Cpu - Siemens FM 458-1 DP Manual

Function blocks
Hide thumbs Also See for FM 458-1 DP:
Table of Contents

Advertisement

2.3.7 S7WR, S7WR_B, S7WR_I, S7WR_D Write into the peripheral area of
the S7-CPU
Symbol
Brief description
Mode of operation
I/O
Function Blocks - FM 458-1 DP
Edition 12.2004
S7WR
Input ―R
X
Offset ―I
OFF
Enable ―BO
EN
The function blocks, write the peripheral area (I/O) of the S7-CPU can
only run with one FM 458 application module.
The S7WR, S7WR_B, S7WR_I, S7WR_D blocks differ by the data type
at the input, which must correspond with the parameters to be written:
• S7WR:
REAL
• S7WR_B:
BOOL
• S7WR_I:
INT
• S7WR_D:
DINT
Using this block, data can be written into the net (useful) data area of the
SIMATIC S7-CPU, assigned to the FM 458 application module (periphery
input). This PE area is 128 bytes. If the enable signal is set, the input
value is accepted via the input and entered in the PE area.
The offset determines at which position in the PE area, the input value is
saved. Depending on the block- or data type, the offset is specified as
follows:
• for REAL data type in 4 byte steps (data length).
value range of the offset: 0 . . . 31
• for BOOL data type in 1 byte steps (data length).
value range of the offset: 0 . . . 127
• for INT data type in 2 byte steps (data length).
value range of the offset: 0 . . . 63
• for DINT data type in 4 byte steps (data length).
value range of the offset: 0 . . . 31
Output QF has the value 1, if an invalid offset was selected, or the block
is not configured on the FM 458 application module.
X
Input
OFF
Offset
EN
Enable
QF
Error output
Communication blocks
QF
BO ―Error output
(default: 0.0)
(default: 0)
(default: 0)
(default: 0)
2-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents