Siemens SIMATIC Manual page 508

Hide thumbs Also See for SIMATIC:
Table of Contents

Advertisement

Other signal modules
7.4 Position decoder module SM 338; POS-INPUT; (6ES7338-4BC01-0AB0)
Output address in Standard Mode
no output data are supported in Fast Mode.
Reading data areas
You can read the data areas in your user program using the
Example of access to encoder values and use of the freeze function
You want to read and evaluate the values at the encoder inputs. The module start address is
256.
STL
L
T
A
=
L
T
A
=
L
T
A
=
L
T
You can then process the encoder values from the bit memory address areas MD 100, MD
104 and MD 108. The encoder value is set in bits 0 to 30 of the memory double word.
508
PED
256
MD
100
M
100.7
M
99.0
PED
230
MD
104
M
104.7
M
99.1
PED
264
MD
108
M
108.7
M
99.2
MB
99
POB
256
Explanation
// Read encoder value in the address area for encoder
input 0
// Save encoder value to memory double word
// Freeze state for subsequent acknowledgement
// Determine and save
// Read encoder value in the address area for encoder
input 1
// Save encoder value to memory double word
// Freeze state for subsequent acknowledgement
// Determine and save
// Read encoder value in the address area for encoder
input 2
// Save encoder value to memory double word
// Freeze state for subsequent acknowledgement
// determine and save
// Load freeze state and
// acknowledge (SM 338: output address 256)
STEP 7
operation L PED "xyz."
S7-300 Module data
Manual, 06/2017, A5E00105505-AJ

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-300S7-300 module data

Table of Contents