EasyManuals Logo

Siemens SIMATIC User Manual

Siemens SIMATIC
648 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #508 background imageLoading...
Page #508 background image
Other signal modules
7.4 Position decoder module SM 338; POS-INPUT; (6ES7338-4BC01-0AB0)
S7-300 Module data
508 Manual, 06/2017, A5E00105505-AJ
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
STEP 7
operation L PED "xyz."
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
Explanation
L PED 256 // Read encoder value in the address area for encoder
input 0
T
MD
100
// Save encoder value to memory double word
A
M
100.7
// Freeze state for subsequent acknowledgement
=
M
99.0
// Determine and save
L PED 230 // Read encoder value in the address area for encoder
input 1
T
MD
104
// Save encoder value to memory double word
A
M
104.7
// Freeze state for subsequent acknowledgement
=
M
99.1
// Determine and save
L PED 264 // Read encoder value in the address area for encoder
input 2
T
MD
108
// Save encoder value to memory double word
A
M
108.7
// Freeze state for subsequent acknowledgement
=
M
99.2
// determine and save
L
MB
99
// Load freeze state and
T
POB
256
// acknowledge (SM 338: output address 256)
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.

Table of Contents

Other manuals for Siemens SIMATIC

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC and is the answer not in the manual?

Siemens SIMATIC Specifications

General IconGeneral
Product type designationSIMATIC
CPUVaries by model
MemoryVaries by model
Input/OutputVaries by model
CommunicationVaries by model
Programming LanguageSTEP 7
Operating Temperature0°C to 60°C (varies by model)
Protection ClassIP20
CategoryProgrammable Logic Controller (PLC)

Related product manuals