Siemens SIMATIC FC 45 Function Manual page 108

Sensors
Table of Contents

Advertisement

Brief description of ASM hardware
A.6 ASM 854
Process image mode: Programming
The data must be scanned by SFC 14 to ensure consistent representation of the information
which was read. The following example shows the programming of the ASM 854 in process
image mode.
Block: OB1 MOBY F with ASM 854 in process image mode
Network: 1
The data of 9 MOBY F channels are read consistently to DB 20. The 9
channels are distributed over 3 ASM 854s.
CALL "DPRD_DAT"
CALL "DPRD_DAT"
24
CALL "DPRD_DAT"
// New data can be processed in DB20 starting here.
A-26
LADDR :=W#16#0
RET_VAL :=MW0
RECORD :=P#DB20.DBX 0.0 BYTE 24
LADDR :=W#16#24
RET_VAL :=MW1
RECORD :=P#DB20.DBX 24.0 BYTE
LADDR :=W#16#48
RET_VAL :=MW2
RECORD :=P#DB20.DBX 48.0 BYTE 6
// = SFC14
// 1st ASM 854 has I/O address
0
// The data are stored in DB
20 starting at address 0.
Since 4 channels are used,
the data length is
24 bytes.
// 2nd ASM 854 has I/O address
24
// The data are stored in DB
20 starting at address 24.
Since 4 channels are used,
the data length is
24 bytes.
// 3rd ASM 854 has I/O address
48
// The data are stored in DB
20 starting at address 48.
Since 1 channel is used,
the data length is
6 bytes.
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
FC 45

Advertisement

Table of Contents
loading

Table of Contents