High-Speed Access To Module Data - Siemens S7-300 Operating Instructions Manual

Fm 352 electronic cam controller
Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

Programming the FM 352

7.10 High-speed access to module data

7.10
High-speed access to module data
Application
Very fast access to checkback and control signals is required in special applications or in an
alarm level. You can obtain those data directly by reading the IO areas of the module.
To coordinate startup following each module startup (for example, after inserting a module,
CPU STOP → RUN), call FB CAM_CTRL continuously until the end of the startup is indicated
by RETVAL = 0.
Note
For direct access to FM 352 data, always use the non-internal data and method described in
this section. Otherwise, your user program will encounter difficulties accessing the module.
Reading checkback signals via direct access
The byte addresses are defined with an offset to the output address of the module. The bit
names correspond to the names in the channel DB.
In STL, you access the data using the PIB (read 1 byte) and PID (read 4 bytes) commands.
Address
7
6
Byte 0
PARA
Interna
l
Byte 1
0
0
Byte 2
Byte 3
0
0
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Byte 9
Byte 10
Byte 11
56
5
4
Internal
DATA_ERR
0
CAM_ACT
FVAL_DONE
HYS
Bit number
3
2
Internal
DIAG
0
0
Internal
GO_P
GO_M
ACT_POS
TRACK_OUT
Operating Instructions, 05/2011, A5E01071724-03
1
0
Internal
Internal
0
0
MSR_DONE
SYNC
FM 352 electronic cam controller

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents