Data Transfer Via I/O Accesses - Siemens SIMATIC FM 458-1 DP User Manual

Application module
Hide thumbs Also See for SIMATIC FM 458-1 DP:
Table of Contents

Advertisement

4.3.3 Data transfer via I/O accesses

Application
Blocks and
transfer commands
CFC data type
"BOOL"
Data save
Application Module FM 458-1 DP - User Manual
A5E01078222-02
Edition 03.2009
To transfer low data quantities: up to max. 128 bytes
Appropriate function blocks are available for each data transfer direction
and for each data type to be transferred.
SIMATIC-CPU
Data type Transfer
command
(SL program)
BYTE
T PAB abs.addr.
INT
T PAW abs.addr.
DINT
T PAD abs.addr.
REAL
T PAD abs.addr.
BYTE
L PEB abs.addr.
INT
L PEW abs.addr.
DINT
L PED abs.addr.
REAL
L PED abs.addr.
Table 4-2
Data types and the associated commands/blocks for peripheral accesses
The 8-bit CFC data type "BOOL" is represented in the SIMATIC S7-CPU
as "BYTE" data type. This means that the SIMATIC S7 user must
appropriately set or evaluate the decisive MSB (Most Significant Bit):
 S7-CPU:
bit variable
 FM 458-1 DP:
In order to achieve high processing speeds with 32-bit accesses, the
following must be ensured by appropriately configuring the FM 458-1
DP/CFC (offset, refer below) as well as programming the SIMATIC-CPU,
so that
 16-bit values (INT/WORD data types)
are saved at even addresses (word limits) and
 32-bit values (REAL, DINT data types)
at addresses which are divisible by 4 (double word limits)
are saved in the two P-bus memories which are 128 bytes large.
Write
CFC function
direction
block
S7RD_B
S7RD_I
S7RD_D
S7RD
S7WR_B
S7WR_I
S7WR_D
S7WR
1XXX XXXX = TRUE
0XXX XXXX = FALSE
Configuring
FM 458-1 DP
Data type
BOOL
INT
DINT
REAL
BOOL
INT
DINT
REAL
4-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

6dd1607-0aa16dd1607-0aa2

Table of Contents